/pauls-skills:correctfrom pauls-skills
Find the mistakes agents keep repeating in this repo and make each one impossible, preferring architecture, then types, then a lint or hook whose error names the fix, then a test, and docs last. Proves each new check fails on a real past mistake. Use for /correct, "stop making this mistake", "agents keep doing X", or right after the user corrects the same thing a second time.
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user keeps correcting agents in this repo for the same mistakes. Change the repo so the next agent can't make them.
Assume every contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Design the repo so a change that looks right from one file is right for the whole repo.
Gather evidence before deciding anything. Use the Explore agent for the wide reads so the raw dumps stay out of your context.
git log for reverts, "fix", "actually", and follow-up commits that undo a recent change.gh pr list --state merged --limit 30, then gh pr view <n> --comments on the ones with review churn.CLAUDE.md files at every level, and comments in code that explain a workaround ("don't use X here", "must also update Y").~/.claude/projects/<project>/memory/). Feedback memories are corrections the user already gave once.Group the mistakes into classes. A class counts once it has happened twice. Write each class as "agents do X when they should do Y", with the evidence.
Work down this ladder and stop at the first rung that makes the mistake impossible or loud:
engineering-principles skill, type discipline section).PreToolUse hook in .claude/settings.json that exits non-zero with a message naming the right action stops it before it happens. Use the update-config skill to wire it.CLAUDE.md rules last, only for judgment calls. Nothing fails when an agent skips them.Fix the most frequent classes now, one commit each. Prove each new check fails on a real past mistake: check out or re-apply the bad change, run the check, paste the failure, then restore. Run the same command locally that CI runs.
Exceptions go on the offending line with a reason and a date, and the user approves them.
Keep a table in the repo's CLAUDE.md pairing each rule with what enforces it:
| Rule | Enforced by |
|---|---|
Widgets register in WIDGET_REGISTRY only | type: WidgetType is derived from the registry keys |
Never edit src/generated/ | hook: PreToolUse blocks Write/Edit under that path |
When the user corrects you later, fix the mistake and add the rule. If the rule was already there and nothing enforces it, that's a repeat, so move it up the ladder in the same change. Drop a rule once its mistake can't happen.
Each class with its evidence, the rung you picked, the proof that the check fails on the old mistake, and why a higher rung didn't work.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./