Skip to content
Development
Command

/learn

Automatically detect and save pitfall experiences during work sessions.

From plugin
claude-memory-engine
13418 skills18 commands9 hooks

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
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin
Stats
134
Stars
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
4mo ago
Last commit
6mo ago
Created

Repo: HelloRuru/claude-memory-engine

Other commands on claude-memory-engine.