From library
Capture session state at the end of a work session. Writes structured checkpoint file, updates memory, and comments on PM tasks with progress.
How this skill is triggered — by the user, by Claude, or both
Slash command
/library:checkpointThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture everything the next session needs to resume without context loss.
Capture everything the next session needs to resume without context loss.
Review the conversation and recent tool calls to collect:
git status and git diff --stat for file-level changesCall library:checkpoint:write with gathered data:
Save a project-type memory pointing to the checkpoint:
name: <Topic> Session Checkpoint
description: <one-line summary>
type: project
Content: path to checkpoint file, resume point, key decisions.
For each PM task touched this session:
library:pm:update with a comment summarizing progressCall library:pm:sync for active projects. Compare accomplished work against open tasks.
Flag any session work that doesn't match a PM task (orphaned work — should it be tracked?).
A session almost always discovers follow-ups that are NOT in PM yet — orphaned commits, side-fixes mid-merge, skipped tests with TODOs, drift between spec + code, manual workarounds, deferred validations. These die in operator memory if not filed.
Step 5's orphaned-work check compares accomplished vs open tickets. Step 6 goes further: it scans the session transcript + checkpoint for signals of untracked follow-ups that may not even be visible as "accomplished work" yet.
Inventory candidate gaps by re-reading the session transcript + the checkpoint just written. Categories to look for:
| Category | Signal |
|---|---|
| Test skipped with TODO | describe.skip(.*TODO|skip.*FIXME in committed diff |
| Migration number collision | two files with same NNN_ prefix in src/db/migrations/ |
| Hot-fix mid-merge | commit titled fix(*): ... against own session's merges |
| Spec not updated for shipped code | new migration / endpoint / schema change without matching B-spec edit |
| Config corrected without audit | account_id / project_id / region value flipped without consumer audit |
| Deferred validation | "smoke test pending after X applies" / "blocked on operator click" |
| Pre-existing bug papered over | shipped fix with # pre-existing, not introduced here note |
| Manual cleanup left for operator | <dir>.old-pre-cleanup / <file>.bak style preserved artifacts |
| Secrets near-miss | gitleaks fired on session content (worktree .env, etc.) |
| Dep bump that violates pin policy | edited HARD-pin requirement file |
Cross-check each candidate against open PM:
library:pm:query with status=To Do + In Progress for active project keySurface the gap list to operator BEFORE filing. Format:
## Gap detection — N untracked items
| # | Gap | Suggested ticket title | Labels |
|---|---|---|---|
| 1 | <symptom> | <imperative title> | follow-up,<area> |
Ask: "File these N tickets in <PROJECT_KEY>? (yes / cherry-pick: 1,3,5 / no)"
On operator yes / cherry-pick: call library:pm:create_task for each accepted gap. Description must include:
<this checkpoint slug> YYYY-MM-DDfollow-up + 1-2 area tags (e.g. db-migration, tf-audit, test-cleanup, security-audit)Append filed ticket IDs to the checkpoint file under a new section ## Gap follow-ups filed so the next session sees them at the same level as accomplished/blockers.
no-on-empty).1,3,5 to file a subset.## Open question: block — better tracked than forgotten.Report to user:
"Checkpoint written to
<path>. Memory updated. [N PM tasks updated.] The next session should start by reading that file. Anything to add?"
Wait for user confirmation.
When invoked with "resume" intent or when starting a new session:
Call library_checkpoint_list to show recent checkpoints with dates and status.
Present the list and let user pick one to load. If only one recent checkpoint exists, offer to load it directly.
Call library_checkpoint_read(path) to display checkpoint content.
Resume from the checkpoint's "What's Next" section. Read referenced files and re-establish context before proceeding with the next actions.
git status now, don't reuse earlier observations.Weight: Medium Estimated context cost: ~1500 tokens Subagent delegation: No
Checkpoints always live under the Reading Room. By default the file is written to <reading_room.path>/checkpoints/. An explicit checkpoints.path in library-config.yaml is allowed but must resolve under reading_room.path — anything else is rejected with an error. There is no silent fallback to the MCP server's CWD.
library:checkpoint:write — write structured checkpoint filelibrary:checkpoint:list — list recent checkpoints (for resume flow)library:checkpoint:read — read a specific checkpoint (for resume flow)library:pm:update — comment on PM tasks (if PM configured)library:pm:sync — check for orphaned work (if PM configured)library:pm:query — find existing tickets to cross-check candidate gaps (Step 6)library:pm:create_task — file new tickets for accepted gaps (Step 6)npx claudepluginhub sevenbelowllc/the-library --plugin libraryGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.