/session-saver:session-saverfrom session-saver
Saves a structured session log with objectives, file changes, technical notes, and future plans so the next Claude Code session can resume work seamlessly.
Ships in session-saver. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are going to produce a concise session log and SAVE IT TO A FILE in the project repository.
Remember: This session log and the codebase are the ONLY things that persist between sessions. The current conversation will be LOST. Capture any planned but unimplemented work in detail.
## Session Log: [YYYY-MM-DD]
**Project**: [project-name or path]
**Duration**: [if available]
**Type**: [feature/bugfix/refactor/docs/config/testing]
### Objectives
- [Primary goal]
- [Secondary goals if any]
### Summary
[2-3 sentences describing what was accomplished]
### Files Changed
- `path/to/file1.ext` - Brief description of change
- `path/to/file2.ext` - Brief description of change
### Referenced Materials
*(Paths, directories, links, or resources shared/referenced this session — not modified, but important for context)*
- `path/to/workflow/directory/` - Description of what this is
- `path/to/reference/file.md` - Why it was referenced
- https://example.com/resource - External resource consulted
### Technical Notes
- [Key learning or pattern discovered]
- [Important decision made and why]
### Future Plans & Unimplemented Phases
*(Include this section only if there ARE unimplemented phases)*
#### Phase [X]: [Name]
**Status**: Not started / Partially complete
**Planned Steps**:
1. [Specific step with implementation details]
2. [Specific step with implementation details]
### Next Actions
- [ ] Todo item 1
- [ ] Todo item 2
- [ ] Question or investigation needed
### Metrics
- Files modified: X
- Files created: Y
- Tests added: Z
### Continuation Prompt
Project: [project-name]
Session log: docs/SESSION_LOG.md
Section: "## Session Log: [YYYY-MM-DD]" ([project/type] entry)
Context: [1-2 sentence summary of what we were working on]
Key points:
- [Key point 1]
- [Key point 2]
- [Key point 3 if applicable]
Referenced paths:
- [Only paths relevant to continuing this work]
Read the session log section above, familiarize yourself with the context, and let me know when ready to continue.
*(Leave sections empty if nothing to report. Delete empty sections before saving.)*
Steps are ordered for low-context resilience — the session log is written to disk as early as possible. If context compaction happens during later steps, the core log is already saved.
Check for existing session logs (quick):
ls docs/ to check if directory existsls docs/SESSION_LOG.md to check if file existsCheck file size and auto-split if needed (quick):
docs/SESSION_LOG.md exists, count its lines: wc -l docs/SESSION_LOG.mdtotal=$(wc -l < docs/SESSION_LOG.md) && \
keep=1760 && \
archive_lines=$((total - keep)) && \
archive_date=$(head -n $archive_lines docs/SESSION_LOG.md | grep "## Session Log:" | tail -1 | sed 's/.*Session Log: //') && \
mkdir -p docs/logs && \
head -n $archive_lines docs/SESSION_LOG.md > "docs/logs/SESSION_LOG_ARCHIVE_${archive_date}.md" && \
tail -n $keep docs/SESSION_LOG.md > docs/SESSION_LOG.md.tmp && \
mv docs/SESSION_LOG.md.tmp docs/SESSION_LOG.md && \
echo "Archived $archive_lines lines to docs/logs/SESSION_LOG_ARCHIVE_${archive_date}.md"
Generate the session log content following the output structure above
Write to disk immediately:
docs/SESSION_LOG.md exists: Use the Edit tool to APPEND the new session log to the existing file---)Verify the save:
docs/SESSION_LOG.mdOutput confirmation to the user:
Display the continuation prompt to the user as a copyable block:
---
**Next Session Prompt** (copy this to start your next session):
[Contents of the Continuation Prompt section]
---
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub animalzinc/claude-plugins --plugin session-saverOther plugins' skills for the same job