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

diagnose-ci-failures

GitHub

分析 CI/CD 失败原因并生成修复计划,不修改代码。通过 GitHub CLI 获取日志和检查状态,识别构建、测试等故障根因,提供分步验证方案。

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

触发场景

用户询问 CI 流水线失败原因 需要诊断 PR 或分支的构建错误

安装

npx skills add Terry-Mao/AICodingFlow --skill diagnose-ci-failures -g -y
更多选项

非标准路径

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

不安装直接使用

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.

版本历史

  • d3fef11 当前 2026-09-03 03:51

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

  • e53c5ac 2026-07-24 11:35

同 Skill 集合

.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

元信息

文件数
0
版本
d3fef11
Hash
00597e10
收录时间
2026-07-24 11:35

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-12 05:34
浙ICP备14020137号-1 $访客地图$