gitlab-cli-skills by vince-winkintel/gitlab-cli-skills
npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill gitlab-cli-skills全面的 GitLab CLI (glab) 命令参考和工作流。
# 首次设置
glab auth login
# 常用操作
glab mr create --fill # 从当前分支创建 MR
glab issue create # 创建议题
glab ci view # 查看流水线状态
glab repo view --web # 在浏览器中打开仓库
此技能按 GitLab 领域路由到专门的子技能:
核心工作流:
glab-mr - 合并请求:创建、审查、批准、合并glab-issue - 议题:创建、列出、更新、关闭、评论glab-ci - CI/CD:流水线、作业、日志、制品glab-repo - 仓库:克隆、创建、派生、管理项目管理:
glab-milestone - 发布规划和里程碑跟踪广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
glab-iteration - 冲刺/迭代管理glab-label - 标签管理和组织glab-release - 软件发布和版本控制认证与配置:
glab-auth - 登录、登出、Docker 注册表认证glab-config - CLI 配置和默认值glab-ssh-key - SSH 密钥管理glab-gpg-key - 用于提交签名的 GPG 密钥glab-token - 个人和项目访问令牌CI/CD 管理:
glab-job - 单个作业操作glab-schedule - 计划流水线和定时作业glab-variable - CI/CD 变量和密钥glab-securefile - 流水线的安全文件glab-runner - Runner 管理:列出、暂停、删除(v1.87.0 新增)glab-runner-controller - Runner 控制器和令牌管理(实验性,仅限管理员)协作:
glab-user - 用户资料和信息glab-snippet - 代码片段(GitLab gists)glab-incident - 事件管理glab-workitems - 工作项:任务、OKR、关键结果、下一代史诗(v1.87.0 新增)高级功能:
glab-api - 直接 REST API 调用glab-cluster - Kubernetes 集群集成glab-deploy-key - 用于自动化的部署密钥glab-quick-actions - 用于批量状态更改的 GitLab 斜杠命令快速操作glab-stack - 堆叠/依赖的合并请求glab-opentofu - Terraform/OpenTofu 状态管理实用工具:
glab-alias - 自定义命令别名glab-completion - Shell 自动补全glab-help - 命令帮助和文档glab-version - 版本信息glab-check-update - 更新检查器glab-changelog - 变更日志生成glab-attestation - 软件供应链安全glab-duo - GitLab Duo AI 助手glab-mcp - 用于 AI 助手集成的模型上下文协议服务器(实验性)v1.89.0+: 跨 12 个子技能的 18 个命令现在支持
--output json/-F json用于结构化输出 —— 原始的 GitLab API 响应,非常适合代理/自动化解析。受影响的子技能:glab-release,glab-ci,glab-milestone,glab-schedule,glab-mr,glab-repo,glab-label,glab-deploy-key,glab-ssh-key,glab-gpg-key,glab-cluster,glab-opentofu。
其他 v1.89.0 变更:
glab-auth : glab auth login 现在会在自托管实例上分别提示输入 SSH 主机名和 API 主机名glab-stack : 添加了 glab stack sync --update-base 标志,用于将堆栈变基到更新后的基础分支上glab-release : --notes / --notes-file 现在对于 glab release create 和 glab release update 是可选的在以下情况使用 glab:
在以下情况使用 Web 界面:
# 开始处理议题
glab issue view 123
git checkout -b 123-feature-name
# 准备好后创建 MR
glab mr create --fill --draft
# 标记为准备审查
glab mr update --ready
# 批准后合并
glab mr merge --when-pipeline-succeeds --remove-source-branch
# 列出您的审查队列
glab mr list --reviewer=@me --state=opened
# 审查一个 MR
glab mr checkout 456
glab mr diff
npm test
# 批准
glab mr approve 456
glab mr note 456 -m "LGTM! Nice work on the error handling."
# 检查流水线状态
glab ci status
# 查看失败的作业
glab ci view
# 获取作业日志
glab ci trace <job-id>
# 重试失败的作业
glab ci retry <job-id>
需要跟踪工作吗?
├─ 是 → 先创建议题 (glab issue create)
│ 然后:glab mr for <issue-id>
└─ 否 → 直接 MR (glab mr create --fill)
在以下情况使用 glab issue create + glab mr for:
在以下情况直接使用 glab mr create:
您需要什么?
├─ 整体流水线状态 → glab ci status
├─ 可视化流水线视图 → glab ci view
├─ 特定作业日志 → glab ci trace <job-id>
├─ 下载构建制品 → glab ci artifact <ref> <job-name>
├─ 验证配置文件 → glab ci lint
├─ 触发新运行 → glab ci run
└─ 列出所有流水线 → glab ci list
快速参考:
glab ci status, glab ci view, glab ci runglab ci trace, glab job retry, glab job viewglab ci artifact(按流水线)或通过 glab job 的作业制品您与仓库的关系是什么?
├─ 您有写入权限 → glab repo clone group/project
├─ 为他人项目做贡献:
│ ├─ 一次性贡献 → glab repo fork + 工作 + MR
│ └─ 持续贡献 → glab repo fork,然后定期同步
└─ 仅阅读/探索 → glab repo clone (或 view --web)
在以下情况派生:
在以下情况克隆:
标签应该放在哪里?
├─ 跨多个项目使用 → glab label create --group <group>
└─ 特定于一个项目 → glab label create (在项目目录中)
群组级标签:
项目级标签:
MR 和议题工作流:
glab-issue 开始以创建/跟踪工作glab-mr 创建关闭议题的 MRscripts/create-mr-from-issue.sh 自动化此过程CI/CD 调试:
glab-ci 进行流水线级操作glab-job 进行单个作业操作scripts/ci-debug.sh 用于快速故障诊断仓库操作:
glab-repo 进行仓库管理glab-auth 进行认证设置scripts/sync-fork.sh 用于派生同步配置:
glab-auth 进行初始认证glab-config 设置默认值和偏好glab-alias 获取自定义快捷方式每周安装次数
367
仓库
GitHub 星标数
11
首次出现
2026年2月6日
安全审计
安装于
opencode362
github-copilot362
gemini-cli361
codex361
kimi-cli361
amp361
Comprehensive GitLab CLI (glab) command reference and workflows.
# First time setup
glab auth login
# Common operations
glab mr create --fill # Create MR from current branch
glab issue create # Create issue
glab ci view # View pipeline status
glab repo view --web # Open repo in browser
This skill routes to specialized sub-skills by GitLab domain:
Core Workflows:
glab-mr - Merge requests: create, review, approve, mergeglab-issue - Issues: create, list, update, close, commentglab-ci - CI/CD: pipelines, jobs, logs, artifactsglab-repo - Repositories: clone, create, fork, manageProject Management:
glab-milestone - Release planning and milestone trackingglab-iteration - Sprint/iteration managementglab-label - Label management and organizationglab-release - Software releases and versioningAuthentication & Config:
glab-auth - Login, logout, Docker registry authglab-config - CLI configuration and defaultsglab-ssh-key - SSH key managementglab-gpg-key - GPG keys for commit signingglab-token - Personal and project access tokensCI/CD Management:
glab-job - Individual job operationsglab-schedule - Scheduled pipelines and cron jobsglab-variable - CI/CD variables and secretsglab-securefile - Secure files for pipelinesglab-runner - Runner management: list, pause, delete (added v1.87.0)glab-runner-controller - Runner controller and token management (EXPERIMENTAL, admin-only)Collaboration:
glab-user - User profiles and informationglab-snippet - Code snippets (GitLab gists)glab-incident - Incident managementglab-workitems - Work items: tasks, OKRs, key results, next-gen epics (added v1.87.0)Advanced:
glab-api - Direct REST API callsglab-cluster - Kubernetes cluster integrationglab-deploy-key - Deploy keys for automationglab-quick-actions - GitLab slash command quick actions for batching state changesglab-stack - Stacked/dependent merge requestsglab-opentofu - Terraform/OpenTofu state managementUtilities:
glab-alias - Custom command aliasesglab-completion - Shell autocompletionglab-help - Command help and documentationglab-version - Version informationglab-check-update - Update checkerglab-changelog - Changelog generationglab-attestation - Software supply chain securityglab-duo - GitLab Duo AI assistantglab-mcp - Model Context Protocol server for AI assistant integration (EXPERIMENTAL)v1.89.0+: 18 commands across 12 sub-skills now support
--output json/-F jsonfor structured output — raw GitLab API responses ideal for agent/automation parsing. Affected sub-skills:glab-release,glab-ci,glab-milestone,glab-schedule,glab-mr,glab-repo,glab-label,glab-deploy-key,glab-ssh-key, , , .
Other v1.89.0 changes:
glab-auth : glab auth login now prompts for SSH hostname separately from API hostname on self-hosted instancesglab-stack : glab stack sync --update-base flag added to rebase stack onto updated base branchglab-release : --notes / --notes-file are now optional for glab release create and glab release updateUse glab when:
Use web UI when:
# Start work on issue
glab issue view 123
git checkout -b 123-feature-name
# Create MR when ready
glab mr create --fill --draft
# Mark ready for review
glab mr update --ready
# Merge after approval
glab mr merge --when-pipeline-succeeds --remove-source-branch
# List your review queue
glab mr list --reviewer=@me --state=opened
# Review an MR
glab mr checkout 456
glab mr diff
npm test
# Approve
glab mr approve 456
glab mr note 456 -m "LGTM! Nice work on the error handling."
# Check pipeline status
glab ci status
# View failed jobs
glab ci view
# Get job logs
glab ci trace <job-id>
# Retry failed job
glab ci retry <job-id>
Need to track work?
├─ Yes → Create issue first (glab issue create)
│ Then: glab mr for <issue-id>
└─ No → Direct MR (glab mr create --fill)
Useglab issue create + glab mr for when:
Useglab mr create directly when:
What do you need?
├─ Overall pipeline status → glab ci status
├─ Visual pipeline view → glab ci view
├─ Specific job logs → glab ci trace <job-id>
├─ Download build artifacts → glab ci artifact <ref> <job-name>
├─ Validate config file → glab ci lint
├─ Trigger new run → glab ci run
└─ List all pipelines → glab ci list
Quick reference:
glab ci status, glab ci view, glab ci runglab ci trace, glab job retry, glab job viewglab ci artifact (by pipeline) or job artifacts via glab jobWhat's your relationship to the repo?
├─ You have write access → glab repo clone group/project
├─ Contributing to someone else's project:
│ ├─ One-time contribution → glab repo fork + work + MR
│ └─ Ongoing contributions → glab repo fork, then sync regularly
└─ Just reading/exploring → glab repo clone (or view --web)
Fork when:
Clone when:
Where should the label live?
├─ Used across multiple projects → glab label create --group <group>
└─ Specific to one project → glab label create (in project directory)
Group-level labels:
Project-level labels:
MR and Issue workflows:
glab-issue to create/track workglab-mr to create MR that closes issuescripts/create-mr-from-issue.sh automates thisCI/CD debugging:
glab-ci for pipeline-level operationsglab-job for individual job operationsscripts/ci-debug.sh for quick failure diagnosisRepository operations:
glab-repo for repository managementglab-auth for authentication setupscripts/sync-fork.sh for fork synchronizationConfiguration:
glab-auth for initial authenticationglab-config to set defaults and preferencesglab-alias for custom shortcutsWeekly Installs
367
Repository
GitHub Stars
11
First Seen
Feb 6, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode362
github-copilot362
gemini-cli361
codex361
kimi-cli361
amp361
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装
glab-gpg-keyglab-clusterglab-opentofu