aplaceforallmystuff/claude-lessons-learned/lessons-learned
Claude Code and agent skill by aplaceforallmystuff/claude-lessons-learned
- community
Checking that the SKILL.md file is still in the repository.
Conduct structured retrospective analysis and encode fixes into the system. Use after incidents, mistakes, rollbacks, post-mortems, or when asking "what went wrong."
Install
npx vskill@latest install aplaceforallmystuff/claude-lessons-learned/lessons-learnedSKILL.md
Lessons Learned
Structured retrospective analysis for incidents, mistakes, and near-misses. Transforms problems into systematic improvements.
Objective
Analyze incidents using a structured framework, identify root causes, and encode preventive measures directly into skills, guards, or documentation. The goal is systematic improvement, not blame.
Process
Phase 1: Incident Definition
Capture the facts first, analysis later.
Phase 2: Timeline Reconstruction
Build a chronological sequence of events:
Key questions:
- What was the trigger?
- Where did the sequence diverge from expected?
- What was the point of no return?
Phase 3: Root Cause Analysis
Use the 5 Whys technique:
Phase 4: Contributing Factors
Identify all factors that contributed (not just the root cause):
| Category | Factor | Contribution | |
|---|---|---|---|
| Process | Missing checkpoint, unclear workflow | [How it contributed] | |
| Communication | Ambiguous instructions, assumed consent | [How it contributed] | |
| Technical | Missing guard, no validation | [How it contributed] | |
| Context | Session continuation, prior assumptions | [How it contributed] | |
| Human | Fatigue, time pressure, overconfidence | [How it contributed] |
Phase 5: Fix Classification
Classify the fix by type and encode it appropriately:
| Fix Type | When to Use | How to Encode | |
|---|---|---|---|
| Skill | Recurring workflow needs structure | Create SKILL.md in ~/.claude/skills/ | |
| Guard | Action requires mandatory checkpoint | Add to skill with explicit approval gate | |
| Documentation | Knowledge gap caused the issue | Update CLAUDE.md or relevant docs | |
| Automation | Manual step was forgotten | Create hook or script | |
| Checklist | Multiple steps need verification | Add to existing skill or create new one |
Phase 6: Fix Implementation
Don't just recommend fixes -- implement them.
Phase 7: Verification
How will we know the fix works?
Output Template
Common Incident Patterns
Pattern: Premature Action
Symptom: Action taken before user approval Root cause: Implied consent interpreted as explicit consent Fix: Add explicit approval gate to relevant skill
Pattern: Sequence Error
Symptom: Steps executed in wrong order Root cause: Missing dependency chain in workflow Fix: Encode sequence in skill with numbered steps
Pattern: Missing Validation
Symptom: Bad data or invalid state passed through Root cause: No validation checkpoint Fix: Add validation step to skill or create pre-flight check
Pattern: Context Carryover
Symptom: Assumptions from prior session caused issue Root cause: Session state incorrectly assumed to persist Fix: Add explicit context verification at task start
Pattern: Scope Creep
Symptom: Did more than requested, caused unintended effects Root cause: Interpreted task scope too broadly Fix: Ask clarifying questions before expanding scope
Anti-Patterns
Don't do these:
| Anti-Pattern | Problem | Instead | |
|---|---|---|---|
| Blame assignment | Creates defensiveness, misses systemic issues | Focus on process, not people | |
| Single-cause thinking | Oversimplifies, misses contributing factors | Use 5 Whys, identify multiple factors | |
| Recommendation without action | Lessons forgotten, issue recurs | Implement fixes during retrospective | |
| Vague fixes | "Be more careful" doesn't prevent recurrence | Encode specific, verifiable changes | |
| Skip verification | No way to know if fix worked | Define success criteria and review date |
Integration (Optional)
After completing a lessons learned session:
- Log key findings to your daily note or project log
- If a skill was created/modified, the skill itself is the durable artifact
- Consider adding high-severity incidents to a dedicated incident log
Success Criteria
The retrospective is complete when:
- [ ] Incident clearly defined with timeline
- [ ] Root cause identified (not just symptoms)
- [ ] Contributing factors documented
- [ ] At least one fix implemented (not just recommended)
- [ ] Fix is encoded in appropriate location (skill, doc, hook)
- [ ] Verification criteria defined
- [ ] Key lessons summarized
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lessons-learned/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aplaceforallmystuff/claude-lessons-learned/lessons-learned)