From lore
Mid-session checkpoint — harvest current in-context state into the active session note's standard sections (What we did / Decided / Deferred / Learned / Open questions) and commit. Status stays active. Use for /checkpoint, "checkpoint before clearing", "snapshot the session", "save state before /clear", "preserve context". Offer proactively when a meaningful chunk just completed in a long-running session and the user is about to context-switch or /clear.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lore:checkpointThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Persists in-context state into the session note *now* so it survives `/clear` or auto-compaction. Does NOT finalize: status stays `active`, no `ended:` timestamp.
Persists in-context state into the session note now so it survives /clear or auto-compaction. Does NOT finalize: status stays active, no ended: timestamp.
lore stats # confirms vault + worktree
Find the active session note (resolves this session's note by id, falling back to the worktree name — prints a vault-relative path):
lore session-note
Read it:
cat "$LORE_VAULT/$(lore session-note)"
Check frontmatter status. If already complete or shelved: stop and tell the user.
Draft tight, append-ready bullets for each section, covering only work since the last checkpoint (anything not already in the note). Synthesize from the conversation — don't re-read the full transcript.
Sections:
Skip any section with nothing new.
Compact summary before writing:
Checkpoint plan for `sessions/<file>`:
Appending to:
- What we did (N new bullets)
- Decided (N new bullets)
- Learned (N new bullets)
OK to proceed?
Trivial checkpoints (≤3 total bullets, all in What we did) may fast-path without asking.
For each section with new content:
lore patch "$LORE_VAULT/$(lore session-note)" "<Section>" --text "<bullets>"
One call per section. Do NOT touch frontmatter. Do NOT touch sections reserved for /finished (mini retrospective, open questions unless you have new ones).
lore sync --message "checkpoint(<worktree>): mid-session state"
Checkpointed N bullets to `sessions/<file>` and committed the vault.
Run `/clear` to wipe context. When you later run `/finished`, it will read this
note and see the checkpointed content alongside whatever happens post-clear.
You cannot invoke /clear yourself — remind the user to run it.
complete. No-op with a message.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub tduffield/lore --plugin lore