Borrowing it
Nothing to install: this file belongs to sumulige/sumulige-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sumulige/sumulige-claude/main/.claude/commands/gha.mdgit clone --depth 1 https://github.com/sumulige/sumulige-claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/sumulige/sumulige-claude/gha)<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/gha"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/gha/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/gha"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/gha.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00006 | $0.00735 |
| Opus 5.5 | $0.00002 | $0.00294 |
| Sonnet 5.5 | $0.00001 | $0.00147 |
| Haiku 4.5 | $0.00001 | $0.00073 |
Grade A, and why
gha scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
/gha
分析 GitHub Actions CI 失败,自动检测问题并建议修复方案。
使用方式
/gha <workflow-url> # 分析指定的 workflow run
/gha --last # 分析最近失败的 workflow
/gha --flaky # 检测 flaky tests
/gha --history # 查看失败历史趋势
工作流程
Step 1: 获取 Workflow 信息
# 获取最近的 workflow runs
gh run list --limit 10
# 获取失败的 run 详情
gh run view <run-id> --log-failed
Step 2: 分析失败原因
检测以下常见问题:
| 问题类型 | 检测方式 | 建议 |
|---|---|---|
| Flaky Test | 同一测试随机失败 | 添加重试或修复竞态 |
| Timeout | 超时错误 | 优化性能或增加限制 |
| Dependency | 安装失败 | 检查版本锁定 |
| Build Error | 编译错误 | 检查代码变更 |
| Network | 网络超时 | 添加重试机制 |
| Permission | 权限错误 | 检查 GITHUB_TOKEN |
Step 3: 生成报告
# GHA Analysis Report
## Workflow: [workflow-name]
**Run ID**: [run-id]
**Status**: ❌ Failed
**Duration**: [time]
**Triggered by**: [event]
## Failure Summary
### Job: [job-name]
**Step**: [step-name]
**Error Type**: [类型]
### Error Log
[关键错误日志]
## Root Cause Analysis
1. **主要原因**: [分析]
2. **相关 Commit**: [commit-sha]
3. **影响范围**: [范围]
## Recommendations
1. [ ] [建议修复 1]
2. [ ] [建议修复 2]
## Quick Fix
```bash
# 快速修复命令
[修复命令]
Similar Failures
- [link to similar run 1]
- [link to similar run 2]
### Step 4: 可选操作
```bash
# 重新运行失败的 workflow
gh run rerun <run-id> --failed
# 查看特定 job 日志
gh run view <run-id> --job <job-id> --log
常见问题快速诊断
Flaky Test 检测
# 检查最近 10 次运行中同一测试的失败率
gh run list --workflow=test.yml --limit 10 --json conclusion,databaseId
依赖问题
# 检查 lockfile 变更
git diff HEAD~1 -- package-lock.json yarn.lock pnpm-lock.yaml
权限问题
检查 workflow 文件中的 permissions:
permissions:
contents: read
pull-requests: write
集成 /fix
如果是代码问题,自动调用 /fix 修复:
/gha --last # 分析失败
/fix --build # 修复构建错误
/test # 本地验证
/commit # 提交修复
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 137 lines · 6 tokens per session scan A 5a28d0d88ce8
gha is a command published in the GitHub repository sumulige/sumulige-claude (1 stars, last pushed 8mo ago), licensed MIT. It adds 6 tokens to every session and 735 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
doctor
Run read-only health checks on the Kobiton automate plugin (CLI, credentials, profile, vUSB client).
validate
Run SDLC compliance check against the current project. Validates build system, code quality, testing, CI/CD, security, documentation, VCS, and release configurations.
ops-ci-fix
Diagnose and repair failing CI/CD pipelines.
gh-fix-tests
Fix failing GitHub CI checks on a PR.
lint
Command "lint" from ApexIQ/skillsmith, covering command: /lint, goal, resources and execution plan.
debug
Command "debug" from ApexIQ/skillsmith, covering command: /debug, goal, resources and execution plan.