From claude-memory
Enforces querying memory (decisions, architecture, conventions) before code exploration when answering questions about code, architecture, or patterns. Ensures consistency and saves time.
npx claudepluginhub codenamev/claude_memory --plugin claude-memoryThis skill uses the workspace's default tool permissions.
When answering questions about code, architecture, patterns, decisions, or technical choices, follow this workflow:
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.
Loads and applies project memories from prior sessions for consistent decisions, conventions, and preferences. Stores new entries automatically or via /remember.
Searches Claude Code memory for errors, solutions, decisions, patterns, and project context. Invoke via /mem-search with queries like 'database schema decisions' or auto-activates on relevant topics.
Share bugs, ideas, or general feedback.
When answering questions about code, architecture, patterns, decisions, or technical choices, follow this workflow:
Before reading files or exploring code, check if memory already has the answer:
memory.recall "<topic>"
Example queries:
memory.recall "authentication flow"memory.recall "database choice"memory.recall "error handling patterns"For specific types of questions, use targeted memory tools:
memory.decisions
Returns architectural decisions and constraints that may affect implementation.
memory.architecture
Returns framework choices, database selection, and architectural patterns.
memory.conventions
Returns coding style, naming conventions, and project standards.
memory.conflicts
Returns open disputes that need resolution.
If memory has sufficient information:
If memory has partial information:
If memory has no information:
When memory is insufficient, use file exploration tools:
Read for specific filesGrep for searching contentGlob for finding files by patternTask (Explore agent) for broad investigationsWhen presenting findings, clearly separate:
spec/support/"Memory provides instant access to distilled knowledge without re-reading hundreds of files.
Past decisions, lessons learned, and rationale are preserved in memory.
Recalled facts are concise compared to reading entire files.
Prevents contradicting previous decisions or duplicating solved problems.
Understanding past context leads to better decisions aligned with project history.
❌ Don't skip memory checks:
User: "What database do we use?"
Bad: *immediately reads config files*
Good: *checks memory.architecture first*
❌ Don't assume memory is wrong:
Bad: "Memory says PostgreSQL, let me verify by reading the config..."
Good: "Memory says PostgreSQL. Need any specific config details?"
❌ Don't ignore memory conflicts:
Bad: *finds conflict, picks one arbitrarily*
Good: "memory.conflicts shows authentication method disputed—let me investigate and resolve"
User asks: "How do we handle errors in API responses?"
Step 1: Check memory
memory.recall "error handling API"
memory.conventions
Step 2: Evaluate results
error and message keys"Step 3: Answer with citations
"From memory: We handle API errors by returning JSON with error and message keys. Client errors use 4xx status codes, server errors use 5xx. Is there a specific error case you're working with?"
Step 4: Only if needed, explore code If user asks: "Show me the error middleware" Then use Read/Grep to find the implementation.
This workflow is automatically loaded when you ask technical questions. You don't need to invoke it manually—it guides Claude's research process behind the scenes.