/automem:memory-managementfrom automem
Persistent memory management via AutoMem for cross-session context recall. Stores project decisions, user preferences, bug root causes, and code style patterns. Recalls relevant context at session start and during debugging.
Ships in automem. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use AutoMem to maintain persistent context across conversations and coding sessions.
Tool examples below use short names (recall_memory, store_memory); call
them on whichever AutoMem MCP server is wired in (plugin installs namespace
them as mcp__plugin_automem_memory__*, user-level servers as mcp__memory__*).
Other hosts, including Grok Bot, assign their own connector/tool names; discover
the available AutoMem tools and use the names exposed by that host.
This skill teaches the current AutoMem playbook: Recall early, store durable outcomes, avoid session-summary noise.
tags: ["preference"], limit: 20, sort: "updated_desc"// Preferences first
recall_memory({
tags: ["preference"],
limit: 20,
sort: "updated_desc"
})
// Task context recall
recall_memory({
query: "authentication timeout PostgreSQL auth.ts retry logic",
tags: ["myapp"], // drop if ambiguous
time_query: "last 90 days",
limit: 30
})
// Debug similar errors (no tag gate — a hard gate hides cross-corpus fixes)
recall_memory({
query: "TimeoutError authentication request timed out",
limit: 20
})
Bug fixes: Insight, importance 0.75, confidence 0.85. Articulated patterns: Pattern, importance 0.8. User corrections: Preference, importance 0.9, confidence 0.95.
| Type | Importance | When to Store |
|---|---|---|
| Decision | 0.9 | Architecture, library choices, pattern decisions |
| Insight | 0.75 | Root cause discoveries, key learnings, bug fixes |
| Pattern | 0.8 | Reusable approaches, best practices |
| Preference | 0.9 for corrections | User config choices, style preferences |
| Context | 0.5-0.7 | Feature summaries, refactoring notes |
Content: "Brief title. Context and details. Impact/outcome."
Tags: [category, project-slug, language]
Type: Decision | Pattern | Insight | Preference | Style | Habit | Context
Use bare tags only. No namespace prefixes (project/*, lang/*), no platform tags, and no date-stamped tags. Keep source attribution in metadata and dates in timestamp / t_valid / t_invalid.
Decision:
store_memory({
content: "Chose PostgreSQL over MongoDB. Need ACID guarantees for transactions. Impact: Ensures data consistency.",
type: "Decision",
tags: ["decision", "myapp", "database"],
importance: 0.9,
confidence: 0.9,
metadata: {
alternatives_considered: ["MongoDB", "DynamoDB"],
deciding_factors: ["ACID", "relationships", "team_expertise"]
}
})
Bug Fix:
store_memory({
content: "Auth timeout on slow connections. Root: Missing retry logic. Solution: Added exponential backoff with 3 retries.",
type: "Insight",
tags: ["bugfix", "solution", "myapp", "auth"],
importance: 0.75,
confidence: 0.85,
metadata: {
error_signature: "TimeoutError: Authentication request timed out",
solution_pattern: "exponential-backoff-retry",
files_modified: ["src/auth/client.ts"]
}
})
User Correction:
store_memory({
content: "User corrected the previous nesting preference: use early returns over nested conditionals in validation code.",
type: "Preference",
tags: ["preference", "correction", "code-style"],
importance: 0.9,
confidence: 0.95
})
Recall the prior preference and invalidate it with INVALIDATED_BY when it exists.
Link related memories to build a knowledge graph:
associate_memories({
memory1_id: "related-memory-id",
memory2_id: "new-memory-id",
type: "INVALIDATED_BY", // or PREFERS_OVER, LEADS_TO, EXEMPLIFIES
strength: 0.9
})
Prefer update_memory over near-duplicate stores when a fact changed in place.
When recalling memories, weave context seamlessly into responses. Avoid robotic phrases like "searching my memory database" and present memories as normal working context.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub verygoodplugins/mcp-automem --plugin automemOther plugins' skills for the same job