When the user corrects you or points out an error:
- •Acknowledge the mistake concisely. Do not over-apologize.
- •Identify the root cause -- Why did the mistake happen? Wrong assumption? Missed context? Over-engineering?
- •Fix the issue immediately.
- •Log the lesson -- Append a short entry to
.claude/lessons.mdin this format:
code
### YYYY-MM-DD: [Short title] - **What went wrong:** [One sentence] - **Why:** [Root cause] - **Rule:** [What to do differently next time]
Always read .claude/lessons.md at the start of a session to avoid repeating past mistakes.