A Claude Code skill for structured retrospective analysis that transforms incidents into systematic improvements.
Watch the skill run a live post-mortem on social media integration issues - tracing root causes, identifying fixes, and implementing them directly.
When things go wrong, the typical response is:
- Quick fixes that don't address root causes
- "Be more careful next time" (which doesn't work)
- Lessons that get forgotten
- Same mistakes repeated
This skill provides a structured framework for turning problems into durable improvements.
The skill guides you through a 7-phase retrospective process:
| Phase | Focus | Output |
|---|---|---|
| 1. Definition | What happened? | Incident summary |
| 2. Timeline | Sequence of events | Chronological table |
| 3. Root Cause | 5 Whys analysis | Fundamental issue |
| 4. Factors | What contributed? | Factor matrix |
| 5. Classification | What type of fix? | Fix type decision |
| 6. Implementation | Encode the fix | Actual changes made |
| 7. Verification | How to test? | Success criteria |
The skill enforces a critical rule: don't just recommend fixes - implement them.
This means:
- Creating or updating skills with new guards
- Adding documentation to prevent knowledge gaps
- Building automation for forgotten manual steps
- Encoding checklists for multi-step verification
npx skills add aplaceforallmystuff/claude-lessons-learned# Clone the repository
git clone https://github.com/aplaceforallmystuff/claude-lessons-learned.git
# Copy to your Claude Code skills directory
cp -r claude-lessons-learned/skills/lessons-learned ~/.claude/skills/git clone https://github.com/aplaceforallmystuff/claude-lessons-learned.git ~/.claude/skills/lessons-learned- Create the directory:
mkdir -p ~/.claude/skills/lessons-learned - Download SKILL.md to that directory
The skill activates when you say:
- "lessons learned"
- "what went wrong"
- "post-mortem"
- "retrospective"
- "how do we prevent this"
- "that shouldn't have happened"
# Lessons Learned: Premature GitHub Push
**Date:** 2025-01-04
**Severity:** Medium
**Status:** Resolved
## Incident Summary
Pushed code to public GitHub repo before sanitizing personal references.
## Timeline
| Time | Action | Actor | Outcome |
|------|--------|-------|---------|
| 14:32 | Created skill file | Claude | Success |
| 14:35 | Committed changes | Claude | Success |
| 14:36 | Pushed to GitHub | Claude | Personal path exposed |
| 14:38 | User noticed issue | User | Alerted |
| 14:42 | Reverted and re-pushed | Claude | Resolved |
## Root Cause
Missing sanitization step in publishing workflow.
## Fixes Implemented
| Fix | Type | Location | Status |
|-----|------|----------|--------|
| Add sanitization guard | Skill | ~/.claude/skills/publish-guard/ | Created |
| Update prep-repo to require sanitization | Doc | CLAUDE.md | Updated |
## Lessons
1. Always run sanitization check before any public push
2. Encode mandatory steps as guards, not reminders| Pattern | Symptom | Typical Fix |
|---|---|---|
| Premature Action | Action before approval | Add explicit approval gate |
| Sequence Error | Wrong step order | Encode dependency chain |
| Missing Validation | Bad data passed through | Add validation checkpoint |
| Context Carryover | Prior session assumptions | Verify context at start |
| Scope Creep | Did more than requested | Ask before expanding |
| Type | When to Use | Example |
|---|---|---|
| Skill | Recurring workflow needs structure | Create new SKILL.md |
| Guard | Action requires checkpoint | Add approval gate |
| Documentation | Knowledge gap | Update CLAUDE.md |
| Automation | Manual step forgotten | Create hook/script |
| Checklist | Multiple steps need verification | Add to skill |
| Don't | Why | Instead |
|---|---|---|
| Assign blame | Creates defensiveness | Focus on process |
| Single-cause thinking | Oversimplifies | Use 5 Whys |
| Just recommend | Lessons forgotten | Implement during retrospective |
| Vague fixes | "Be careful" doesn't work | Encode specific changes |
| Skip verification | No way to know if fixed | Define success criteria |
Part of the aplaceforallmystuff skills collection:
- think-first — Mental model application before significant decisions
- rfu-audit — 11-gate utility validation before investing effort
- creation-guard — Prevent duplicate artifacts before creating new ones
MIT License - see LICENSE
The goal: Every mistake makes the system stronger, not just the memory longer.

