{
  "markdown": "# GitLab CLI (glab) Skill for Claude Code\n\nA comprehensive Claude Code skill that provides expert guidance for using the GitLab CLI (`glab`) to manage GitLab resources directly from the command line.\n\n## Overview\n\nThis skill enables Claude Code to effectively assist with GitLab workflows using the official `glab` CLI tool. It provides detailed knowledge about GitLab operations including merge requests, issues, CI/CD pipelines, repository management, and more.\n\n## What This Skill Provides\n\n- **Core workflows**: Common GitLab operations (MRs, issues, CI/CD, repos)\n- **Authentication guidance**: Quick setup for GitLab.com and self-hosted instances\n- **Best practices**: When and how to use glab effectively\n- **Progressive disclosure**: Concise core instructions with detailed references loaded as needed\n- **Comprehensive references**: Detailed command docs, troubleshooting, and quick reference guides\n\n## Installation\n\n### Installing the Skill\n\nThis skill should be placed in your Claude Code skills directory:\n\n```bash\n# For project-specific installation\nmkdir -p .claude/skills\ngit clone https://github.com/henricook/claude-glab-skill .claude/skills/glab\n\n# For personal/global installation\nmkdir -p ~/.claude/skills\ngit clone https://github.com/henricook/claude-glab-skill ~/.claude/skills/glab\n```\n\nAfter installation, your directory structure will be:\n```\n.claude/skills/glab/\n├── SKILL.md                          # Core skill (~200 lines, loaded when skill invoked)\n├── references/                       # Detailed docs (loaded only as needed)\n│   ├── commands-detailed.md          # Comprehensive command reference\n│   ├── quick-reference.md            # Command cheat sheet\n│   └── troubleshooting.md            # Detailed error scenarios\n├── README.md\n├── CONTRIBUTING.md\n├── CHANGELOG.md\n└── LICENSE\n```\n\n### Installing glab CLI\n\nBefore using this skill, ensure `glab` is installed on your system:\n\n**macOS:**\n```bash\nbrew install glab\n```\n\n**Linux:**\n```bash\n# Debian/Ubuntu\nsudo apt install glab\n\n# Fedora/RHEL\nsudo dnf install glab\n\n# Arch Linux\nsudo pacman -S glab\n```\n\n**Windows:**\n```powershell\n# Using Chocolatey\nchoco install glab\n\n# Using Scoop\nscoop install glab\n```\n\n**From source:**\n```bash\ngo install gitlab.com/gitlab-org/cli/cmd/glab@latest\n```\n\nFor more installation options, visit: https://gitlab.com/gitlab-org/cli\n\n## Usage\n\nOnce installed, Claude Code will automatically detect when you need GitLab CLI assistance and can invoke this skill. You can also explicitly invoke it:\n\n```\n@claude using the glab skill, help me create a merge request\n```\n\nOr simply ask Claude Code to perform GitLab operations:\n\n```\nCan you list my open merge requests?\nCreate an issue for the bug we just found\nShow me the status of the CI pipeline\n```\n\n## Skill Architecture\n\nThis skill follows the **progressive disclosure design principle** for optimal performance:\n\n### Three-Level Context Loading\n\n1. **SKILL.md frontmatter** (~50 chars) - Loaded first for skill discovery and invocation\n2. **SKILL.md body** (~200 lines) - Core workflows and patterns loaded when skill is invoked\n3. **references/** folder - Detailed documentation loaded into context only as needed\n\n### SKILL.md (Core Instructions)\nThe main skill file is concise and focused on:\n- When to use glab for different tasks\n- Essential authentication setup\n- Common workflow patterns (not exhaustive command lists)\n- Best practices and quick fixes\n- References to detailed documentation\n\n**Why it's concise:** Loads quickly when invoked, providing immediate guidance without overwhelming context.\n\n### references/ (Detailed Documentation)\n\n**commands-detailed.md** - Load when:\n- User needs specific flag or option details\n- Working with advanced commands (API, variables, schedules)\n- Need comprehensive command examples\n\n**troubleshooting.md** - Load when:\n- Encountering authentication or connection errors\n- Debugging CI/CD pipeline issues\n- Need detailed error scenarios and solutions\n\n**quick-reference.md** - Load when:\n- User wants a command cheat sheet\n- Quick lookup of common flags and patterns\n\n### Tool Restrictions\nThe skill is configured with `allowed-tools: Bash, Read, Grep, Glob` to ensure Claude Code can:\n- Execute glab commands via Bash\n- Read configuration and reference files as needed\n- Search for relevant files and patterns\n- Work within the repository context\n\n## Skill Features\n\n### Workflow-First Approach\n\nRather than memorizing commands, the skill teaches:\n- **Creating merge requests** with reviewers and labels\n- **Reviewing code** by checking out MRs locally\n- **Managing issues** and linking them to MRs\n- **Monitoring CI/CD** pipelines and handling failures\n\n### Comprehensive Command Coverage\n\n30+ glab commands documented across:\n- Merge Requests, Issues, CI/CD Pipelines\n- Repositories, API access, Labels, Releases\n- Snippets, Users, Variables, SSH Keys\n- And more (see references/commands-detailed.md)\n\n### Context-Aware Assistance\n\nThe skill helps Claude Code:\n- Detect when authentication is needed\n- Identify repository context issues\n- Suggest appropriate flags and options\n- Load detailed docs only when necessary\n\n### Self-Hosted GitLab Support\n\nFull support for GitLab.com and self-hosted instances with environment variable configuration and multi-instance authentication.\n\n## Examples\n\nAfter installation, Claude Code can help with tasks like:\n\n**Creating a merge request:**\n```\nCreate a merge request for my current branch with the title \"Fix login bug\" and assign it to reviewers alice and bob\n```\n\n**Reviewing merge requests:**\n```\nShow me all merge requests where I'm assigned as a reviewer\n```\n\n**Managing CI/CD:**\n```\nWatch the current pipeline and let me know if it passes\n```\n\n**Working with issues:**\n```\nCreate a bug issue titled \"API timeout\" with high priority label\n```\n\n## Configuration\n\nThe skill automatically adapts to:\n- Current repository context\n- Authenticated GitLab instances\n- Self-hosted GitLab via GITLAB_HOST environment variable\n- Multiple authentication profiles\n\n## Contributing\n\nThis skill is designed to be comprehensive and up-to-date. If you find commands or workflows that should be added, please contribute:\n\n1. Test your additions with actual glab usage\n2. Follow the imperative/infinitive writing style established in SKILL.md\n3. Include practical examples\n4. Update this README if adding major new sections\n\n## Requirements\n\n- Claude Code with Skills support\n- glab CLI tool installed and in PATH\n- Authenticated GitLab account (via `glab auth login`)\n- Git repository context for repository-specific operations\n\n## Troubleshooting\n\nIf Claude Code doesn't recognize the skill:\n1. Verify the skill is in `.claude/skills/glab/` or `~/.claude/skills/glab/`\n2. Ensure SKILL.md exists and has valid YAML frontmatter\n3. Restart Claude Code if necessary\n\nIf glab commands fail:\n1. Verify installation: `glab --version`\n2. Check authentication: `glab auth status`\n3. Ensure you're in a Git repository or use `-R owner/repo` flag\n\n## Resources\n\n- **glab Official Repository**: https://gitlab.com/gitlab-org/cli\n- **GitLab CLI Documentation**: https://docs.gitlab.com/editor_extensions/gitlab_cli/\n- **Claude Code Skills**: https://docs.claude.com/en/docs/claude-code/skills\n\n## License\n\nThis skill is provided as a community resource for Claude Code users working with GitLab.\n\n## Version\n\nVersion: 1.0.0\nLast Updated: November 2025\nCompatible with: glab v1.40.0+\n",
  "bytes": 7427,
  "sha": "4aecca888cb21eb8f0eb8ebfeb07292de0369ad1baf7f146f267a3c591ad9549",
  "repo_slug": "henricook/claude-glab-skill",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_henricook_claude_glab_skill_glab_34c0a089/readme"
}