ci-fix
Get a PR's CI green — watch its checks, read the logs of each red one, fix failures the PR's own diff caused, commit, push and watch again; re-run a check…
от nabondance★ 49 звёзд на GitHub
Установить ci-fix в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CI Fix
Commits and pushes fixes to the PR's branch: running this skill is the
request to do so. It never force-pushes, never merges, never touches main.
Steps
Resolve the PR: the argument, else the current branch (
gh pr view --json number,headRefName). Work in a checkout of that branch with a clean tree; uncommitted changes → stop and say so.Watch:
gh pr checks <pr> --watch --interval 20. All pass → report and stop.Diagnose each failing check. For a GitHub Actions check:
gh run view <run-id> --log-failed | tail -80. Sort it into one of three:- Caused by the PR: the failure points at code or files the PR changed
(
gh pr diff <pr> --name-only). - Flaky: HTTP 429, timeouts, network errors, runner or registry outages, with nothing pointing at the diff.
- Not the PR's: it also fails on
main(gh run list --branch main --workflow <name> --limit 3), or needs a secret, a setting or an external service fixed.
- Caused by the PR: the failure points at code or files the PR changed
(
Act:
- Flaky →
gh run rerun <run-id> --failed, once per check. Fails the same way again → treat it as not the PR's. - Not the PR's → stop and report; do not work around it.
- Caused by the PR → fix it, reproduce the check locally where it can
be (table below), commit with a conventional message,
git push, go back to step 2.
- Flaky →
Stop after 3 fix rounds, or when a fix fails the same way twice. Report what is still red and why.
This repo's checks
| Check | Reproduce locally | Notes |
|---|---|---|
| MegaLinter | bash scripts/agent/format.sh, or the megalinter:megalinter-check skill |
Fix with bash scripts/agent/format-fix.sh or megalinter:megalinter-fix |
| Banner Preview | bash scripts/agent/verify.sh <usernames> |
HTTP 429: Rate limited is the app's own per-IP limiter → flaky |
| Lighthouse | pnpm build |
Score drops only matter when the PR touches pages, components or styles |
| Harness Audit | bash scripts/agent/harness-audit.sh |
|
| Vercel | pnpm build |
Deployment logs need Vercel access → report the link |
| CodeRabbit, triage | — | Not code checks: never "fix" them |
Never
- Force-push, merge, or push to
main. - Skip hooks (
--no-verify), disable a linter or rule, add a suppression comment, or edit a workflow to make a check pass — propose those to the user instead. - Re-run a check more than once.
Output
## CI fix — PR #<n>
Result: green | still red after <n> round(s) | stopped — <reason>
- <check>: <fixed in <sha> | re-run, passed | still failing — <why, link>>
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ci-fix?
Get a PR's CI green — watch its checks, read the logs of each red one, fix failures the PR's own diff caused, commit, push and watch again; re-run a check once when the failure is flaky infrastructure (rate limit, timeout, network). Stops and reports when a failure is not the PR's fault or after 3 fix rounds. Use when the user says "make CI green", "fix the failing checks", or a PR's checks are red.
Как установить скилл ci-fix?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ci-fix запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…