AgentSkillsCN

flywheel-ci-failure-autofix

调查 CI 运行失败的情况,并创建专门的修复 PR。当 CI 工作流失败、用户请求自动修复失败的检查,或在分析作业日志以进行最小化修正时使用。

SKILL.md
--- frontmatter
name: flywheel-ci-failure-autofix
description: Investigate failed CI runs and create a dedicated fix PR. Use when CI workflow fails, when user asks to auto-fix failing checks, or when analyzing job logs for minimal corrective changes.
allowed-tools: Read,Grep,Glob,LS,Edit,MultiEdit,Write,Bash(gh *),Bash(git *),Bash(uv run pytest *),Bash(uv run ruff *)

Flywheel CI Failure Autofix

Goal

Turn a failed CI run into a focused repair PR with root-cause explanation.

Workflow

  1. Fetch failed workflow run and job summaries.
  2. Identify primary failing check and minimal fix path.
  3. Implement targeted code/test fix.
  4. Re-run affected checks locally where possible.
  5. Create fix branch and PR with CI-fail prefix.
  6. Document in PR body:
    • probable root cause
    • fix summary
    • verification commands
    • residual risks

Safety Rules

  • Do not touch unrelated modules.
  • Do not edit workflow permissions/secrets unless explicitly requested.
  • Do not push directly to master.

Output Checklist

  • Failed job(s) analyzed
  • Root-cause statement
  • Files changed
  • Verification commands
  • PR URL