/selamy-skills:regression-ratchetfrom selamy-skills
Use when fixing a bug, incident, or regression. In the same change, add the guard that would have caught it — matched to the failure class — so the problem can recur at most once. A fix without its ratchet is half-done.
Ships in selamy-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.
None: SKILL.md is the whole skill.
A bug that can silently recur is a bug you will fix twice. The ratchet makes the fix monotonic: the same change that fixes the problem also adds the guard that would have caught it. Quality only goes up — the class you just closed cannot reopen unnoticed.
A follow-up "add tests" task rots while the bug is now invisible (it's fixed today). The guard ships in the fix's own PR, or the fix isn't done. If you're tempted to defer it, you're choosing to debug this again.
The guard is whatever would have caught this failure — not always a unit test:
| Failure class | Ratchet |
|---|---|
| Logic bug in code | a unit/behavior test reproducing it |
| Wrong artifact / container / file shape | a structure or build test asserting the shape |
| Config / policy / permission gap | a policy or lint check that fails on the bad config |
| Integration / runtime edge | an integration test or a runtime assertion/precondition |
| Genuinely expensive to test | an alert/monitor that fires on recurrence |
The guard must fail on the pre-fix state and go green after — run it red→green. A test that stays green with the bug still present guards nothing; it's theater. If you can't make it fail without the fix, you haven't reproduced the failure yet.
Add the minimal guard for this class — don't bolt on a speculative suite. The discipline is coverage of what broke, not maximalism. Breadth comes from many incidents each leaving one guard behind, over time.
For the bug you just fixed, answer: "If this exact thing happened again, what would catch it automatically — and is that guard in this PR?" If the answer is "nothing" or "a separate task," the ratchet is missing.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.Other plugins' skills for the same job