一键导入
fix-ci-failures
Diagnose and fix CI/CD failures by analyzing logs, reproducing locally, and applying fixes. Use when CI checks fail on pull requests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix CI/CD failures by analyzing logs, reproducing locally, and applying fixes. Use when CI checks fail on pull requests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run section orchestrators to coordinate multi-component workflows. Use when starting work on a section.
Validate agent YAML frontmatter and configuration. Use before committing agent changes or in CI.
Reply to PR review comments using the correct GitHub API endpoint. Use when responding to inline code review feedback (not gh pr comment).
Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage.
Track implementation progress against plan. Use to monitor component delivery and identify blockers.
Check agent configuration coverage across hierarchy levels and phases. Use to ensure complete agent system coverage.
| name | fix-ci-failures |
| description | Diagnose and fix CI/CD failures by analyzing logs, reproducing locally, and applying fixes. Use when CI checks fail on pull requests. |
| mcp_fallback | none |
| category | ci |
Diagnose and fix CI failures systematically.
# View PR checks
gh pr checks <pr-number>
# View specific run details
gh run view <run-id> --log-failed
# Reproduce locally
./scripts/reproduce_ci.sh <run-id>
| Failure | Command | Fix |
|---|---|---|
| Trailing whitespace | just pre-commit-all | Stage and re-commit |
| Test failure | pixi run mojo test tests/ | Fix code, re-run tests |
| Markdown lint | npx markdownlint-cli2 --fix "**/*.md" | Commit fixes |
| Build error | Check imports/deps | Update and rebuild |
# 1. View CI status
gh pr checks 123
# 2. Get failure details
gh run view <run-id> --log-failed
# 3. Download logs for analysis
gh run download <run-id>
# 4. Reproduce issue locally
./scripts/reproduce_ci.sh <run-id>
# 5. Fix the issue
# ... make changes ...
# 6. Verify locally
./scripts/run_ci_locally.sh
# 7. Push fix
git add .
git commit -m "fix: address CI failure"
git push
# 8. Monitor CI
gh pr checks 123 --watch
| Error | Cause | Fix |
|---|---|---|
| "Cannot find module" | Missing import or broken path | Fix import, check file structure |
| "Syntax error" | Invalid code | Correct syntax, test compile |
| "Test failed" | Logic error | Debug test, fix implementation |
| "Hook failed" | Formatting/whitespace | Run formatters, re-commit |
scripts/get_ci_logs.sh - Download CI logsscripts/reproduce_ci_failure.sh - Reproduce locallyscripts/run_ci_locally.sh - Run CI checks locallyscripts/fix_common_ci_issues.sh - Auto-fix common issuesquality-run-linters for lintingrun-precommit for pre-commit hooks.github/workflows/