Automatically search memory and retrieve context when user asks questions about the project, past work, patterns, decisions, or implementations. Always invoke before answering "how did we", "what patterns", "who worked on".
Automatically searches project memory before answering questions about past work, patterns, or decisions. Triggers when users ask "how did we," "what patterns," or request implementations, ensuring responses are consistent with established approaches.
/plugin marketplace add julep-ai/memory-store-plugin/plugin install memory-store@claude-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
⚡ IMPORTANT: This skill is ALWAYS ACTIVE. Use it automatically whenever the user asks questions.
Automatic memory search integrated into conversation:
Note: Storage is handled automatically by hooks. This skill makes retrieval AUTOMATIC.
ALWAYS invoke mcp__memory-store__recall when:
User asks ANY question about the project
User asks you to implement something
User asks about team/ownership
User mentions uncertainty
You're about to suggest something
Cues for retrieval:
When storing (reactive to hooks):
Parse the context to extract:
Invoke mcp__memory__record tool with the extracted information
Confirm silently - No need to tell the user unless there's an error
When retrieving (proactive for guidance):
Identify what you need to know:
Create search cues (3-7 relevant terms):
["authentication", "API endpoint", "OAuth", "patterns"]
Invoke mcp__memory__recall with:
cues: Array of search termsbackground: Context about why you're searchingk: Number of results (default 10)Use the results to:
Mention to user when using past context:
Input additionalContext:
🚀 Development session starting in project mem-plugin on branch main.
Session ID: mem-20251113-ABC123. This session context should be stored
in memory using memory__record tool with importance: normal.
Action:
// Invoke mcp__memory__record
{
"memory": "Development session started in mem-plugin on branch main",
"background": "Session ID: mem-20251113-ABC123. Session initialized at 2025-11-13T17:00:00Z",
"importance": "normal"
}
Input additionalContext:
📝 File created: auth.ts (TypeScript). Pattern: API endpoint. Store this
in memory using memory__record with importance: low, background: 'File
auth.ts was created in session mem-123. Language: TypeScript. Pattern:
API endpoint. Change #5.'
Action:
// Invoke mcp__memory__record
{
"memory": "File created: auth.ts (TypeScript). Pattern: API endpoint",
"background": "File auth.ts was created in session mem-123. Language: TypeScript. Pattern: API endpoint. Change #5.",
"importance": "low"
}
Input additionalContext:
💾 Commit: feat: add OAuth2 authentication (feature) - Ticket AUTH-123.
Store this commit in memory using memory__record with importance: high,
background: 'Commit abc1234 on branch feature/auth. Type: feature. Files
changed: 8. Breaking change: false.'
Action:
// Invoke mcp__memory__record
{
"memory": "Commit: feat: add OAuth2 authentication (feature) - Ticket AUTH-123",
"background": "Commit abc1234 on branch feature/auth. Type: feature. Files changed: 8. Breaking change: false.",
"importance": "high"
}
mcp__memory__record fails, mention it to the userLook for these patterns in additionalContext:
User says:
"How did we implement authentication in this project?"
Action:
// Invoke mcp__memory__recall
{
"cues": ["authentication", "implement", "auth", "login", "OAuth"],
"background": "User asking about authentication implementation. Need to retrieve past work on auth systems in this project.",
"k": 10
}
Expected results:
Response to user:
Based on our previous work, we implemented OAuth2 authentication.
See auth.ts:45 where we established the pattern. The flow uses...
User says:
"Create a new API endpoint for user profiles"
Before implementing, retrieve context:
// Invoke mcp__memory__recall
{
"cues": ["API endpoint", "create endpoint", "user", "REST API", "patterns"],
"background": "About to create new API endpoint. Need to check existing API patterns and conventions.",
"k": 5
}
Use results to:
Response:
I'll create the user profiles endpoint following our established API pattern.
Based on our existing endpoints (like auth.ts), I'll use the same middleware
structure and error handling...
Scenario: Claude is about to suggest using MongoDB, but team uses PostgreSQL
Before suggesting:
// Invoke mcp__memory__recall
{
"cues": ["database", "data storage", "PostgreSQL", "MongoDB", "decision"],
"background": "Need to recommend database approach. Checking if team has established database preferences.",
"k": 5
}
Results show: "Decision: Use PostgreSQL for ACID compliance (2024-10-15)"
Corrected response:
I'll use PostgreSQL for this, consistent with our team's decision from
October 2024. This ensures ACID compliance and aligns with our existing
database infrastructure.
If mcp__memory__record fails:
Example error message:
⚠️ Unable to store memory: "File created: auth.ts".
The memory store server may be unavailable. Your work is still tracked
locally and will sync when the connection is restored.
For Storage:
For Retrieval:
End-to-end test:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.