skills/memory-first-workflow/SKILL.md
Workflow for checking memory before code exploration. Auto-loaded when answering questions about code, architecture, or patterns.
npx skillsauth add codenamev/claude_memory memory-first-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
tools
Automatically install, configure, or upgrade ClaudeMemory
tools
Store and recall long-term memory. Use when persisting facts learned during conversations or recalling stored knowledge about projects and preferences.
tools
Diagnose ClaudeMemory installation and configuration issues. Use when memory tools fail or setup seems broken.
tools
Knowledge about analyzing projects for tech stack, frameworks, tools, and conventions. Use when asked to understand or learn about a project's structure.