# Glab Read

Read MR or issue fields and descriptions, review threads, diff counts, and filtered diff lines from GitLab using a single script without writing to GitLab.

**Canonical URL:** https://skillshunter.net/skills/discovered-bf377f36c54d6efc5fb7d0efd99d6de6c927f2d373878650

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-bf377f36c54d6efc5fb7d0efd99d6de6c927f2d373878650

**Markdown URL:** https://skillshunter.net/skills/discovered-bf377f36c54d6efc5fb7d0efd99d6de6c927f2d373878650.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-bf377f36c54d6efc5fb7d0efd99d6de6c927f2d373878650/download

**Category:** Software & Development

**Source URL:** https://gitlab.com/radbatnag/claude-skills/-/blob/05b55872e4e98b79bc052be748b3abd6dccbabe6/skills/glab-read/SKILL.md

**Source commit:** 05b55872e4e98b79bc052be748b3abd6dccbabe6

**Listing approved at:** 2026-11-28

**Created at:** 2026-11-28T08:00:03.000000Z

**Updated at:** 2026-11-28T18:37:52.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure `glab` is installed and configured before running `scripts/glab-read.py`. The script relies on standard library Python and shells out to `glab` for data retrieval.

### When to use it

- Extracting MR or issue fields and descriptions for automation or reporting
- Fetching unresolved review threads for analysis or tracking
- Analyzing diff counts and filtered diff lines for code review insights

## Skill instructions

---
name: glab-read
description: >
  Read-only GitLab lookups through one script instead of an ad hoc
  `glab ... | python3 -c` pipe: MR or issue fields and description, review
  threads (unresolved, by id, with reactions), per-file diff counts and
  filtered diff lines, issue and MR search. Use whenever a task needs to
  read an MR, issue, or review thread from GitLab. Never writes to GitLab.
---

Run `scripts/glab-read.py` (stdlib Python, shells out to `glab`). Do not
write a throwaway parser for the shapes below.

| Need | Command |
| --- | --- |
| MR fields and description | `glab-read.py mr [IID] [--fields iid,sha,pipeline]` |
| Issue fields and description | `glab-read.py issue IID` |
| Open review threads | `glab-read.py threads IID --unresolved` |
| One thread, every note | `glab-read.py threads IID --id <prefix>` |
| One thread by a note id | `glab-read.py threads IID --note <note-id>` |
| Did I react to the first note | add `--emoji` to `threads` |
| Changed files with +/- counts | `glab-read.py files IID` |
| Diff lines of one file | `glab-read.py files IID --path <substr> [--grep <regex>]` |
| Find issues or MRs | `glab-read.py search issues\|mrs <query> [--state S] [--author U]` |
| Is this MR mine | `glab-read.py mine IID` (exit 1 when someone else authored it) |

`-R group/project` overrides the project taken from the origin remote.
`--max N` clips each note body or diff line.

For anything the script lacks (raw repo files, posting, description
round-trips), use `glab api` directly and add the shape here when it recurs.

