From glab
Show the latest GitLab CI pipeline status for the current branch (or specified branch). Highlights failed jobs and provides commands to view their logs. Use when user asks pipeline / CI / 流水线 / 构建状态 / 跑得怎么样.
How this skill is triggered — by the user, by Claude, or both
Slash command
/glab:pipelineThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
依赖 `glab` CLI 已安装并完成 git.snowsse.cn 认证。
依赖 glab CLI 已安装并完成 git.snowsse.cn 认证。
执行前先跑:glab auth status。失败则调用 glab:setup 输出教程,终止本 skill。
git rev-parse --abbrev-ref HEAD
如果用户指定了分支,覆盖。
glab ci status --branch <分支>
或更详细:
glab ci view --branch <分支>
注:不同 glab 版本子命令略有差异。如果上面失败,回退到:
glab pipeline status --branch <分支> # 旧版
glab pipeline view --branch <分支>
## 分支 <branch> 最新 Pipeline
- 状态: <success / failed / running / canceled / skipped>
- 触发: <commit-sha-short> "<commit-message-short>"
- 开始: <created_at>
- 耗时: <duration>
### Stages
| Stage | 状态 | Jobs |
|---|---|---|
| build | ✓ success | 3/3 |
| test | ✗ failed | 2/4(job1, job3 失败) |
| deploy | - skipped | - |
### 失败 Jobs(如有)
#### <job-name>
- 失败原因(从输出能看到的): ...
- 查看完整日志: `glab ci trace <job-id>`
- 重跑: `glab ci retry <job-id>`
failed → 列出 glab ci trace <id> 命令让用户复制running → 提示用户隔几分钟再 /glab:pipeline 看结果success → 简短"全绿",如果有 MR 就提示"可以推进 MR ready"canceled / skipped → 提示原因(commit message 含 [skip ci] 等)glab ci retry(影响构建队列,让用户决定)npx claudepluginhub itmrboy/glab_skills --plugin glabCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.