AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Save Session

skill-david-vrba-claude-power-skills-save-session · by david-vrba

Save current session state to project memory (session_state_[topic].md), discoverable via /catch-up and /resume. Archives stale states; keeps MEMORY.md uncluttered.

No reviews yet
0 installs
31 views
0.0% view→install

Install

$ agentstack add skill-david-vrba-claude-power-skills-save-session

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-david-vrba-claude-power-skills-save-session)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Save Session? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Save session

Save the current session state to the project's memory folder so a future session — or /catch-up / /resume — can pick the work back up with zero context loss. Follow these steps exactly.

Step 1 — Locate the memory folder

Claude Code stores per-project memory under:

~/.claude/projects/[encoded-path]/memory/

Derive [encoded-path] from the current working directory by replacing every \, :, and _ character with -.

Example: C:\Users\you\projects\my_appC--Users-you-projects-my-app

If memory files were already loaded this session, their paths in the system-reminders reveal the folder directly — use that instead of recomputing.

Step 2 — Run cleanup (archive stale session states)

Scan all session_state_*.md files currently in the memory folder (not in archive/).

For each file found:

  1. Read the created: field from its frontmatter.
  2. Calculate calendar days since created.
  3. If the adjusted age is greater than 7 days → move the file to

memory/archive/ (create the folder if needed with mkdir -p), then remove its line from MEMORY.md.

Step 3 — Determine the session state filename

Check if a session_state_[topic].md already exists in the memory folder for the same project or topic as this session.

  • If yes → overwrite it (do not create a new file alongside it).
  • If no → create session_state_[topic].md where [topic] is either the project

name or a short slug that distinguishes this session's focus (e.g., api_refactor, auth_bugfix, db_migration).

Step 4 — Write the session state file

Use this exact template:

---
name: Session State — [Topic] ([today's date])
description: [One sentence: what was worked on and current status]
type: project
created: [today's date as YYYY-MM-DD]
---

# Session State — [Topic] — [today's date]

## What We Were Working On
[2-4 sentences: the specific task, why it was being done, where things stood when the session ended]

## What's Done
[Bullet list of completed items. Include filenames and specifics. If nothing was coded, say "Design only" or "Planning only".]

## What Still Needs to Be Done

### Immediate (start here next session)
- [ ] [Max 5 items — specific enough to act on without rereading anything]

### Short-term
- [ ] [Items for this week]

### Longer-term / Backlog
- [ ] [Real but not urgent]

## Current Status
[2-3 sentences. Assume the reader has zero context. End with the single most important next action.]

## Key File Locations (if relevant)
| What | Path |
|---|---|
| [component] | [path] |

Step 5 — Keep MEMORY.md clean (do NOT index session states)

Do not add a pointer line for this session state. MEMORY.md is auto-loaded into every session in this folder; indexing parked task-state there bleeds unrelated work into new sessions and invites hallucination. Session states are pull-on-demand — /catch-up Globs the folders directly and /resume uses the session-resume system; neither needs MEMORY.md.

  • Remove any existing session_state_* lines from MEMORY.md (this supersedes

any old "add a pointer" behavior).

  • Also remove lines for any files you archived in Step 2.
  • Leave durable memories (user / feedback / reference / active-checkpoint

entries) untouched.

Step 6 — Confirm

Say: "Session state saved: session_state_[topic].md — [one-line summary of what was captured]. [N] file(s) archived."

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.