/learn
Automatically detect and save pitfall experiences during work sessions.
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-codeShips with claude-memory-engine. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/learn
Context preview
What this command does when you run it.
Automatically detect and save pitfall experiences during work sessions.
Command definition
learn.md/learn -- Auto-Learn from Mistakes
Automatically detect and save pitfall experiences during work sessions.
When to Trigger (Claude decides on its own)
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
What NOT to Learn
- Settings already documented in CLAUDE.md or project docs
- Common CSS/HTML patterns (easily searchable)
- One-off fixes that won't happen again
Save Format
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}Behavior
- After saving, briefly tell the user: "Learned: {title}"
- Don't write a long explanation of why it was saved
- Learn quietly, don't interrupt the workflow
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Repo: HelloRuru/claude-memory-engine
Other commands on claude-memory-engine.
- /analyze
Analyze user corrections and log them into the error notebook
Open command - /backup
Push local memory files to your GitHub backup repository.
Open command - /bb-pause
Pause the SessionEnd auto-commit hook when refactoring core engine files.
Open command - /check
Run a quick scan of the memory system's health. For daily use.
Open command - /compact-guide
Help decide when to use `/compact` based on the current conversation state.
Open command - /correct
Review the error notebook — flip through past corrections before working
Open command

