/maturity-skills:maintenance-runfrom maturity-skills
Orchestrate a full autonomous maintenance run on a repo - parallel finders, root-cause dedupe, adversarial verification, a fixer fleet with disjoint ownership, single-writer integration, and a hard termination rule. Use when the user asks for an autonomous maintenance run, a repo health pass, "find and fix everything", recurring or scheduled repo maintenance, a multi-agent bug-hunting sweep, or asks whether/when a maintenance loop should stop.
Ships in maturity-skills. 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; scripts run unread.
Run the full find-verify-fix-integrate loop as one routine. Findings need repros; fixes need adversarial review before they land; and the loop needs a termination condition, or it manufactures its own work.
Fix the target scope, then launch read-only finders in parallel, one per dimension. Reuse the sibling maturity routines as finder dimensions where they fit: mutation-tester (test-gap hunting, mutation-score baseline), emitter-corpus (interop/parser truth), perf-gate (performance claims), agent-log-scan (harness/autonomy health), plus code-reading finders for logic, merge, and boundary bugs. Every raw finding needs evidence: a repro command, a failing input, a measurement — not a vibe.
Mechanical first: collect the raw findings as JSON (title/file/category required; line, severity, evidence, dimension strongly encouraged; per-finding root_cause is REQUIRED in the finder handoff — the signature rule bites on it, and title-only output demonstrably under-merges: on run-002's replay it reached none of the cross-file merges) and run scripts/findings.py dedupe <findings.json> (Python 3 stdlib, deterministic: same input, byte-identical output; validate gates the finder handoff). It merges only what is provably mechanical — root-cause signatures with ≥ 1/2 token-set overlap after agentlog-style normalization (paths/ids/hex/numbers stripped), or identical normalized titles — takes the transitive closure, picks each cluster's primary by severity then evidence, and reports every merge edge with its reason. Line proximity never merges: on run-002's ground truth, 4 of 7 same-file near-line pairs were distinct claims and no window setting separates them (the closest false pair sat 1 line apart, a true pair 14 apart), so same-file pairs within ±15 lines are flagged on the ambiguous list with their distance instead of being fused. Exit 2 means merges happened, 0 means nothing merged, 1 means the findings file is malformed (fix the finder output, don't hand-edit).
The dedupe arbiter then works the tool's ambiguous list — file-window pairs and near-threshold signature pairs — reading the code where the pair text is not enough. Tool merges are a floor, not a ceiling: the arbiter may SPLIT a tool cluster with a stated reason, and may MERGE pairs the tool did not flag when it states the shared root cause with evidence from the code — run-002's cross-file duplicate-policy cluster is reachable only this way when finders skimp on root_cause. What the arbiter never does is re-cluster from scratch or depart from tool output without stated evidence. Two findings whose fixes land on the same code for the same reason are one cluster. Verifying raw findings wastes verifier passes refuting duplicates after the fact; verifying clusters spends every pass on a distinct claim.
Every cluster gets a verifier whose mandate is to REFUTE it: default not-real, confirmed only when the failure scenario survives an active attempt to break it against the current code. The verifier also reviews the proposed fix, and its fix_adjustment OVERRIDES the finder's proposal — the verified fix is what the fixers implement, not the original suggestion.
cross_boundary_notes handed to the owning fixer — never fixed by trespassing.A single writer merges all fixer commits, runs full verification (build, suite, and any baselines such as the mutation score against the recorded floor), and delivers per the repo's agreed flow. Nobody else writes to the integration branch.
Record: findings confirmed and fixed, clusters refuted (with the refutations), baselines before/after, the findings-curve datapoint (total findings, and how many were regressions of the previous run's own changes), and tuning notes for the routine itself.
The next run's first finder is the regression-review routine over THIS run's diff. The previous change-set is the newest code in the repo and the least reviewed; it gets the adversarial pass before anything else does.
This is a hard rule, not guidance. Track the findings curve and the self-introduced share across runs. When a run's findings are predominantly regressions of the previous run's own changes, the target is DONE: the loop is no longer finding the repo's bugs, it is finding its own. Write a closing report, stop scheduling runs, and say so explicitly. Tuning notes must never be the only reason a next run exists.
Finish with the run report, the updated findings curve, and an explicit continue-or-terminate verdict under the termination rule.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ancplua/maturity-skills --plugin maturity-skills6 skills in this plugin
/agent-log-scanScan Claude Code agent transcripts (session-history JSONL) for antipatterns and turn them into config and routine changes. Use when the user asks to scan agent logs or transcripts, analyze session history, "why do my agents keep failing", "what happened across my sessions", wants retry loops / permission thrash / API dead-ends / usage-limit interruptions found, or wants to learn from agent history to raise autonomy and cut permission prompts./emitter-corpusValidate a parser or importer against a corpus of files as real upstream producers actually write them, and land that corpus as permanent CI fixtures. Use when the user asks whether a parser handles other tools' output, wants format-compatibility testing, interop validation, "does it work with X's files", or a regression corpus or interop fixtures for an input format./mutation-testerRun mutation testing and turn surviving mutants into targeted tests, or keep a recorded mutation-score baseline as a regression gate. Use when the user asks for mutation testing, a mutation score, Stryker, "how good are my tests really", test-suite strength auditing, wants test gaps found beyond line coverage, or wants repeated maintenance runs to prove the suite did not weaken./perf-gateMeasure a project's own performance claims (README, docs) against reality and attribute regressions to code. Use when the user asks to verify a performance claim, benchmark a tool, check "does it really handle X MB / X requests", validate streaming or O(n) claims, or establish a perf baseline./regression-reviewAdversarially review only the previous change-set's diff, hunting bugs that change-set itself introduced. Use when the user asks whether the last run/PR/merge broke anything, "did that fix introduce a bug", "review what the previous run changed", wants a post-merge or post-run regression hunt, wants an autonomous run's own output audited, or as the opening step of a follow-up maintenance run.