Lessons Learned Tracker
Captures, catalogs, and applies lessons learned from user corrections, failed approaches, and process improvements — creating an institutional memory that prevents the same mistakes from recurring.
Guiding Principle
"A mistake made once is a lesson. A mistake made twice is a choice. A lesson tracked is a mistake prevented."
Procedure
Step 1 — Capture the Lesson
- Detect correction events: user corrects output, approach fails, assumption proves wrong.
- Record the lesson with structured metadata: date, context, trigger, category.
- Capture the incorrect behavior or output (what went wrong).
- Capture the correct behavior or output (what should have happened).
- Identify the root cause: knowledge gap, incorrect assumption, process failure, or context loss.
Step 2 — Classify and Catalog
- Assign a category: formatting, technical accuracy, process adherence, tool usage, domain knowledge.
- Assign severity: CRITICAL (repeated errors harm trust), WARNING (occasional, fixable), NOTE (minor preference).
- Extract a one-line rule from the lesson (e.g., "NEVER use green in Sofka brand colors").
- Link to related lessons (pattern detection: are multiple lessons pointing to the same root cause?).
- Store in the lessons-learned registry with a unique identifier.
Step 3 — Apply Preventive Measures
- Update relevant skill files, templates, or checklists to incorporate the lesson.
- Add automated checks where possible (linting rules, validation scripts).
- Create pre-flight checklists for common task types that include lessons as checkpoints.
- Flag lessons that require changes to the orchestration network or CLAUDE.md.
- Notify the user of applied changes so they can verify the correction is adequate.
Step 4 — Verify Non-Regression
- Before each major deliverable, review applicable lessons from the registry.
- Run a lessons-learned checklist against the output before delivery.
- Track regression rate: how often a previously-captured lesson's mistake recurs.
- If regression occurs, escalate the lesson to a higher severity and add stronger guardrails.
- Conduct monthly lessons-learned reviews to archive resolved items and identify trends.
Quality Criteria
- Every user correction results in a cataloged lesson within the same session.
- Lessons include both the wrong and right behavior with clear distinction.
- Preventive measures are applied to prevent recurrence, not just documented.
- Regression rate is tracked and trends downward over time.
Anti-Patterns
- Capturing lessons but never reviewing them before new tasks.
- Vague lessons that do not specify the correct behavior (e.g., "do better").
- Applying lessons too narrowly (fixing only the specific instance, not the pattern).
- Accumulating hundreds of lessons without pruning, categorizing, or prioritizing.