Persist session context to Serena MCP memory for cross-session continuity.
Core Requirements
All persistence uses Serena MCP tools exclusively (no agent-specific tools)
Always check existing memories before writing to avoid overwriting valuable context
Session checkpoint keys must include date: session_YYYY-MM-DD_<description>
Pattern and learning memories use: pattern_<topic>
Never skip think_about_collected_information for save validation
Report what was saved as a structured summary to the user
Phase 1: Session Analysis
Review what was accomplished this session:
Files created or modified
Decisions made and their rationale
Problems encountered and solutions found
Tasks completed and tasks remaining
Identify what is worth persisting:
Session state: Current progress, next steps, blockers
Learnings: Reusable patterns, solutions to problems
Plans: Active plans or updated plans
TODOs: Outstanding work items
Phase 2: Memory Inventory
Call list_memories to see existing memories
Check if project_overview needs updating (significant new understanding gained?)
Identify which existing memories need updates vs. new memories to create
Phase 3: Persist Session Checkpoint
Call write_memory with key session_YYYY-MM-DD_<summary>:
## Session: YYYY-MM-DD — <summary>
### Accomplished
- [what was done]
### Decisions Made
- [decision]: [rationale]
### Files Changed
- [file path]: [what changed]
### Pending / Next Steps
- [what remains to be done]
### Blockers (if any)
- [blocker description]
Phase 4: Persist Learnings (if any)
For each reusable pattern discovered, call write_memory with key pattern_<topic>:
## Pattern: <name>
**Context**: [when this applies]
**Solution**: [the pattern/approach]
**Example**: [concrete example]
**When to Use**: [trigger conditions]
For each persistent TODO, call write_memory with key todo_<description>:
## TODO: <description>
**Priority**: [high/medium/low]
**Context**: [why this matters]
**Acceptance Criteria**: [how to know it's done]
Phase 5: Update Project Overview (if needed)
If significant new project understanding was gained:
Call read_memory("project_overview") to get current content
Call write_memory("project_overview", updated_content) with additions
Do NOT overwrite existing content — append or update sections
Phase 6: Validation
Call think_about_collected_information to verify save completeness
Verify: session checkpoint created, learnings persisted, no critical context lost
Phase 7: Save Report
Report to the user:
## Session Saved
### Memories Written
| Key | Purpose |
|-----|---------|
| session_YYYY-MM-DD_xxx | Session checkpoint |
| pattern_xxx | [if any] |
| todo_xxx | [if any] |
### Memories Updated
| Key | What Changed |
|-----|-------------|
| project_overview | [if updated] |
### Next Session
Run `/load` to restore this context.
Memory Naming Conventions
See references/memory-conventions.md for the complete naming reference.
Quick summary:
Prefix
Purpose
Example
project_overview
Project summary (singleton)
project_overview
CRITICAL_*
Must-read rules
CRITICAL_activation_rule
session_YYYY-MM-DD_*
Session checkpoints
session_2026-02-09_auth-flow
plan_*
Active plans
plan_dark-mode
pattern_*
Reusable patterns
pattern_supabase-rls
discovery_*
Brainstorming results
discovery_api-options
todo_*
Persistent TODOs
todo_fix-login
Success Criteria
Session accomplishments analyzed
Existing memories checked (no accidental overwrites)
Session checkpoint memory written with date-stamped key
Learnings/patterns persisted (if any discovered)
Project overview updated (if significant new understanding)
think_about_collected_information called
Save report presented to user
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: laststance-skills-save3description: Session Save4---56# Session Save78Persist session context to Serena MCP memory for cross-session continuity.910<essential_principles>1112## Core Requirements1314- All persistence uses Serena MCP tools exclusively (no agent-specific tools)15- Always check existing memories before writing to avoid overwriting valuable context16- Session checkpoint keys must include date: `session_YYYY-MM-DD_<description>`17- Pattern and learning memories use: `pattern_<topic>`18- Never skip `think_about_collected_information` for save validation19- Report what was saved as a structured summary to the user2021</essential_principles>2223## Phase 1: Session Analysis24251. Review what was accomplished this session:26 - Files created or modified27 - Decisions made and their rationale28 - Problems encountered and solutions found29 - Tasks completed and tasks remaining302. Identify what is worth persisting:31 - **Session state**: Current progress, next steps, blockers32 - **Learnings**: Reusable patterns, solutions to problems33 - **Plans**: Active plans or updated plans34 - **TODOs**: Outstanding work items3536## Phase 2: Memory Inventory37383. Call `list_memories` to see existing memories394. Check if `project_overview` needs updating (significant new understanding gained?)405. Identify which existing memories need updates vs. new memories to create4142## Phase 3: Persist Session Checkpoint43446. Call `write_memory` with key `session_YYYY-MM-DD_<summary>`:4546```47## Session: YYYY-MM-DD — <summary>4849### Accomplished50- [what was done]5152### Decisions Made53- [decision]: [rationale]5455### Files Changed56- [file path]: [what changed]5758### Pending / Next Steps59- [what remains to be done]6061### Blockers (if any)62- [blocker description]63```6465## Phase 4: Persist Learnings (if any)66677. For each reusable pattern discovered, call `write_memory` with key `pattern_<topic>`:6869```70## Pattern: <name>7172**Context**: [when this applies]73**Solution**: [the pattern/approach]74**Example**: [concrete example]75**When to Use**: [trigger conditions]76```77788. For each persistent TODO, call `write_memory` with key `todo_<description>`:7980```81## TODO: <description>8283**Priority**: [high/medium/low]84**Context**: [why this matters]85**Acceptance Criteria**: [how to know it's done]86```8788## Phase 5: Update Project Overview (if needed)89909. If significant new project understanding was gained:91 - Call `read_memory("project_overview")` to get current content92 - Call `write_memory("project_overview", updated_content)` with additions93 - Do NOT overwrite existing content — append or update sections9495## Phase 6: Validation969710. Call `think_about_collected_information` to verify save completeness9811. Verify: session checkpoint created, learnings persisted, no critical context lost99100## Phase 7: Save Report101102Report to the user:103104```105## Session Saved106107### Memories Written108| Key | Purpose |109|-----|---------|110| session_YYYY-MM-DD_xxx | Session checkpoint |111| pattern_xxx | [if any] |112| todo_xxx | [if any] |113114### Memories Updated115| Key | What Changed |116|-----|-------------|117| project_overview | [if updated] |118119### Next Session120Run `/load` to restore this context.121```122123## Memory Naming Conventions124125See `references/memory-conventions.md` for the complete naming reference.126127Quick summary:128129| Prefix | Purpose | Example |130|--------|---------|---------|131| `project_overview` | Project summary (singleton) | `project_overview` |132| `CRITICAL_*` | Must-read rules | `CRITICAL_activation_rule` |133| `session_YYYY-MM-DD_*` | Session checkpoints | `session_2026-02-09_auth-flow` |134| `plan_*` | Active plans | `plan_dark-mode` |135| `pattern_*` | Reusable patterns | `pattern_supabase-rls` |136| `discovery_*` | Brainstorming results | `discovery_api-options` |137| `todo_*` | Persistent TODOs | `todo_fix-login` |138139## Success Criteria140141- [ ] Session accomplishments analyzed142- [ ] Existing memories checked (no accidental overwrites)143- [ ] Session checkpoint memory written with date-stamped key144- [ ] Learnings/patterns persisted (if any discovered)145- [ ] Project overview updated (if significant new understanding)146- [ ] `think_about_collected_information` called147- [ ] Save report presented to user148149---150> Converted and distributed by [TomeVault](https://tomevault.io/claim/laststance) — claim your Tome and manage your conversions.151<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/laststance-skills-save in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Session Save It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.