Agent SkillsTerry-Mao/AICodingFlow › diagnose-ci-failures

diagnose-ci-failures

GitHub

用于诊断 CI 失败(如 GitHub Actions),通过提取日志和证据生成修复计划。仅分析不修改代码,支持 PR、分支或运行 ID 输入,按构建、测试等类别分类根因并提供验证步骤。

.agents/skills/diagnose-ci-failures/SKILL.md Terry-Mao/AICodingFlow

Trigger Scenarios

用户请求检查失败的 CI 流水线 提供 GitHub Actions 运行 URL 或 ID 进行故障排查 需要针对特定分支的 CI 失败生成修复方案

Install

npx skills add Terry-Mao/AICodingFlow --skill diagnose-ci-failures -g -y
More Options

Non-standard path

npx skills add https://github.com/Terry-Mao/AICodingFlow/tree/main/.agents/skills/diagnose-ci-failures -g -y

Use without installing

npx skills use Terry-Mao/AICodingFlow@diagnose-ci-failures

指定 Agent (Claude Code)

npx skills add Terry-Mao/AICodingFlow --skill diagnose-ci-failures -a claude-code -g -y

安装 repo 全部 skill

npx skills add Terry-Mao/AICodingFlow --all -g -y

预览 repo 内 skill

npx skills add Terry-Mao/AICodingFlow --list

SKILL.md

Frontmatter
{
    "name": "diagnose-ci-failures",
    "description": "Diagnose a PR, branch, run, or GitHub Actions URL from CI evidence and produce a fix plan without changing code."
}

diagnose-ci-failures

Use this when the user asks to inspect failing CI. This skill is diagnosis-only: it produces a reviewable plan and does not edit, commit, push, or create PRs.

Find and inspect the target

Use the user's run URL, run ID, or branch when provided. Otherwise inspect the current branch's PR and failed checks, then fall back to recent failed runs for that branch. If no failing target exists, report that and stop.

gh run view <run-id> --verbose
gh run list --branch <branch> --status failure --limit 5
gh pr view --json number,title,url,state,statusCheckRollup

For the selected PR/run, identify completed, pending, passed, and failed checks. If checks are still running, report the partial state instead of guessing. Pull failed-step logs first:

gh run view <run-id> --log-failed

Inspect a specific job or download artifacts only when the failed-step output is insufficient. Extract observed paths, line numbers, error messages, failing tests, stack traces, and environment/permission failures.

Produce the plan

Group evidence into build/compile, test, lint/format, and environment/setup failures. Do not assume a language, tool, or root cause before repository files or logs establish it. Write a plan containing:

  • problem statement and affected checks;
  • current evidence and locations;
  • likely root cause grounded in the logs;
  • specific proposed changes;
  • validation steps for the follow-up implementation.

Prefer CI evidence over local guesses. Treat multiple unrelated failures as separate categories and recommend resolving them one category at a time.

Version History

  • d3fef11 Current 2026-09-03 03:51

    重构了定位 CI 目标的逻辑,简化了从 URL/ID/分支获取信息的流程;优化了 PR 状态检查和失败步骤日志提取的描述,使其更精简明确。

  • e53c5ac 2026-07-24 11:35

Same Skill Collection

.agents/skills/bootstrap-issue-config/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/git-branch/SKILL.md
.agents/skills/git-commit/SKILL.md
.agents/skills/git-push/SKILL.md
.agents/skills/git-worktree/SKILL.md
.agents/skills/pr-walkthrough/SKILL.md
.agents/skills/resolve-merge-conflicts/SKILL.md
.agents/skills/review-pr-local/SKILL.md
.agents/skills/review-spec-local/SKILL.md
.agents/skills/spec-driven-implementation/SKILL.md
.agents/skills/write-product-spec/SKILL.md
.agents/skills/write-tech-spec/SKILL.md
.github/skills/check-impl-against-spec/SKILL.md
.github/skills/create-product-spec/SKILL.md
.github/skills/create-tech-spec/SKILL.md
.github/skills/dedupe-issue-repo/SKILL.md
.github/skills/dedupe-issue/SKILL.md
.github/skills/implement-issue/SKILL.md
.github/skills/implement-specs/SKILL.md
.github/skills/product-change-report/SKILL.md
.github/skills/product-docs-sync/SKILL.md
.github/skills/product-wiki/SKILL.md
.github/skills/review-pr-repo/SKILL.md
.github/skills/review-pr/SKILL.md
.github/skills/review-spec-repo/SKILL.md
.github/skills/review-spec/SKILL.md
.github/skills/security-review-pr/SKILL.md
.github/skills/security-review-spec/SKILL.md
.github/skills/triage-issue-repo/SKILL.md
.github/skills/triage-issue/SKILL.md
.github/skills/update-dedupe/SKILL.md
.github/skills/update-pr-review/SKILL.md
.github/skills/update-triage/SKILL.md

Metadata

Files
0
Version
d3fef11
Hash
00597e10
Indexed
2026-07-24 11:35

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 20:01
浙ICP备14020137号-1 $bản đồ khách truy cập$