agentleFS
isamisushiisamisushi/glab-skill/skills/glab/SKILL.md

glab

Skill2 starsChanged 8 months agoMITView on GitHub

Use this skill when the user asks to work with GitLab from the terminal, especially with `glab`: merge requests, issues, pipelines, releases, project metadata, or GitLab API calls. Prefer it when a local checkout is already connected to GitLab and `glab` is a better fit than manual browser work or raw `curl`. Do not use it for local-only Git operations that `git` handles.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. henricook/claude-glab-skill★ 74same name
    2. beeltec/skills★ 2same name
    3. rogue-dev-studio/ai-agents-rogue★ 2same name
    4. jcsaaddupuy/badrobots★ 1same name
    5. gccli/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use glab when the task is about GitLab state, not just local Git state.

    line 8
  2. Very specific:

    Prefer the purpose-built subcommand (glab mr, glab issue, glab ci, ...) over glab api.

    line 13
  3. Very specific:

    Verify flags before running anything non-obvious.

    line 14
  4. Very specific:

    Keep commands non-interactive in automation: pass flags instead of accepting prompts, and prefer --output json where supported.

    line 16
  5. Very specific:

    If the installed binary disagrees with the references, trust glab <command> --help and say so instead of improvising.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

glab CLI

Use glab when the task is about GitLab state, not just local Git state. Inside a Git worktree, glab infers host and project from remotes, so run commands from the target repository root when possible.

Workflow

  1. Confirm context only when it matters: git remote -v for repo targeting, glab auth status for access, host, or token scope questions.
  2. Prefer the purpose-built subcommand (glab mr, glab issue, glab ci, ...) over glab api.
  3. Verify flags before running anything non-obvious. Check the references or glab <command> --help. Do not invent flags.
  4. Fall back to glab api only when no subcommand exposes the operation, fields, or pagination control you need.
  5. Keep commands non-interactive in automation: pass flags instead of accepting prompts, and prefer --output json where supported.

Command Surface

The CLI has ~45 top-level command groups and changes frequently. Before concluding something needs glab api or claiming a command does not exist, check references/docs-command-tree.md — the full command tree with per-command doc links.

Groups that are easy to miss because they are newer or rarely discussed: work-items, stack (stacked diffs), search, security, packages, container-registry, dependency-firewall, attestation, iteration, cluster, duo, mcp.

References

Generated from the GitLab CLI source docs (tag noted in each file). Load them when exact Usage lines or Options matter:

  • references/usage/mr.md — merge requests
  • references/usage/issue.md — issues
  • references/usage/ci.md — pipelines, jobs, schedules, runners
  • references/usage/release.md — releases
  • references/usage/repo.md — repos/projects
  • references/usage/core.md — auth, config, glab api
  • references/usage/misc.md — everything else (labels, milestones, snippets, variables, work-items, stack, search, security, packages, ...)

These files are large (misc.md is ~3,700 lines). Instead of reading a whole file, grep for the command heading, e.g. rg -A 30 '^## .glab mr create.' references/usage/mr.md.

If the installed binary disagrees with the references, trust glab <command> --help and say so instead of improvising.

Non-Obvious Behavior

  • Outside a repo (or targeting another project): pass -R group/project. For self-hosted hosts, -R gitlab.example.com/group/project or GITLAB_HOST=gitlab.example.com; authenticate per host with glab auth login --hostname <host>.
  • Non-interactive mode: set NO_PROMPT=true (or glab config set no_prompt true) to fail fast instead of hanging on prompts in scripts and CI.
  • glab api resolves placeholders from the current repo context: :fullpath, :id, :branch, :group, :namespace, :repo, :user, :username. Useful patterns:

    glab api projects/:fullpath/variables
    glab api issues --paginate --output ndjson    # one JSON object per line, jq-friendly
    glab api graphql -f query='query { currentUser { username } }'
  • Machine-readable pipeline data: glab ci get --output json (the ci status/ci view output is for humans).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.