From automem
Manages persistent memory across Claude Code sessions via AutoMem. Recall project context, architectural decisions, bug fixes, user preferences, and patterns at session start or debugging.
How this skill is triggered — by the user, by Claude, or both
Slash command
/automem:memory-managementThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use AutoMem to maintain persistent context across Claude Code sessions. This skill teaches the **3-Phase Memory Pattern**: Recall → Store → Summarize.
Use AutoMem to maintain persistent context across Claude Code sessions. This skill teaches the 3-Phase Memory Pattern: Recall → Store → Summarize.
// Basic project recall
mcp__memory__recall_memory({
query: "project architecture decisions",
tags: ["project-name"],
limit: 5
})
// Debug similar errors
mcp__memory__recall_memory({
query: "TypeError authentication timeout",
tags: ["bug-fix"],
time_query: "last 30 days",
limit: 5
})
// Multi-hop reasoning (find related context)
mcp__memory__recall_memory({
query: "Who worked on the auth system?",
expand_entities: true,
limit: 10
})
// Context-aware coding recall
mcp__memory__recall_memory({
query: "error handling patterns",
language: "typescript",
context: "coding-style",
context_types: ["Style", "Pattern"]
})
| Type | Importance | When to Store |
|---|---|---|
| Decision | 0.9 | Architecture, library choices, pattern decisions |
| Insight | 0.8 | Root cause discoveries, key learnings, bug fixes |
| Pattern | 0.7 | Reusable approaches, best practices |
| Preference | 0.6-0.8 | User config choices, style preferences |
| Context | 0.5-0.7 | Feature summaries, refactoring notes |
Content: "Brief title. Context and details. Impact/outcome."
Tags: [project-name, component, YYYY-MM, type]
Type: Decision | Pattern | Insight | Preference | Style | Habit | Context
Decision:
mcp__memory__store_memory({
content: "Chose PostgreSQL over MongoDB. Need ACID guarantees for transactions. Impact: Ensures data consistency.",
type: "Decision",
tags: ["myapp", "database", "decision", "2025-12"],
importance: 0.9,
metadata: {
alternatives_considered: ["MongoDB", "DynamoDB"],
deciding_factors: ["ACID", "relationships", "team_expertise"]
}
})
Bug Fix:
mcp__memory__store_memory({
content: "Auth timeout on slow connections. Root: Missing retry logic. Solution: Added exponential backoff with 3 retries.",
type: "Insight",
tags: ["myapp", "auth", "bug-fix", "2025-12"],
importance: 0.8,
metadata: {
error_signature: "TimeoutError: Authentication request timed out",
solution_pattern: "exponential-backoff-retry",
files_modified: ["src/auth/client.ts"]
}
})
User Preference:
mcp__memory__store_memory({
content: "User prefers early returns over nested conditionals in validation code.",
type: "Preference",
tags: ["preferences", "code-style", "2025-12"],
importance: 0.8
})
Link related memories to build a knowledge graph:
mcp__memory__associate_memories({
memory1_id: "new-memory-id",
memory2_id: "related-memory-id",
type: "DERIVED_FROM", // or LEADS_TO, EVOLVED_INTO, RELATES_TO
strength: 0.9
})
Relationship Types:
LEADS_TO - Bug → Solution, Problem → FixEVOLVED_INTO - Updated approaches or decisionsDERIVED_FROM - Implementation from planningEXEMPLIFIES - Concrete examples of patternsCONTRADICTS - Conflicting approachesREINFORCES - Supporting evidenceINVALIDATED_BY - Obsoleted solutionsRELATES_TO - General connectionsOCCURRED_BEFORE - Temporal orderingPREFERS_OVER - Chosen alternativePART_OF - Component of a larger effortSystem/internal relations such as SIMILAR_TO, PRECEDED_BY, EXPLAINS, SHARES_THEME, PARALLEL_CONTEXT, and DISCOVERED may appear in recall results, but they are not valid associate_memories inputs.
Store a session summary when:
mcp__memory__store_memory({
content: "Added authentication system with JWT. Supports login, logout, and token refresh. Impact: Users can now login securely.",
type: "Context",
tags: ["myapp", "auth", "feature", "2025-12"],
importance: 0.9,
metadata: {
files_modified: ["src/auth/UserAuth.ts", "src/middleware/auth.ts"],
feature: "authentication"
}
})
When recalling memories, weave context seamlessly into responses. Avoid robotic phrases like "searching my memory database" - present memories as if you've always known them.
Bad: "Let me search my memory... I found that you previously decided to use PostgreSQL."
Good: "Since you chose PostgreSQL for its ACID guarantees, we should use transactions here."
npx claudepluginhub verygoodplugins/mcp-automem --plugin automemLoads and applies project memories from prior sessions for consistent decisions, conventions, and preferences. Stores new entries automatically or via /remember.
Proactively saves decisions, conventions, bugs, discoveries, and preferences to persistent Engram memory across sessions using mem_save and related tools.
Manages AI memories: saves decisions/patterns/facts with categories/tags, searches context, lists/deletes entries, rescans project architecture via MCP tools and /remember /forget.