Skip to main content
Alison Aquinas logoAlison's LLM Skills Marketplace

glab

Included in skill bundleci-cdView on GitHub ↗

Files

SKILL.mdagentsreferencesscripts

Install

Install only this skill with npx skills
npx skills add alisonaquinas/llm-ci-dev --skill 'glab' -g -y
Install the containing skill bundle
/plugin install ci-cd@llm-skills
Download glab-skill.zip
This skill is bundled inside ci-cd. Use npx skills when you only want this skill, or install the bundle once to make every included skill available through the plugin marketplace flow. Browse the full skill bundle repository at github.com/alisonaquinas/llm-ci-dev.

Invoke

Invoke this skill after installation
/ci-cd:glab

SKILL.md


name: glab description: Operate GitLab CLI (glab) for authentication checks, host and repository context inspection, merge request/issue/CI workflows, and safe command planning. Use when tasks mention glab, GitLab merge requests/issues/pipelines/releases, or GitLab API operations from the terminal.

GitLab CLI

Intent Router

RequestReferenceLoad When
Install tool, first-time setupreferences/install-and-setup.mdUser needs to install glab or do initial authentication
Command patterns, workflowsreferences/command-cookbook.mdUser needs MR/issue/CI/release patterns or workflow examples
GitLab concepts, organizationreferences/gitlab-concepts.mdUser asks about groups/projects, namespaces, runners, visibility, or CI variables

Workflow

  1. Run preflight before GitLab CLI workflows.
  2. Check auth status and active host context.
  3. Choose a core command track and begin with inspect commands.
  4. Require explicit confirmation before write/delete actions.
  5. Re-check status and summarize outcomes.

Preflight

Use bundled scripts:

  • scripts/glab-preflight.sh
  • scripts/glab-auth-status.sh
  • scripts/glab-context.sh
  • scripts/glab-diagnostics.sh [--json] [--out <file>]

If the environment cannot access the default config location, set:

export GLAB_CONFIG_DIR=/tmp/glab-config

Core Command Tracks

  • Auth and host checks: glab auth status, glab auth login
  • Repository, issue, and MR inspection: glab repo view, glab issue list, glab mr list, glab mr view <id>
  • CI and release inspection: glab ci list, glab ci view, glab release list
  • API calls: glab api <path> for focused GitLab API reads.

Safety Guardrails

  • Inspect first with list/view commands.
  • Ask for explicit confirmation before commands that create/edit/close/delete resources.
  • Confirm active host and project before mutating operations.
  • Never print tokens or secrets.

Troubleshooting

  • If auth fails, run glab auth login then re-run scripts/glab-auth-status.sh.
  • If host context is wrong, verify config and re-check with scripts/glab-context.sh.
  • If network/API calls fail, collect scripts/glab-diagnostics.sh --json output before retry.
# Verify auth and inspect the current merge request in the working branch
glab auth status
glab mr list --state=opened
glab mr view

References

← Back to marketplace