journal-capture
npx machina-cli add skill chrismbryant/claude-journal-mcp/journal-capture --openclawJournal Capture Skill
You have the ability to proactively capture significant work into the user's journal.
When to Use This Skill
Use this skill automatically and proactively when you:
-
Complete a significant feature or task
- Implemented new functionality
- Fixed a complex bug
- Refactored important code
- Set up infrastructure or tooling
-
Make important technical decisions
- Chose between architectural approaches
- Selected libraries or frameworks
- Decided on implementation strategies
- Resolved design tradeoffs
-
Solve challenging problems
- Debugged difficult issues
- Overcame technical obstacles
- Found non-obvious solutions
- Learned something valuable
-
Make progress on projects
- Completed a phase of work
- Reached a milestone
- Integrated multiple components
- Finished testing or deployment
How to Capture
Use the journal_auto_capture MCP tool:
journal_auto_capture(
title="Brief title of what was accomplished",
description="The goal (what we were trying to do) and what was done"
)
The tool automatically:
- Determines the project (if in a git repo)
- Adds the "auto-capture" tag
- Generates relevant tags based on content
- Creates a structured journal entry
Examples
Example 1: Feature implementation
User: "Add authentication to the API"
[You implement OAuth2 with JWT tokens]
→ journal_auto_capture(
title="Implemented OAuth2 authentication",
description="User requested API authentication. Implemented OAuth2 flow with JWT tokens for secure user sessions."
)
Example 2: Bug fix
User: "The cache is leaking memory"
[You identify and fix the leak]
→ journal_auto_capture(
title="Fixed cache memory leak",
description="User reported memory leak in cache. Identified and fixed by implementing automatic clearing of stale entries."
)
Example 3: Technical decision
User: "Should we use Redis or PostgreSQL for caching?"
[Discussion leads to Redis choice]
→ journal_auto_capture(
title="Chose Redis for caching",
description="Evaluated Redis vs PostgreSQL for caching needs. Selected Redis due to better performance for our use case."
)
Example 4: Infrastructure setup
User: "Set up CI/CD pipeline"
[You configure GitHub Actions with tests and deployment]
→ journal_auto_capture(
title="Set up GitHub Actions CI/CD",
description="User requested CI/CD pipeline. Configured GitHub Actions with automated tests and deployment workflow."
)
What NOT to Capture
Don't capture:
- Trivial changes (typo fixes, formatting)
- Failed attempts or abandoned approaches
- Purely informational exchanges
- User questions without implementation
Timing
Capture entries:
- Immediately after completing significant work
- Before moving to the next major task
- At natural breakpoints in the conversation
- When the auto-capture hook triggers (every 30 min or 3+ messages)
This ensures the journal stays current and useful for future context recovery.
Responding to Auto-Capture Hook
When you see a message from the auto-capture hook:
🕐 Journal auto-capture triggered
N messages exchanged since last capture
Project: <project-name>
📝 Please capture this session to the journal:
- Summarize the goal (what we were trying to do)
- Summarize what was accomplished
- Use journal_auto_capture with a brief summary
⚠️ Claude: You MUST respond to this trigger, even if you decide not to capture.
Either create a journal entry OR explain why you're not capturing.
You MUST respond to this trigger every time. Follow these steps:
- Acknowledge the trigger - Let the user know you saw the auto-capture signal
- Analyze the conversation - Review what happened since the last capture
- Decide and act:
- If significant work occurred: Call
journal_auto_capturewith an appropriate title and description - If nothing substantial happened: Explicitly explain why you're not capturing (e.g., "Only trivial Q&A since last capture, nothing substantial to record")
- If significant work occurred: Call
IMPORTANT: Never silently ignore the hook trigger. The user needs visibility into your decision-making process, even if you decide not to capture.
Benefits
Proactive capture helps:
- Rebuild context after
/clear - Track progress across sessions
- Remember past solutions
- Build institutional knowledge
- Generate progress reports
Source
git clone https://github.com/chrismbryant/claude-journal-mcp/blob/main/skills/journal-capture/SKILL.mdView on GitHub Overview
journal-capture automatically records significant work into the user's journal. It triggers when you complete notable features, solve tough problems, or make important decisions. This creates a searchable history of accomplishments for future context and reflection.
How This Skill Works
Use the journal_auto_capture MCP tool with a brief title and description. The system detects the project (if in a git repository), tags the entry as auto-capture, generates relevant tags based on content, and creates a structured journal entry for easy retrieval.
When to Use It
- Complete a significant feature or task and want a record for future reference
- Make an important technical decision and want rationale captured
- Solve a challenging problem or debug a difficult issue
- Make progress on a project or finish a milestone
- Set up infrastructure, tooling, or a deployment pipeline
Quick Start
- Step 1: Call journal_auto_capture with a brief title and description
- Step 2: Ensure you are in the relevant project repository (if applicable)
- Step 3: Let the tool generate tags and a structured journal entry
Best Practices
- Capture immediately after finishing significant work
- Use a clear, concise title and a descriptive goal
- Let journal_auto_capture infer project context and tags
- Review generated tags and add any missing ones
- Avoid logging trivial changes or purely informational chatter
Example Use Cases
- Implemented OAuth2 authentication and captured the entry
- Fixed a memory leak in the cache and journaled the fix
- Chose Redis for caching and created a journal entry documenting the decision
- Set up GitHub Actions CI/CD and auto-captured the workflow
- Completed a major milestone and logged the project progress