Ci Failure Fixer
/install ci-failure-fixer
CI Failure Fixer
Monitor GitHub Actions for failures. Auto-fix what's fixable, report what's not.
How It Works
scripts/check-ci-failures.shpolls repos for new failed runs- If failures found → read build logs via
gh run view --log - Match error against known patterns → auto-fix if safe
- Push fix → wait 90s → verify build passes
- Report results (fixed or diagnosis-only)
Quick Start
On-demand
bash scripts/check-ci-failures.sh
Output: OK (no failures) or FAILURES with details.
As Cron Job (OpenClaw)
Set up a cron that runs every 30 minutes:
- Script:
bash scripts/check-ci-failures.sh - Model: Haiku (cheap, sufficient)
- On failure: Read logs, attempt auto-fix, report
Configuration
Environment variables:
GITHUB_OWNER— GitHub username (auto-detected fromghif not set)CI_REPOS— Space-separated repo names (auto-discovers all repos if not set)CI_STATE_FILE— Path to state JSON (tracks last check time)
Auto-Fixable Patterns
| Pattern | Detection | Fix |
|---|---|---|
| Dependency issues | npm ERR! Could not resolve |
npm install + push |
| Test snapshots | Snapshot mismatch |
npm test -- --update + push |
| Lint errors | eslint, Formatting |
eslint --fix + push |
| E2E snapshots | Playwright snapshot diff | playwright --update-snapshots + push |
Report-Only (Human Needed)
- Token/auth errors (secrets rotation)
- TypeScript errors (complex type issues)
- Build timeouts (resource/loop issues)
- Unknown errors
Fix Patterns Reference
Read references/fix-patterns.md for detailed decision tree, log reading commands, and all known patterns with fix scripts.
Reading Logs
# Latest failed run logs
gh run view --repo OWNER/REPO --log 2>&1 | tail -50
# Filter for errors
gh run view \x3Crun-id> --repo OWNER/REPO --log 2>&1 | grep -A5 "error\|FAIL"
After Fixing
Always verify the fix worked:
sleep 90 # Wait for new CI run
gh run list --repo OWNER/REPO --limit 1 --json conclusion -q '.[0].conclusion'
# Should be "success"
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ci-failure-fixer - 安装完成后,直接呼叫该 Skill 的名称或使用
/ci-failure-fixer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Ci Failure Fixer 是什么?
Monitor GitHub Actions CI pipelines for failures and automatically fix common issues. Use when asked to watch CI, fix build failures, monitor GitHub Actions,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。
如何安装 Ci Failure Fixer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ci-failure-fixer」即可一键安装,无需额外配置。
Ci Failure Fixer 是免费的吗?
是的,Ci Failure Fixer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ci Failure Fixer 支持哪些平台?
Ci Failure Fixer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ci Failure Fixer?
由 DanielGrobelny(@danielgrobelny)开发并维护,当前版本 v1.0.0。