Loading...
Loading...
Session retrospective and codification. Run at the end of any significant session to extract learnings, update documentation, and create artifacts that make future sessions smoother. Invoke when: - Finishing a multi-step implementation - After debugging a hard problem - End of any session with 3+ tool calls - "what did we learn?" / "wrap up" / "done" Subsumes /codify-learning (codification is one output, not the only one).
npx skill4agent add phrazzld/claude-config done# What changed
git diff --stat HEAD~N (or unstaged if no commits)
git log --oneline -10
# What was attempted (from conversation context)
- Commands that failed and why
- Bugs encountered and root causes
- Patterns discovered
- User corrections received
# Current state
- Task list status
- Any pending/blocked items| Bucket | Question | Example |
|---|---|---|
| Went well | What should we keep doing? | Module separation, lazy imports |
| Friction | What slowed us down? | Guessed at API, wrong return types |
| Bugs introduced | What broke and why? | Dict access on dataclass |
| Missing artifacts | What docs/tools would have prevented friction? | Module API reference |
| Architecture insights | What design decisions proved right/wrong? | SQLite for persistence |
Hook → Can we prevent this automatically? (pre-edit)
Lint rule → Can a lint rule catch this at edit time? → invoke /guardrail
Agent → Can a reviewer catch this?
Skill → Is this a reusable workflow?
Memory → Should auto-memory capture this?
CLAUDE.md → Is this a convention/philosophy?
Docs → Does a reference doc need updating?{repo}/.groom/retro.md/retro append/groom/tune-repo.glance.md| Target | Location | Format |
|---|---|---|
| Hook | | Python/bash script |
| Agent | | YAML agent config |
| Skill update | | Markdown with frontmatter |
| Auto-memory | | Markdown notes |
| CLAUDE.md | | Concise pattern |
| Project docs | Repo | Varies |
## Session Retrospective
### Went Well
- [item]: [why it worked]
### Friction Points
- [item]: [what happened] → [codified to: file]
### Bugs Introduced & Fixed
- [bug]: [root cause] → [codified to: file]
### Artifacts Created/Updated
- [file]: [what changed]
### Not Codified (with justification)
- [item]: [specific reason]
### Open Items
- [anything left unfinished or flagged for future]| Consumes | Produces |
|---|---|
| Session context (conversation) | Updated CLAUDE.md staging |
| New/updated skill files |
| Task list state | New/updated hooks |
| Error logs from session | Auto-memory entries |
| New/updated agents | |
|
/commit/distill~/.claude/skills/visualize/prompts/done-retro.md~/.claude/skills/visualize/references/css-patterns.md~/.agent/diagrams/retro-{date}.htmlopen ~/.agent/diagrams/retro-{date}.html--no-visual