fix-pr-checks
БесплатноБез исполняемых скриптовНе проверенFix the currently-failing status checks on the current branch's PR in one sweep — route each failing check to the right diagnosis skill (via a Haiku subagent…
от adamayoung★ 182 звезды на GitHubОб этом скилле
Fix PR Checks
Get a pull request's failing checks green: for each failing status check,
diagnose the cause, apply and verify a fix, and push. This is a single sweep
over the checks failing right now — it diagnoses and fixes them, pushes once,
and returns. Waiting on pending checks and deciding whether to sweep again belong
to the caller (you, or /watch-pr).
Repo is adamayoung/TMDb. GitHub reads use the GitHub MCP (mcp__github__*);
gh is authenticated and used for the blocking CI wait. If an MCP call fails with
401/403 (PAT expired or missing scope), fall back to the equivalent gh command.
It stands on the diagnosis skills
Don't read CI logs yourself. The analysis is already a capability — delegate it to
a Haiku subagent running the matching diagnosis skill (a repeat failure
re-diagnoses on Opus — see §2), so raw logs never enter your context and you
get back a file:line cause and a concrete fix:
- The Integration check (live-API suite from
integration.yml) →/diagnose-integration-failure - Any CI check — lint, markdown lint, build, or unit tests from
ci.yml→/diagnose-ci-failure
This skill is the act-on-it layer: route → fix → verify → commit → push.
Principles
- One sweep, then return. Handle every check failing at invocation, push once, report. Don't loop waiting for the re-run — that convergence is the caller's job.
- Diagnose via Haiku, escalate a repeat to Opus, fix locally. Get Cause/Fix from the diagnosis skill, then apply it and verify before claiming it fixed with the delegated build/test skills. First diagnosis of a check runs on Haiku; a check that comes back after a fix re-diagnoses on Opus (§2).
- Respect the attempt cap. A check gets at most 3 fix→push attempts (tracked in the run ledger). If it still fails on the same root cause, stop touching it and report it exhausted — never loop forever.
- Failing only. Act on
failchecks.pendingchecks are not yours to chase — report them and leave waiting to the caller.claude-reviewand other neutral checks are non-blocking. - Never fake green. Don't edit
.github/workflows/*or CI config to silence a check, and don't force-push, without surfacing to the user first.
0. Find the PR
Find the open PR for the current branch with mcp__github__list_pull_requests
(owner/repo from the origin remote, head: <owner>:<branch>, state: open), or
read a specific one with mcp__github__pull_request_read method get. Take
number/html_url/state/head.ref from the result.
- An explicit PR number in the arguments overrides the current branch.
- No PR for the current branch → stop and tell the user (suggest
/pr). - State not
open→ stop and report.
1. List the checks
Use mcp__github__pull_request_read method get_check_runs (owner/repo from
origin, pullNumber: <n>) — the individual CI/CD check runs for the head
commit. Classify each by status + conclusion:
- fix it (below):
conclusionisfailure/timed_out/cancelled/action_required. - pending (report, leave for the caller to wait on):
statusis notcompleted(queued/in_progress). - ignore:
conclusionissuccess/skipped/neutral(e.g.claude-review).
If nothing is failing, return immediately (note any pending checks).
2. Diagnose each failing check (Haiku first, Opus on a repeat)
For each fail check under its attempt cap, spawn the check-diagnoser
agent (Agent tool, subagent_type: check-diagnoser — its no-fix/no-build
contract, report shape, and Haiku floor-pin live in
.claude/agents/check-diagnoser.md), substituting the check name and the
routed skill. Pick the model from the check's ledger history and pass it
explicitly (a call-site model beats the agent's frontmatter pin —
ADR-0014):
- First attempt →
model: haiku. - Repeat (the ledger shows a prior attempt for this check — a fix that
didn't verify, or the check failed again after the push) →
model: opus, prepending one line of prior-attempt context to the prompt: the previous Cause/Fix and why it didn't stick. A misdiagnosis costs a full fix→push→CI round trip; don't pay it twice on the same model tier.
Registry lag. A freshly merged agent file may not register as a spawnable
subagent_typeuntil a new session (knowledge/delivery-retros.md), and an unrecognised type silently starts a plain general-purpose agent — with no contract at all now that the prompt below carries none. Ifcheck-diagnoseris not a recognised type, don't fall through silently: say so, and re-spawn asgeneral-purposewith.claude/agents/check-diagnoser.mdread into the prompt as its contract.
The `<CHECK NAME>` check failed on the TMDb PR for branch `<branch>`.
Use the `<SKILL>` skill to diagnose it.
Two or more failing checks → one Workflow
One failing check stays a
Установить fix-pr-checks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fix-pr-checks?
Fix the currently-failing status checks on the current branch's PR in one sweep — route each failing check to the right diagnosis skill (via a Haiku subagent, escalating to Opus on a repeat failure), apply and verify the fix, commit, and push once — then return a summary. Use standalone when CI is red, or as the check-fixing step invoked by /watch-pr. Repo is adamayoung/TMDb.
Как установить скилл fix-pr-checks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fix-pr-checks запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic