memorylisted
Install: claude install-skill x-mesh/xm
<Purpose>
x-memory persists project decisions, patterns, failures, and learnings across sessions. On session start it auto-injects relevant memories into agent context. Goes beyond x-build's per-project decisions by supporting cross-project search, tagging, TTL, and human-readable markdown storage.
</Purpose>
<Use_When>
- User wants to save a decision, pattern, failure, or learning for future sessions
- User says "remember this", "save this", "remember this for later"
- User asks to recall or search past decisions ("how did we do this before?", "recall auth")
- Session starts and relevant context should be injected automatically
- User wants to export/import memory across machines or projects
- User asks for memory statistics or a list of saved memories
</Use_When>
<Do_Not_Use_When>
- Storing ephemeral session notes that don't need to survive context resets (use x-build decisions instead)
- Storing large binary artifacts or generated code files
- Replacing version-controlled documentation (ADR, CHANGELOG)
</Do_Not_Use_When>
# x-memory — Cross-Session Decision and Pattern Memory
## Model Routing
| Subcommand | Model | Reason |
|------------|-------|--------|
| `list`, `search`, `get`, `stats` | **haiku** (Agent tool) | Read-only query and display |
| `save`, `update`, `delete` | **haiku** (Agent tool) | Simple write operations |
| `inject` (context injection) | **sonnet** | Requires reasoning about relevance |
For haiku-eligible commands, delegate via: `Agent tool: { mod