Tooluck logoTooluck
SKILL.md

correct

Agent skill frommichael-denyer/pstack-claude

Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last. Prove each check fails on a real past mistake. Repeat this each time the operator corrects you. Use for /correct.

How to install correct

install correct
# install the pstack-claude pack with the skills CLI
npx skills add michael-denyer/pstack-claude

# or add only this skill to Claude Code: copy the folder

plugins/pstack/skills/correct/

# into

~/.claude/skills/correct/ (all projects)

.claude/skills/correct/ (one project)

plugins/pstack/skills/correct/SKILL.md

MITFull file
1# Correct
2
3The operator keeps correcting agents in this repo for the same mistakes. Change the repo so the next agent can't make them.
4
5Assume 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.
6
7## Find the mistake classes
8
9First, read recent commits, reverts, review comments, agent instruction files, and comments that explain workarounds. Group the mistakes into classes. A class counts once it has happened twice.
10
11## Fix each class at the highest level that works
12
131. **Eliminate it with architecture.** Give each piece of state one owner and each task one supported way. Hide internals so the wrong import fails. Replace hand-synced lists with one source of truth. Delete old ways and dead code an agent would copy.
142. **Enforce it with types so the bad state can't be written.** If bad code still compiles, add a lint or CI check whose error names the file, type, or function to use instead. If the pattern is already common, fail only when a change adds more.
153. **Test the behavior.** Fix or delete any test that still passes when the behavior it checks breaks, or that fails when only the internals change.
164. **Write docs or agent rules last, only for judgment calls.** Nothing fails when an agent skips them.
17
18## Fix and prove
19…

Excerpt shown under the repository's MIT license.

More skills in pstack-claude

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates