返回 Skill 列表
GitHub进阶
gh-fix-ci:自动修 CI(OpenAI 官方)
自动读取 GitHub Actions 失败日志,给出修复建议。CI 挂了不用自己翻几十行报错。
📋 SKILL.md 完整代码
--- name: gh-fix-ci-skill description: >- 自动读取 GitHub Actions 失败日志,给出修复建议。CI 挂了不用自己翻几十行报错。 Use when working on gh fix ci skill tasks. allowed-tools: Read,Write,Bash --- # gh-fix-ci:自动修 CI(OpenAI 官方) ## Quick Start 1. Save as `~/.claude/skills/gh-fix-ci-skill/SKILL.md` 2. Restart Claude Code 3. Type `/gh-fix-ci-skill` or describe your task naturally 4. Claude auto-triggers when your task matches the description ## Instructions - Understand the user's specific context and needs - Apply domain best practices consistently - Provide actionable, specific guidance with examples - Verify all outputs before presenting to user ## Gotchas - Test with a fresh Claude instance after changes - Keep SKILL.md under 500 lines; use references/ for details - Description is the trigger key — make it specific and keyword-rich
🚀 怎么用
1. 复制上面的 SKILL.md 代码 2. 保存为 ~/.claude/skills/gh-fix-ci-skill/SKILL.md 3. 重启 Claude Code 4. 输入 /gh-fix-ci-skill 或直接描述任务触发 5. AI 自动按 Skill 流程执行
使用方法
CI 红了一片 → 对 AI 说「我的 CI 挂了,帮我看看」→ AI 自动读失败日志→ 定位问题→ 给出修复代码。GitHub Actions/Jenkins/CircleCI 都支持。
SKILL.md 模板
name: gh-fix-ci description: Analyze CI failure logs and suggest fixes. Use when CI builds fail. # Fix CI ## Steps 1. Read CI failure logs 2. Identify root cause 3. Suggest fix with code 4. Explain why it failed 5. Verify fix won't break other pipelines