session-snapshot

session-snapshot is a skill for Claude Code from restarter/lets-workflow. It costs 82 tokens per session (2,577 once invoked), scanned B, original, MIT.

A session-saving procedure for the Lets workflow that records what happened during a coding session and how to continue. It always stores a recovery note in the project’s .lets/sessions folder.

In plain words
What is it for?
Use it when ending a session, saving a note before context compaction, or preparing a recovery handoff. It writes the snapshot but does not commit, push, merge, or close the work.
Why use it?
It preserves the task state before a session ends or its context is shortened. The next session can use the note to recover the goal, completed work, decisions, and next step.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the lets plugin — 20 skills, 26 commands, 15 agents shipped together

Good fit Use it when ending a session, saving a note before context compaction, or preparing a recovery handoff. It writes the snapshot but does not commit, push, merge, or close the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/restarter/lets-workflow/session-snapshot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add restarter/lets-workflow --skill session-snapshot
Clone the repo
git clone --depth 1 https://github.com/restarter/lets-workflow

Made for: Claude Code.

Or install lets, the plugin that ships this one along with the rest of its 20 skills, 26 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for session-snapshot

README.md
[![agentmods](https://agentmods.dev/badge/skills/restarter/lets-workflow/session-snapshot/github.svg)](https://agentmods.dev/skills/restarter/lets-workflow/session-snapshot)
Your own site
<a href="https://agentmods.dev/skills/restarter/lets-workflow/session-snapshot"><img src="https://agentmods.dev/badge/skills/restarter/lets-workflow/session-snapshot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for session-snapshot

Your own site · 80×15
<a href="https://agentmods.dev/skills/restarter/lets-workflow/session-snapshot"><img src="https://agentmods.dev/badge/skills/restarter/lets-workflow/session-snapshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.02577
Opus 5.5 $0.00033 $0.01031
Sonnet 5.5 $0.00016 $0.00515
Haiku 4.5 $0.00008 $0.00258

Measured yesterday against content hash 1a487733ea2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

session-snapshot scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

TRANSCRIPT_PATH=$(find "$HOME/.claude/projects" -maxdepth 2 -name "${CLAUDE_CODE_SESSION_ID}.jsonl" 2>/dev/null | head -1)
plugins/lets/skills/session-snapshot/SKILL.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Session Snapshot

Shared snapshot primitive for /lets:end (settlement + snapshot) and for the --session snapshot-only flag on both /lets:end and /lets:note. Single source of truth - every caller delegates here so the template and file/pointer behavior never drift.

Goal: ONE recovery-grade ## RESUME snapshot, file-primary - it ALWAYS lands in a .lets/sessions/ file (the single trail /lets:start reads), regardless of task state (feature / trunk / --main / no-task). The active task gets only a ONE-LINE pointer to that file, and only when a task is unambiguously active (via detect-task, NEVER a list-by-status | head -1 guess).

Contract - this skill ONLY writes the snapshot (file + optional pointer). It does NOT end the session, push, merge, commit, or close anything. The caller decides what else to do.

Arguments (from the caller)

Passed via the Skill invocation's args string as space-separated key=value pairs (e.g. args: "kind=end pointer=off task-id=lets-abc range=session: X..HEAD (3 commits)"). Put range= / task-id= LAST when the value contains spaces - each consumes the rest of the string. Any omitted key falls to its default.

  • kind = session (default) | end - selects the ### Record line ONLY; both resolve to the same artifact-path kind (snapshot), because a mid-session record and a session-end record are the same artifact written at different moments. There is no precompact kind: a snapshot taken before a /compact is just a mid-session one, and naming the caller's next intention in a permanent file is what made the old flag dishonest. Step 3 owns the filename, never build it here.
  • pointer = off (default) | auto - whether the skill writes the standalone one-line task pointer. off is the SAFE default (a caller that forgets never double-writes a task comment); a caller that wants the skill to write the pointer passes auto explicitly (both snapshot-only callers do). /lets:end default passes off when it folds the pointer into its own progress comment, auto otherwise.
  • range (optional) - a RANGE_DESC string (e.g. session: <ref>..HEAD (N commits)). A caller that passes one WINS - /lets:end's default flow does, because it already read the boundary to gate its own offers. When it is absent, Step 2 resolves it through session-boundary rather than omitting the block, for EVERY kind. Every snapshot is read back by the same consumer, /lets:start, for the same purpose - where the work began - so none of them has a reason to be written without its range (lets-yprsv).
  • task-id (optional) - pre-resolved active task from the caller's own detect-task.

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 1a487733ea2b
  2. 1mo ago Changed 8905abfcd714
  3. 2mo ago Changed · +2 lines 789d061bddb2
  4. 2mo ago Changed · +2 lines a26e3f5b9e01
  5. 2mo ago Changed · +7 lines 1d20c9dd99cd
  6. 2mo ago Changed · +11 lines · -1 tokens per session f04c6b63f650
  7. 3mo ago First seen · 96 lines · 83 tokens per session scan B 1e9d1aae5ce8

Subscribe to this mod's changes

session-snapshot is a skill published in the GitHub repository restarter/lets-workflow (17 stars, last pushed 2d ago), licensed MIT. It adds 82 tokens to every session and 2,577 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

session-snapshot compared with skills from other repositories

session-snapshot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-snapshotrestarter/lets-workflowSkill172d agoMITB82Claude Code
dekko-verifyaahlijia/dekkoSkill612d agoMITA151Claude Code
dekko-review-contextaahlijia/dekkoSkill612d agoMITA74Claude Code
fixJebel-Quant/rhiza-claudeSkill8todaynoneA51Claude Code
watch-prjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
triage-reportRockyHong/super-bootstrapSkill32d agoMITA151Claude Code
review-healthscharissis/polakoSkill13d agoMITA0Claude Code