Remember Skill
Transform session learnings into persistent, actionable documentation. Updates CLAUDE.md, context files, and related docs to capture rules and patterns.
When to Use
Use when: Workflow improvement discovered • Missing constraint identified • Compliance failure resolved • User requests update (#remember) • Completed work reveals patterns
Skip when: Trivial update (fix directly) • No learnings • Temporary/experimental change
Execution Protocol
1. Understand Learning
- •Problem/gap? Solution/rule? Why important? Category?
- •Read:
agents/learnings.mdfor recent learnings to consolidate - •Read:
agents/decisions/*.md(relevant domain doc, if exists)
2. File Selection
Behavioral rules → agent-core/fragments/*.md: Workflow patterns • Anti-patterns • Directive conflicts • Agent behavior
Technical details → agents/decisions/*.md: Architecture • Implementation patterns • Technology choices (consult agents/decisions/README.md for domain → file routing)
Implementation patterns → agents/implementation-notes.md: Mock patterns • Python quirks • API details
agents/session.md: Active tasks/decisions • Handoff info • Temporary state • Blockers
Skill references: .claude/skills/*/references/learnings.md • Domain-specific patterns (progressive disclosure)
Other: .claude/agents/*.md • Plan files (historical only)
Never: README.md • Test files • Temp files
For detailed routing guidance, see references/consolidation-patterns.md
3. Draft Update
Principles:
- •Precision over brevity (unambiguous, clear boundaries)
- •Examples over abstractions (concrete, actual paths)
- •Constraints over guidelines ("Do not" > "avoid", "Always" > "consider", "Must" > "should")
- •Atomic changes (one concept, self-contained)
- •Measured data over estimates
Format:
### [Rule Name] **[Imperative/declarative statement]** [Supporting explanation if needed] **Example:** [Concrete demonstration]
4. Apply + Verify
- •Edit for modifications • Write for new files only (Read first if exists)
- •Read updated section → Check formatting → Verify placement
- •After consolidation: Remove consolidated learnings from
agents/learnings.md, but keep the 3-5 most recent learnings (at bottom of file) for continuity
Step 4a: Update discovery mechanisms
After consolidating a learning:
- •Append to memory index: Add one-line entry (summary + file reference) to appropriate section in
agents/memory-index.md - •If new fragment created: Add
@-reference to CLAUDE.md OR create.claude/rules/entry if path-scoped. Heuristic: If the learning applies regardless of which files are being edited →@-ref in CLAUDE.md. If it only applies when working with a specific file type or directory →.claude/rules/entry with path frontmatter. - •If existing fragment updated: Ensure memory index entry reflects the updated content (add new entry or update existing one)
- •If decision file updated: Verify corresponding
.claude/rules/entry exists for path trigger
5. Document
Commit: Update [file]: [what]\n\n- [change 1]\n- [change 2]\n- [rationale]
Handoff (if session.md): Note update, explain significance, reference commit
Rule Management
For guidance on tiering, budgeting, and maintaining rules in CLAUDE.md, see references/rule-management.md.
Tool Constraints
- •Read current docs • Edit existing (preferred) • Write new only • Bash git ops
- •Minimal scope/diffs • Preserve structure • Verify actionable+concrete • Imperative tone
Common Patterns
For detailed usage patterns (error handling, workflow improvement, design decisions, pending learnings), see examples/remember-patterns.md.
Integration
Invocations: During work (#remember [rule]) • After completion (capture learnings) • After failure (prevent recurrence)
Related: /vet (may ID patterns) • /design (decisions→rules) • /commit (often follows remember)
Additional Resources
Reference Files
For detailed guidance:
- •
references/rule-management.md- Tiering, budgeting, and maintenance strategies for CLAUDE.md rules - •
references/consolidation-patterns.md- Routing learnings to appropriate documentation, progressive disclosure, anti-patterns
Example Files
Working patterns for common scenarios:
- •
examples/remember-patterns.md- Error handling, workflow improvements, design decisions, pending learnings consolidation
Target Files
Primary targets: Project's CLAUDE.md • agents/session.md • Domain-specific files per routing config
Historical: agents/role-remember.md (git: 56929e2^)