Add a mistake/anti-pattern to CLAUDE.md (compounding engineering)
Documents mistakes in CLAUDE.md to prevent Claude from repeating them in future sessions.
/plugin marketplace add yudduy/duy-workflow/plugin install duy-workflow@duy-workflow[description of what went wrong]Quickly add a mistake or anti-pattern to CLAUDE.md so Claude doesn't repeat it.
This implements Boris's "compounding engineering" pattern: every time Claude does something wrong, document it so it doesn't happen again.
/add-mistake "Claude used deprecated useState syntax instead of useReducer for complex state"
/add-mistake "Added moment.js when date-fns was already installed"
/add-mistake "Didn't run tests before committing"
When the user provides a mistake description:
If the user says: /add-mistake "Used any type instead of proper typing"
Add to the Anti-Patterns table in CLAUDE.md:
| 2026-01-08 | Used `any` type instead of proper TypeScript typing | Always define explicit types; use `unknown` if truly unknown |
No CLAUDE.md found in this project.
Run /new-project first to create the project structure,
or create CLAUDE.md manually.
This is how teams build institutional knowledge:
Commit CLAUDE.md changes so the whole team benefits!