/supermatt:recover-cifrom SuperMatt
Diagnoses and recovers a failed CI check or workflow run within a bounded budget of two repair cycles and one transient rerun. For use by callers like ship-pr or babysit-pr when a PR check or post-merge workflow fails.
Ships in SuperMatt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Recover one failed CI check or workflow run for a caller. It applies to repository defects exposed by the run even when the shipped diff did not introduce them. Keep the repair limited to the observed failure and preserve the user's scope and permissions. This skill has no merge authority: it never merges, approves, or bypasses a protection, and it hands the result back to its caller. Run every command and subprocess, including gh, validation, and hooks, from the worktree the caller selected; git -C <path> scopes only that Git command.
The caller supplies:
ship-pr needs. A caller that polls the PR itself, such as babysit-pr, says it settles reruns, and gets the rerun back as soon as it is requested, so its loop keeps handling feedback and its deadline meanwhile.If any of these is missing, stop with that gap. Never assume a fresh budget.
One operation has two repair cycles and one transient rerun. The caller decides what one operation is and carries the counters across restarts, sessions, follow-up PRs, and post-merge runs; a new commit, failure, PR, worker session, or run does not reset them. If the prior attempts cannot be established, stop with that evidence gap.
Record a spend in the caller's durable record before acting on it: increment the rerun before requesting it, and the repair cycle before the first edit. A repair cycle includes the fix, verification, push, and the CI that follows. An unexpected local verification failure or a review finding returns to diagnosis and consumes the next cycle before further edits; an intentional red regression reproduction is part of the current cycle. Retain each failed attempt instead of replacing its logs with a later pass.
gh run rerun <run-id> --failed for Actions). When the caller settles reruns, return rerun now with the run ID and the new attempt. Otherwise wait for the new attempt to settle and record its result. If it fails again, diagnose the new evidence; repair an established repository defect within the remaining repair budget, otherwise stop. Do not rerun assertion failures merely to obtain a green result.tdd skill through the host's skill mechanism, with the observed failure as the red case. Keep checks and protections effective: do not skip tests, loosen assertions, remove required checks, or disable protections merely to get green CI. A defective assertion can be corrected only with independent evidence of the intended behavior and a check that still rejects the wrong behavior. Complete the repository's required local gate, then screen the working changes, untracked files, and every outgoing commit for credentials, tokens, private keys, and values that do not belong in the repository. A detected secret stops both commit and push without rewriting history. Otherwise commit the fix with normal hooks before follow-up QA and review.qa skill through the host's skill mechanism on the affected behavior; a host without a fresh context runs it in a sequential fresh session where it can, and otherwise reports the exact independence gap. Then load and follow the code-review skill through the host's skill mechanism with the pre-fix commit as its fixed point, giving the failure evidence and prior reports; a later review round uses the previous reviewed commit as its fixed point. A test-only fix needs the affected tests and an independent review, not new QA of unchanged runtime code. Carry forward only evidence whose relevant source, dependencies, configuration, and environment are unchanged. Every verified finding or QA failure must be resolved within the remaining repair budget; verification grants no extra cycles.Stop when the budget the failure needs is exhausted, the cause cannot be established from available evidence, required access is unavailable, or the fix needs an unresolved product decision. A protected approval is a blocker, not permission to change access or bypass it.
Return exactly one outcome with its evidence:
rerun: the failed jobs were rerun once; the run ID and new attempt, and its result when this skill waited for it to settle.repaired: the fix was pushed; the pre-fix and new head SHAs, the commits, and the verification and review that passed.budget-exhausted: the failure needs a rerun or repair the counters no longer allow.stopped: the cause is unknown, access or an approval is missing, or a product decision is needed; name the exact blocker.Every outcome carries the failing run and step, the diagnosis and its uncertainty, every attempted rerun and repair, the checked commits, and the counters after this call.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub svyatov/supermatt --plugin supermatt42 skills in this plugin
/ask-supermattAsk which skill or flow fits your situation. A router over the skills in this repo./babysit-prWatch a pull request until it is ready to merge: open it when the branch has none, handle review feedback before CI, recover CI within a bounded budget, keep the branch current, and stop without merging./codebase-designShared vocabulary for designing deep modules. Use when designing interfaces, data contracts, state transitions, shared mutable state, or retryable effects; deepening a module; choosing test seams; or consulting the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along three axes: Standards (does the code follow this repo's documented coding standards?), Spec (does the code match what the originating issue/spec asked for?), and Adversarial (how does the change fail in production?). Runs each axis in an independent host reader and applies the repository external-peer policy. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X"./commitCommit all changes on the current branch, main included./dependency-vettingVerify a package or tool is authentic before installing, adding, upgrading, or recommending it. Use whenever a task would add a dependency to a project, suggest a CLI tool, or pull a package from npm, PyPI, crates.io, Go modules, RubyGems, Homebrew, or any other registry. Also use when a registry page, install command, or installed artifact looks inconsistent with the project that supposedly publishes it.Other plugins' skills for the same job