| name | learn |
| description | Record a learning to the team's persistent memory |
/learn — Record Team Learning
Record insights to the team's persistent memory at ~/.claude/team/memory/.
Usage
/learn <what to remember>
Process
- Read
~/.claude/team/memory/MEMORY.md to understand what's already recorded.
- Categorize the learning:
- Pattern →
patterns.md (codebase conventions, reusable approaches)
- Debug insight →
debugging.md (bug causes, solutions, gotchas)
- Decision →
decisions.md (architectural choices, rationale)
- Review finding →
review-findings.md (common mistakes, things to check)
- Read the target file. Append the new entry. Keep entries concise (1-3 lines each).
- If this is a new topic not covered by existing files, create a new file and add it to the MEMORY.md index.
- Keep each file under 100 lines. If approaching the limit, prune the least useful entries.
- Confirm what was recorded and where.
Rules
- Don't duplicate existing entries.
- Don't record session-specific context (current branch, temp paths, etc.).
- Entries should be useful to any future session, not just the current one.