analyze
CommandAnalyze user corrections and log them into the error notebook
Automatically detect and save pitfall experiences during work sessions.
Automatically detect and save pitfall experiences during work sessions.
1. **Pitfall resolved** -- Tried the wrong approach, eventually found the fix 2. **Non-obvious workaround** -- Browser quirks, library limitations, platform-specific behavior 3. **Path/environment traps** -- Windows path issues, `~` resolution errors, cross-platform differences 4. **Deployment gotchas** -- Hosting platform quirks, cache issues, DNS delays 5. **3+ attempts to solve** -- If it took 3+ tries, it's worth recording
Save to `~/.claude/skills/learned/{pattern-name}.md`:
# {Descriptive Title}
**Date:** {today}
**Project:** {which project}
## Problem
{What happened, what context}
## Solution
{How it was fixed}
## Next Time
{What situation should remind you of this}Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Analyze user corrections and log them into the error notebook
Pause the SessionEnd auto-commit hook when refactoring core engine files.
Help decide when to use `/compact` based on the current conversation state.
Review the error notebook — flip through past corrections before working
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.