remediation-loop
Skill0 starsChanged 5 months agoMITView on GitHub
Use when independent verification returns any fail — route each fail to one of three exits (fix root cause / fix the table / accept with known defect), leave a trace, then re-verify. Bounded to one cycle before escalating. Part of meta-workflow (Step ⑤); uses superpowers receiving-code-review for posture.
In this repository6 other files it gives its agents.
- clarify-intentSkill
- execute-with-specSkill
- freeze-acceptanceSkill
- independent-verifySkill
- meta-workflowSkill
- task-classificationSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Fix the table: Only if verification reveals the table itself was wrong → align toward truth, with explicit declaration + human sign-off + …
- Distinctive: line 27
Default to one fix → re-check cycle.
- Very specific: line 33
If the root cause is a process / recurring problem, don't just fix this instance — pick a prevention layer (L1 code enforcement … L4 a …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Step ⑤ — Remediate
Why this exists: a failed check has exactly three exits, and shipping it quietly is not one of them. The dangerous move is the silent fourth path: tweak the symptom until the verdict looks better, or quietly call it done. "I can't fix it, so I'll lower the bar" is hiding, not aligning.
The three exits (every fail goes to exactly one, with a trace)
- Fix the output (default). Go to root cause, don't suppress the symptom to make the verdict
look better. Then re-verify. (For metric claims, the fix is re-validated the same strict way it
was caught — see
references/hard-gates.md.) - Fix the table. Only if verification reveals the table itself was wrong → align toward
truth, with explicit declaration + human sign-off + the time-anchor test from
freeze-acceptance. Lowering the bar because it was hard is not this — that's the forbidden fourth path wearing a disguise. - Accept with a known defect. The human explicitly signs off on shipping with the fail → record it: which item failed, why, the recovery trigger, the owner. This is ship-with-defect, not done — never relabel it "complete" afterward.
Bounded loop
Default to one fix → re-check cycle. If it still fails on the second pass, do not auto-loop — escalate to the human (keep investing / fix the table / accept the defect). This keeps re-review cost from spiraling.
Feed the lesson back
If the root cause is a process / recurring problem, don't just fix this instance — pick a
prevention layer (L1 code enforcement … L4 a written rule) and push it upstream. The closer to
code, the more reliable. See references/prevention-layers.md.
Relationship to superpowers
superpowers receiving-code-review gives the posture: take feedback with technical rigor, not performative agreement and not blind implementation. This skill adds the three-exits discipline and the prevention-layer feedback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

