checkpoint

checkpoint is a skill for Claude Code from ij5a/subrosa. It costs 75 tokens per session (2,538 once invoked), scanned A, original, MIT.

A memory-saving command that records important facts from the current conversation before you clear or shorten the chat.

In plain words
What is it for?
Use it before /clear or /compact to update Subrosa's stored memory, archive stale entries, and report whether the conversation is safe to remove.
Why use it?
It reduces the risk of losing user preferences, project context, decisions, and useful references during a context wipe.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the subrosa plugin — 2 skills, 5 hooks shipped together

Good fit Use it before /clear or /compact to update Subrosa's stored memory, archive stale entries, and report whether the conversation is safe to remove.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ij5a/subrosa/checkpoint
View source ↗ ij5a/subrosa
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 ij5a/subrosa --skill checkpoint
Clone the repo
git clone --depth 1 https://github.com/ij5a/subrosa

Made for: Claude Code.

Or install subrosa, the plugin that ships this one along with the rest of its 2 skills, 5 hooks.

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 checkpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/ij5a/subrosa/checkpoint/github.svg)](https://agentmods.dev/skills/ij5a/subrosa/checkpoint)
Your own site
<a href="https://agentmods.dev/skills/ij5a/subrosa/checkpoint"><img src="https://agentmods.dev/badge/skills/ij5a/subrosa/checkpoint/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 checkpoint

Your own site · 80×15
<a href="https://agentmods.dev/skills/ij5a/subrosa/checkpoint"><img src="https://agentmods.dev/badge/skills/ij5a/subrosa/checkpoint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,538 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00075 $0.02538
Opus 5.5 $0.00030 $0.01015
Sonnet 5.5 $0.00015 $0.00508
Haiku 4.5 $0.00007 $0.00254

Measured 23d ago against content hash 493376a136bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

checkpoint scanned grade A with 0 findings 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 23d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/checkpoint/SKILL.md · 108 lines

How it starts

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

checkpoint: flush memory before a context wipe

The user is about to run /clear or /compact. Save durable facts before either command, then report whether it is safe to wipe.

MEMORY.md is generated from (~/.claude/subrosa/memory.db). Never hand-edit it. Write leaf files and register facts. The generator rebuilds the byte-budgeted index. Use the subrosa CLI (subrosa fact …, subrosa generate, subrosa search …). If it is not on PATH, bootstrap installs it at ~/.claude/subrosa/bin/subrosa.

Procedure

  1. Scan the full conversation. Review every turn, not only the last. Classify each candidate as one of these four types:

    • user: role, preferences, knowledge, and working context
    • feedback: corrections and validated approaches. Include the reason for both.
    • project: ongoing work, deadlines, motivations, roles, and reasons
    • reference: pointers to external systems, dashboards, and ticket projects
  2. Apply the exclusion list strictly. Never save:

    • Code patterns, conventions, file paths, or architecture
    • Git history, commit hashes, blame info, or PR numbers
    • Debugging recipes. The fix is in code, and the reason is in the commit message.
    • Anything already covered by CLAUDE.md
    • Ephemeral state, such as task details, investigation chains, or bare ticket numbers
    • Routine activity logs. Save only what was surprising or non-obvious.

    These exclusions apply even when the user says, "save this." Ask what was non-obvious or whether they meant CLAUDE.md.

  3. Check existing memory before writing. Run subrosa fact list for curated facts. Run subrosa search "<keyword>" for the full transcript archive. Read related leaf files. For each candidate:

    • A correct similar fact exists: skip it.
    • A stale similar fact exists: update it in place.
    • No similar fact exists: write a new one.
  4. Write the leaf, then register the fact. Do NOT hand-edit MEMORY.md.

    • Create or update the leaf with frontmatter: name, description, type.
    • Use Why: and How to apply: for feedback and project. The why helps future readers judge edge cases.
    • Register it: subrosa fact upsert --leaf <file.md> --hook "<one-line hook, under ~150 chars>" --origin-session <id>. <id> is the current session id from step 10. Pass it for new and updated facts, because checkpoint-mark refuses a session with no fact stamped with its id. Type and title come from frontmatter. Pass --pin for an always-loaded guardrail, but pinned facts still compete for the byte budget. On update, the stored title stays unless you pass --title. New facts append; updates keep their place.
    • Link related leaves with [[slug]], using the other leaf's name. A not-yet-written leaf is allowed. Run subrosa fact link <slug> after registration. [dangling] means a typo or missing leaf.

Read the full file on GitHub · 108 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. 23d ago Changed 493376a136bf
  2. 28d ago Changed 4c1dc470844a
  3. 1mo ago Changed · +2 lines 61630bca6263
  4. 1mo ago First seen · 106 lines · 75 tokens per session scan A d71daff323ad

Subscribe to this mod's changes

checkpoint is a skill published in the GitHub repository ij5a/subrosa (5 stars, last pushed 3d ago), licensed MIT. It adds 75 tokens to every session and 2,538 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

performance-audit

Full-stack performance health check across 12 dimensions. Rendering, bundles, assets, API/network, algorithms, memory, database, caching, Web Vitals, backend runtime, concurrency, and framework-specific pathologies. Evidence-based Impact Models with confidence tiers and a prioritized optimization roadmap. Switches…

greglas75/zuvo · 90 tokens

memory-manager

Optional local conversation memory using SQLite FTS5 and the existing scoped continuity ledger. Semantic capture, bounded cited retrieval, privacy, session isolation and explicit maintenance.

buiphucminhtam/forgewright · 34 tokens

mushroom

Live graph memory for agents — query and create entities, derive relationships by rule, explain why two things are associated, read the graph at a past commit, ask what a change would do, and answer as one role. Trigger on: memory, remember, recall, relationship, entity, association, why are X and Y related, as of…

MatthewSherlin/mushroomdb · 0 tokens

memory-status

Report where memory is stored (the SQLite file), the active project scope, and entity/observation counts, or list every project in the store with its usage. Use when the user asks whether memory is working, where it is stored, how much has been remembered, what projects are stored, or how much each project takes.

troglodyte/claude-neo4j-mem · 69 tokens

summer-ratelimit

Summer Framework rate limiting (v0.2.2+ ONLY) — fixed-window, sliding-window, token-bucket strategies with Redis or in-memory storage. acquire() for auto-429, tryAcquire() for manual control. Use when implementing rate limiting in Summer Framework projects — per-user, per-IP, per-tenant, or global rate limits with…

taipt1504/agent-skills · 93 tokens

money

Skill "money" from Hmbown/Codewhale, covering money, when to use, setup, workflow and non-goals.

Hmbown/Codewhale · 0 tokens