/ronce-racine:recurring-bug-root-causefrom Ronce Racine
Root-causes recurring bugs by detecting 2+ similar fixes on the same scope. Use before writing the Nth one-line fix to prevent trial-and-error patching.
Ships in Ronce Racine. 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.
If the current repo has a dedicated anti-recurrence skill or process, it wins.
bug-ticket-root-cause if: first observed bug, an isolated case to document (not yet a class)superpowers:systematic-debugging if: a single bug to diagnose, with no repetition pattern3+ fixes on the same scope in ~2 weeks = trial-and-error debugging: you are patching symptoms of one shared cause. A bug class is hunted with tooling, not with a reminder - a documentation rule does not protect the existing code and does not survive inattention.
Under pressure, the reflex is: ship the one-line fix, promise yourself "I'll create the root-cause ticket later"… and never do it. The urgent fix may ship first, but the session does not end until the spike leaves a trace (ticket created, or spike done immediately). "I'll keep it in mind" does not count.
Test procedure: scripts/detect-recurring-fixes.test.ts - deterministic behavioral test of the script (positive + negative fixture). Run npx tsx scripts/detect-recurring-fixes.test.ts from the canonical repo after any change to the script (also picked up by npm test). Not distributed to target repos.
scripts/detect-recurring-fixes.ts [--window 14] [--threshold 3] [repoDir] - detects scopes at the threshold from the git log (conventional commits); exit 1 on recurrence → usable as a CI check
templates/postmortem-recidive.md - short postmortem template with a hypothesis table
scripts/detect-recurring-fixes.ts then git log/git blame on the files involvedpackage.json / Cargo.toml / CI config) - that is where the blocking guardrail livesscripts/detect-recurring-fixes.ts, then list the N fixes on the scope| Excuse | Reality |
|---|---|
| "I ship the fix and create the root-cause ticket later" | "Later" never comes. The session does not end without the spike's trace (ticket created or spike done). |
| "It's just an isolated slip" | A hypothesis to refute, not to assume - usually false by the 2nd occurrence. |
| "I'll add a note/rule to CLAUDE.md, that's enough" | A documentation rule does not sweep the existing code and does not survive inattention. Blocking guardrail or nothing. |
| "The guardrail only applies to new code" | The bombs stay in place. It must sweep the existing code: each error raised = a latent bug or an annotated exception. |
| "I'll keep it in mind" | Memory ≠ trace. Postmortem or a real ticket. |
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)eval.yaml (opens in a new tab)evals/hard.eval.yaml (opens in a new tab)evals/limit.eval.yaml (opens in a new tab)scripts/detect-recurring-fixes.test.ts (opens in a new tab)scripts/detect-recurring-fixes.ts (opens in a new tab)templates/postmortem-recidive.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub charierefiedler/ronce-racine --plugin ronce-racine37 skills in this plugin
/adversarial-feature-challengeUse when a feature is "done" and needs adversarial stress-testing before shipping - "is it really ready", "est-ce vraiment prêt", "find the bugs", "trouve les bugs", "red team", before closing a ticket whose only validation is the golden path passing./api-contract-versioningUse when modifying an API endpoint, schema or contract consumed elsewhere - renaming/removing/restructuring a request or response field, pagination or envelope change, "field X must become", "le champ X doit devenir", introducing a breaking change, versioning an API, or deprecating a field/route. Covers REST, GraphQL and gRPC alike./audit-architectureAudit Architecture, Scalability & Availability. Use when auditing ADRs, interface contracts, coupling, scalability, resilience patterns, SLA/RPO/RTO, high availability, or incident management. Triggers on "audit architecture", "audit archi", "audit scalabilité", "audit scalability", "audit disponibilité", "audit availability", "audit résilience", "audit resilience", "audit incidents"./audit-ci-cdAudit CI/CD & Release Management. Use when auditing pipelines, deployment strategies, DORA metrics, IaC, artifact management, or supply chain security. Triggers on "audit ci", "audit pipeline", "audit déploiement", "audit deployment", "audit release"./audit-complianceCompliance, Data Governance & FinOps audit. Use when auditing GDPR compliance, data governance, data retention, consent management, FinOps, or regulatory requirements. Triggers on "audit conformité", "audit compliance", "compliance audit", "audit RGPD", "audit GDPR", "audit données", "audit data governance", "audit finops", "audit gouvernance"./audit-industrialisationFull software-industrialisation audit. Orchestrates the 8 domain audits and produces a consolidated report. Use when running a full audit of a project's software engineering maturity. Triggers on "audit industrialisation", "industrialisation audit", "audit complet", "full audit", "audit projet", "project audit", "audit maturité", "maturity audit", "audit global", "global audit".Other plugins' skills for the same job