[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7952KE53WE65PT7Q286SH64":3,"skill-same:01M7952KE53WE65PT7Q286SH64":77},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7952KE53WE65PT7Q286SH64","glab",null,"Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI\u002FCD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.","thekorn\u002Fagent-skills","thekorn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F576065?v=4","01M7951FDMRRCZYPQ31A5V01ST","Markus Korn","01M7951FE6Q86C6E4ZNRBGJ3QJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: glab\ndescription: Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI\u002FCD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.\nallowed-tools: Bash, Read, Grep, Glob\n---\n\n# GitLab CLI (glab) Skill\n\nProvides guidance for using `glab`, the official GitLab CLI, to perform GitLab operations from the terminal.\n\n## When to Use This Skill\n\nInvoke when the user needs to:\n\n- Create, review, or manage merge requests\n- Work with GitLab issues\n- Monitor or trigger CI\u002FCD pipelines\n- Clone or manage repositories\n- Perform any GitLab operation from the command line\n\n## Prerequisites\n\nVerify glab installation before executing commands:\n\n```bash\nglab --version\n```\n\nIf not installed, inform the user and provide platform-specific installation guidance.\n\n## Authentication Quick Start\n\nMost glab operations require authentication:\n\n```bash\n# Interactive authentication\nglab auth login\n\n# Check authentication status\nglab auth status\n\n# For self-hosted GitLab\nglab auth login --hostname gitlab.example.org\n\n# Using environment variables\nexport GITLAB_TOKEN=your-token\nexport GITLAB_HOST=gitlab.example.org  # for self-hosted\n```\n\n## Core Workflows\n\n### Creating a Merge Request\n\n```bash\n# 1. Ensure branch is pushed\ngit push -u origin feature-branch\n\n# 2. Create MR\nglab mr create --title \"Add feature\" --description \"Implements X\"\n\n# With reviewers and labels\nglab mr create --title \"Fix bug\" --reviewer=alice,bob --label=\"bug,urgent\"\n```\n\n### Reviewing Merge Requests\n\n```bash\n# 1. List MRs awaiting your review\nglab mr list --reviewer=@me\n\n# 2. Checkout MR locally to test\nglab mr checkout \u003Cmr-number>\n\n# 3. After testing, approve\nglab mr approve \u003Cmr-number>\n\n# 4. Add review comments\nglab mr note \u003Cmr-number> -m \"Please update tests\"\n```\n\n### Managing Issues\n\n```bash\n# Create issue with labels\nglab issue create --title \"Bug in login\" --label=bug\n\n# Link MR to issue\nglab mr create --title \"Fix login\" --description \"Closes #\u003Cissue-number>\"\n\n# List your assigned issues\nglab issue list --assignee=@me\n```\n\n### Monitoring CI\u002FCD\n\n```bash\n# Watch pipeline in progress\nglab pipeline ci view\n\n# Check pipeline status\nglab ci status\n\n# View logs if failed\nglab ci trace\n\n# Retry failed pipeline\nglab ci retry\n\n# Lint CI config before pushing\nglab ci lint\n```\n\n## Common Patterns\n\n### Working Outside Repository Context\n\nWhen not in a Git repository, specify the repository:\n\n```bash\nglab mr list -R owner\u002Frepo\nglab issue list -R owner\u002Frepo\n```\n\n### Self-Hosted GitLab\n\nSet hostname for all commands:\n\n```bash\nexport GITLAB_HOST=gitlab.example.org\n# or per-command\nglab repo clone gitlab.example.org\u002Fowner\u002Frepo\n```\n\n### Automation and Scripting\n\nUse JSON output for parsing:\n\n```bash\nglab mr list --output=json | jq '.[] | .title'\n```\n\n### Using the API Command\n\nThe `glab api` command provides direct GitLab API access:\n\n```bash\n# Basic API call\nglab api projects\u002F:id\u002Fmerge_requests\n\n# IMPORTANT: Pagination uses query parameters in URL, NOT flags\n# ❌ WRONG: glab api --per-page=100 projects\u002F:id\u002Fjobs\n# ✓ CORRECT: glab api \"projects\u002F:id\u002Fjobs?per_page=100\"\n\n# Auto-fetch all pages\nglab api --paginate \"projects\u002F:id\u002Fpipelines\u002F123\u002Fjobs?per_page=100\"\n\n# POST with data\nglab api --method POST projects\u002F:id\u002Fissues --field title=\"Bug\" --field description=\"Details\"\n```\n\n## Best Practices\n\n1. **Verify authentication** before executing commands: `glab auth status`\n2. **Use `--help`** to explore command options: `glab \u003Ccommand> --help`\n3. **Link MRs to issues** using \"Closes #123\" in MR description\n4. **Lint CI config** before pushing: `glab ci lint`\n5. **Check repository context** when commands fail: `git remote -v`\n\n## Common Commands Quick Reference\n\n**Merge Requests:**\n\n- `glab mr list --assignee=@me` - Your assigned MRs\n- `glab mr list --reviewer=@me` - MRs for you to review\n- `glab mr create` - Create new MR\n- `glab mr checkout \u003Cnumber>` - Test MR locally\n- `glab mr approve \u003Cnumber>` - Approve MR\n- `glab mr merge \u003Cnumber>` - Merge approved MR\n\n**Issues:**\n\n- `glab issue list` - List all issues\n- `glab issue create` - Create new issue\n- `glab issue close \u003Cnumber>` - Close issue\n\n**CI\u002FCD:**\n\n- `glab pipeline ci view` - Watch pipeline\n- `glab ci status` - Check status\n- `glab ci lint` - Validate .gitlab-ci.yml\n- `glab ci retry` - Retry failed pipeline\n\n**Repository:**\n\n- `glab repo clone owner\u002Frepo` - Clone repository\n- `glab repo view` - View repo details\n- `glab repo fork` - Fork repository\n\n## Progressive Disclosure\n\nFor detailed command documentation, refer to:\n\n- **references\u002Fcommands-detailed.md** - Comprehensive command reference with all flags and options\n- **references\u002Fquick-reference.md** - Condensed command cheat sheet\n- **references\u002Ftroubleshooting.md** - Detailed error scenarios and solutions\n\nLoad these references when:\n\n- User needs specific flag or option details\n- Troubleshooting authentication or connection issues\n- Working with advanced features (API, schedules, variables, etc.)\n\n## Common Issues Quick Fixes\n\n**\"command not found: glab\"** - Install glab or verify PATH\n\n**\"401 Unauthorized\"** - Run `glab auth login`\n\n**\"404 Project Not Found\"** - Verify repository name and access permissions\n\n**\"not a git repository\"** - Navigate to repo or use `-R owner\u002Frepo` flag\n\n**\"source branch already has a merge request\"** - Use `glab mr list` to find existing MR\n\nFor detailed troubleshooting, load **references\u002Ftroubleshooting.md**.\n\n## Notes\n\n- glab auto-detects repository context from Git remote\n- Most commands have `--web` flag to open in browser\n- Use `--output=json` for scripting and automation\n- Multiple GitLab accounts can be authenticated simultaneously\n- Commands respect Git configuration and current repository context\n","# GitLab CLI (glab) Skill\n\nProvides guidance for using `glab`, the official GitLab CLI, to perform GitLab operations from the terminal.\n\n## When to Use This Skill\n\nInvoke when the user needs to:\n\n- Create, review, or manage merge requests\n- Work with GitLab issues\n- Monitor or trigger CI\u002FCD pipelines\n- Clone or manage repositories\n- Perform any GitLab operation from the command line\n\n## Prerequisites\n\nVerify glab installation before executing commands:\n\n```bash\nglab --version\n```\n\nIf not installed, inform the user and provide platform-specific installation guidance.\n\n## Authentication Quick Start\n\nMost glab operations require authentication:\n\n```bash\n# Interactive authentication\nglab auth login\n\n# Check authentication status\nglab auth status\n\n# For self-hosted GitLab\nglab auth login --hostname gitlab.example.org\n\n# Using environment variables\nexport GITLAB_TOKEN=your-token\nexport GITLAB_HOST=gitlab.example.org  # for self-hosted\n```\n\n## Core Workflows\n\n### Creating a Merge Request\n\n```bash\n# 1. Ensure branch is pushed\ngit push -u origin feature-branch\n\n# 2. Create MR\nglab mr create --title \"Add feature\" --description \"Implements X\"\n\n# With reviewers and labels\nglab mr create --title \"Fix bug\" --reviewer=alice,bob --label=\"bug,urgent\"\n```\n\n### Reviewing Merge Requests\n\n```bash\n# 1. List MRs awaiting your review\nglab mr list --reviewer=@me\n\n# 2. Checkout MR locally to test\nglab mr checkout \u003Cmr-number>\n\n# 3. After testing, approve\nglab mr approve \u003Cmr-number>\n\n# 4. Add review comments\nglab mr note \u003Cmr-number> -m \"Please update tests\"\n```\n\n### Managing Issues\n\n```bash\n# Create issue with labels\nglab issue create --title \"Bug in login\" --label=bug\n\n# Link MR to issue\nglab mr create --title \"Fix login\" --description \"Closes #\u003Cissue-number>\"\n\n# List your assigned issues\nglab issue list --assignee=@me\n```\n\n### Monitoring CI\u002FCD\n\n```bash\n# Watch pipeline in progress\nglab pipeline ci view\n\n# Check pipeline status\nglab ci status\n\n# View logs if failed\nglab ci trace\n\n# Retry failed pipeline\nglab ci retry\n\n# Lint CI config before pushing\nglab ci lint\n```\n\n## Common Patterns\n\n### Working Outside Repository Context\n\nWhen not in a Git repository, specify the repository:\n\n```bash\nglab mr list -R owner\u002Frepo\nglab issue list -R owner\u002Frepo\n```\n\n### Self-Hosted GitLab\n\nSet hostname for all commands:\n\n```bash\nexport GITLAB_HOST=gitlab.example.org\n# or per-command\nglab repo clone gitlab.example.org\u002Fowner\u002Frepo\n```\n\n### Automation and Scripting\n\nUse JSON output for parsing:\n\n```bash\nglab mr list --output=json | jq '.[] | .title'\n```\n\n### Using the API Command\n\nThe `glab api` command provides direct GitLab API access:\n\n```bash\n# Basic API call\nglab api projects\u002F:id\u002Fmerge_requests\n\n# IMPORTANT: Pagination uses query parameters in URL, NOT flags\n# ❌ WRONG: glab api --per-page=100 projects\u002F:id\u002Fjobs\n# ✓ CORRECT: glab api \"projects\u002F:id\u002Fjobs?per_page=100\"\n\n# Auto-fetch all pages\nglab api --paginate \"projects\u002F:id\u002Fpipelines\u002F123\u002Fjobs?per_page=100\"\n\n# POST with data\nglab api --method POST projects\u002F:id\u002Fissues --field title=\"Bug\" --field description=\"Details\"\n```\n\n## Best Practices\n\n1. **Verify authentication** before executing commands: `glab auth status`\n2. **Use `--help`** to explore command options: `glab \u003Ccommand> --help`\n3. **Link MRs to issues** using \"Closes #123\" in MR description\n4. **Lint CI config** before pushing: `glab ci lint`\n5. **Check repository context** when commands fail: `git remote -v`\n\n## Common Commands Quick Reference\n\n**Merge Requests:**\n\n- `glab mr list --assignee=@me` - Your assigned MRs\n- `glab mr list --reviewer=@me` - MRs for you to review\n- `glab mr create` - Create new MR\n- `glab mr checkout \u003Cnumber>` - Test MR locally\n- `glab mr approve \u003Cnumber>` - Approve MR\n- `glab mr merge \u003Cnumber>` - Merge approved MR\n\n**Issues:**\n\n- `glab issue list` - List all issues\n- `glab issue create` - Create new issue\n- `glab issue close \u003Cnumber>` - Close issue\n\n**CI\u002FCD:**\n\n- `glab pipeline ci view` - Watch pipeline\n- `glab ci status` - Check status\n- `glab ci lint` - Validate .gitlab-ci.yml\n- `glab ci retry` - Retry failed pipeline\n\n**Repository:**\n\n- `glab repo clone owner\u002Frepo` - Clone repository\n- `glab repo view` - View repo details\n- `glab repo fork` - Fork repository\n\n## Progressive Disclosure\n\nFor detailed command documentation, refer to:\n\n- **references\u002Fcommands-detailed.md** - Comprehensive command reference with all flags and options\n- **references\u002Fquick-reference.md** - Condensed command cheat sheet\n- **references\u002Ftroubleshooting.md** - Detailed error scenarios and solutions\n\nLoad these references when:\n\n- User needs specific flag or option details\n- Troubleshooting authentication or connection issues\n- Working with advanced features (API, schedules, variables, etc.)\n\n## Common Issues Quick Fixes\n\n**\"command not found: glab\"** - Install glab or verify PATH\n\n**\"401 Unauthorized\"** - Run `glab auth login`\n\n**\"404 Project Not Found\"** - Verify repository name and access permissions\n\n**\"not a git repository\"** - Navigate to repo or use `-R owner\u002Frepo` flag\n\n**\"source branch already has a merge request\"** - Use `glab mr list` to find existing MR\n\nFor detailed troubleshooting, load **references\u002Ftroubleshooting.md**.\n\n## Notes\n\n- glab auto-detects repository context from Git remote\n- Most commands have `--web` flag to open in browser\n- Use `--output=json` for scripting and automation\n- Multiple GitLab accounts can be authenticated simultaneously\n- Commands respect Git configuration and current repository context\n",{"name":5,"description":7,"allowed-tools":25},"Bash, Read, Grep, Glob","main","92e22ef4214449e86af2241cfa2abd6cc0b76c92","skills\u002Fglab","https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fthekorn","https:\u002F\u002Fwww.thekorn.dev","2026-09-10 23:18:58",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add thekorn\u002Fagent-skills --skill glab",{"tool":39,"command":40},"bunx","bunx skills add thekorn\u002Fagent-skills --skill glab",{"tool":42,"command":43},"pnpm","pnpm dlx skills add thekorn\u002Fagent-skills --skill glab","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FSKILL.md",true,[47,53,57,61,65,69,73],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"CHANGELOG.md","REFERENCE","参考文档",3592,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FCHANGELOG.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"CONTRIBUTING.md",5174,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FCONTRIBUTING.md",{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",1088,{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"README.md",7509,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002FREADME.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcommands-detailed.md",11957,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002Freferences\u002Fcommands-detailed.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fquick-reference.md",4269,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002Freferences\u002Fquick-reference.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ftroubleshooting.md",11471,"https:\u002F\u002Fgithub.com\u002Fthekorn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fglab\u002Freferences\u002Ftroubleshooting.md",[]]