Multi-session memory - persist learned patterns and preferences
Manages persistent memory across sessions to learn patterns, preferences, and project rules.
/plugin marketplace add cyberbloke9/pmp-gywd/plugin install pmp-gywd@pmp-gywd[show|add|clear] [optional: pattern or preference]gywd/Memory types:
This allows Claude to remember what worked well and avoid repeating mistakes. </objective>
<context> Arguments: $ARGUMENTSSubcommands:
show - Display all stored memories (default)add <type> <content> - Add a new memoryclear [type] - Clear memories (all or by type)learn - Auto-extract patterns from recent workMemory storage: .planning/MEMORY.md
</context>
.planning/MEMORY.md if exists## Project Memory
### Preferences
- Use TypeScript with strict mode
- Prefer functional components over class components
- Always include JSDoc comments for public APIs
### Patterns
- Error handling: Use Result<T, E> pattern from utils/result.ts
- API calls: Always wrap in try-catch with retry logic
- Tests: One test file per module, co-located
### Rules
- Never modify files in legacy/ directory
- All new files must have corresponding .test.ts
- Commits must pass CI before merge
---
*3 preferences, 3 patterns, 3 rules stored*
Examples:
/gywd:memory add preference Use pnpm instead of npm/gywd:memory add pattern Always create index.ts barrel files/gywd:memory add rule Never use console.log in production code## Learned Patterns
Based on recent work, I noticed:
1. **Pattern detected**: You consistently use early returns
Add as pattern? [Y/n]
2. **Preference detected**: All components use React.FC type
Add as preference? [Y/n]
3. **Rule detected**: Tests always include edge cases
Add as rule? [Y/n]
<memory_format> MEMORY.md structure:
# Project Memory
Last updated: {date}
## Preferences
Style and tooling choices that should be consistent.
- {preference 1}
- {preference 2}
## Patterns
Repeated solutions and approaches.
- {pattern 1}
- {pattern 2}
## Rules
Hard constraints that must be followed.
- {rule 1}
- {rule 2}
---
*Auto-loaded at session start via STATE.md*
</memory_format>
<integration> **How memories are used:**At session start (/gywd:resume-work):
During planning (/gywd:plan-phase):
During execution:
<success_criteria>