Context Saver Skill
This skill enables Claude Capsule Kit to save discoveries to persistent storage.
Purpose
Problem: Claude sessions are stateless - discoveries are lost when session ends.
Solution: Save findings to docs/exploration/ files that next Claude reads.
When to Use
Use this skill when:
- •Completing an exploration phase
- •Making important architectural discoveries
- •Finding bugs or issues
- •Learning how a system works
- •Finishing a significant task
How It Works
- •Determine what to save: Summarize key findings from current work
- •Choose appropriate file:
- •
CURRENT_SESSION.md- Update with latest progress - •
PHASE_X_FINDINGS.md- Save phase-specific discoveries - •
DISCOVERY_[TOPIC].md- Document specific insights
- •
- •Write structured markdown: Clear, scannable format for future Claude
- •Update session state: Track what's done, what's next
File Structure
CURRENT_SESSION.md
# Current Session: [Goal] **Date**: YYYY-MM-DD **Status**: In Progress / Complete ## Completed - [x] Task 1 - [x] Task 2 ## Discovered - Finding 1 with file references - Finding 2 with code examples ## Next Steps - [ ] Continue with...
PHASE_X_FINDINGS.md
# Phase X: [Phase Name] **Date**: YYYY-MM-DD **Status**: Complete ## Summary 3-5 sentence overview of what was explored. ## Key Findings 1. **Finding 1**: Details with file paths 2. **Finding 2**: Details with code snippets ## Files Explored - `/path/to/file:123` - What we learned
Example Usage
Situation: Just completed exploring Labs database schema
Skill Execution:
- •Create
/docs/exploration/LABS_DATABASE_SCHEMA.md - •Document findings:
- •3 main tables (experiments, experiment_runs, validation_rules)
- •Foreign key relationships
- •JSONB config storage patterns
- •Confidence score calculation (DECIMAL 3,2)
- •Update
CURRENT_SESSION.mdwith progress - •Mark task as completed
Result: Next Claude session reads LABS_DATABASE_SCHEMA.md and knows exactly what was discovered.
Best Practices
DO:
- •✅ Save concrete findings (file paths, line numbers, code snippets)
- •✅ Use clear section headers for scannability
- •✅ Include "Next Steps" for continuity
- •✅ Reference specific files explored
- •✅ Document both what works AND what doesn't
DON'T:
- •❌ Save vague statements ("looked at some code")
- •❌ Omit file references
- •❌ Write walls of text without structure
- •❌ Forget to update CURRENT_SESSION.md
Integration with SessionStart Hook
When next Claude session starts:
- •SessionStart hook detects files in
docs/exploration/ - •Prints: "🧠 Claude Capsule Kit MEMORY LOADED: Previous exploration findings available"
- •Lists all saved files
- •Next Claude reads relevant files to continue work
This creates persistent memory across sessions!
Commands
# List saved findings ls docs/exploration/ # Read a specific finding cat docs/exploration/PHASE_1_FINDINGS.md # Update current session # (Edit CURRENT_SESSION.md with new progress)
Success Criteria
✅ Findings are clear enough that another developer could understand ✅ File paths included for easy navigation ✅ Next steps documented for continuity ✅ CURRENT_SESSION.md always reflects latest state
Remember: This skill is THE KEY to making Claude truly "SUPER" - it's how we remember and build on past work!