context-recovery
Recovers working context from the journal after /clear or at session start
Searches journal for past work related to current task, finding relevant context, solutions, and decisions
$ npx -y skills add chrismbryant/claude-journal-mcp --skill find-related-work --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/find-related-workContext preview
The summary Claude sees to decide when to auto-load this skill.
Searches journal for past work related to current task, finding relevant context, solutions, and decisions
name: find-related-work description: Searches journal for past work related to current task, finding relevant context, solutions, and decisions when_to_use: Use when tackling problems similar to past work, making architectural decisions, or when the user explicitly asks about past implementations. Helps avoid reinventing solutions.
You have the ability to search the journal for past work related to the current task.
Use this skill **proactively** when:
1. **Facing similar problems**
2. **Making technical decisions**
3. **Troubleshooting issues**
4. **Building on past work**
5. **User explicitly asks**
**Method 1: Keyword search**
journal_search( query="authentication", # Technology, concept, or feature limit=10 )
**Method 2: Time-based search**
journal_time_query( time_expression="last month", query="caching" # Optional: narrow down results )
**Method 3: Project-specific search**
journal_search( query="database migration", project="my-api" # Focus on specific project )
**Method 4: Project history**
journal_list_recent( project="mobile-app", limit=20 # Get comprehensive project context )
**Broad to narrow:** 1. Start with general terms ("auth", "cache") 2. Narrow if too many results ("OAuth2", "Redis cache") 3. Add project filter if needed
**Technology-focused:**
**Concept-focused:**
**Time-focused:**
**Example 1: Similar feature request**
User: "Add rate limiting to the API" [Proactively search before starting] → journal_search(query="rate limiting") → Found previous rate limiting implementation in mobile-api → "I found we implemented rate limiting before in mobile-api using Redis. Want to use a similar approach? Here's what we did: [summary]"
**Example 2: Architectural decision**
User: "Should we use PostgreSQL or MongoDB for this?" → journal_search(query="PostgreSQL MongoDB database choice") → "We chose PostgreSQL over MongoDB for api-service last month because [reasons]. Similar requirements here?"
**Example 3: Debugging with history**
User: "Getting timeout errors on the cache" → journal_search(query="cache timeout error") → "We fixed a similar cache timeout issue in March by [solution]. Let me check if it's the same problem..."
**Example 4: Pattern reuse**
User: "Implement file upload for users" → journal_search(query="file upload") → "Found your file upload implementation for profiles from [date]. You used [approach] with [storage]. Use the same pattern?"
**Example 5: Technology recall**
User: "What library did we use for JWT tokens?" → journal_search(query="JWT library") → "You used PyJWT for token handling in my-api. Here's how it was set up: [summary]"
**Format:**
**Related Past Work** Found [N] related entries: **Most relevant:** [Entry title] ([date]) - [project] [Brief summary of what was done] **Also relevant:** - [Entry 2]: [Quick summary] - [Entry 3]: [Quick summary] **Suggestions:** [How this past work applies to current task]
1. **Search proactively**: Don't wait for user to ask 2. **Be selective**: Show most relevant, not all results 3. **Provide context**: Explain how past work relates 4. **Suggest application**: How to use this information 5. **Time-aware**: Note if information might be outdated
Search for:
Combine with:
Don't search for:
**Combine multiple searches:**
1. journal_search(query="authentication") # Broad search 2. journal_search(query="OAuth2", project="my-api") # Narrow down
**Use project stats for overview:**
journal_stats() # See which projects have relevant history → journal_list_recent(project="most-relevant-project")
**Time-based filtering:**
journal_time_query( time_expression="last 6 months", query="deployment" ) # Recent relevant work only
A lightweight journal/memory system for Claude Code with no ML dependencies. Uses simple SQLite for fast, local storage. This is a full-featured Claude Code plugin with slash commands, skills, an agent, and auto-capture hooks.
Repo: chrismbryant/claude-journal-mcp
Recovers working context from the journal after /clear or at session start
Proactively captures significant work into the journal for future reference