用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Morrison-Lab/ai-config --skill checkpoint命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | checkpoint |
| description | Save mid-task snapshot. |
| user-invocable | true |
| allowed-tools | ["Bash","Read","Write"] |
Bank a durable snapshot of where a long task stands without stopping the
session — the user keeps working, or the agent keeps going, right after
writing it. This is the lightweight, frequent counterpart to
handoff: handoff is a heavier session-end/pause
snapshot (branch state, unpushed commits, running jobs, a PR note);
checkpoint is a quick "here's what's been decided and done so far,"
written mid-task so a crash, a context compaction, or a session restart
doesn't lose the plan.
ScheduleWakeup)Skip it for short tasks with no distinct phases — there's nothing worth snapshotting yet.
compress-session and handoffThree different triggers, three different jobs — don't conflate them:
| Skill | Trigger | Session continues? | What it captures |
|---|---|---|---|
checkpoint | Deliberate, mid-task | Yes | Plan state, decisions, next actions |
compress-session | Approaching auto-compaction | Yes (context shrinks) | A structured distillation of the whole conversation so far |
handoff | Ending/pausing the session | No | Full resumption state: branch, unpushed commits, running jobs, PR note |
A checkpoint note is a strict subset of what handoff captures — it skips
the branch/job/PR-note mechanics because the session isn't ending. If you're
about to genuinely stop, run handoff instead (or in addition, if the
checkpoint predates the stop by a while and the state has moved on).
Capture, concretely, in a short note (not a session history — this is a snapshot, not a transcript):
path:line pointers,
not just names), commits made, PRs/issues opened.Save it as a topic file in the project's auto-memory directory (the same
one handoff/memorize write to, and Claude's own auto memory uses for
MEMORY.md):
~/.claude/projects/<project-slug>/memory/checkpoint-<slug>.md. Unlike
MEMORY.md itself, a topic file isn't auto-reloaded after compaction (only
MEMORY.md's first 200 lines/25KB are) — that's fine here, since a
checkpoint's job is resuming after a deliberate pause, not surviving
mid-session compaction (that's compress-session's job). Reuse (update in
place) an existing checkpoint file for the same task rather than piling up
one file per checkpoint — a checkpoint supersedes the last one for the same
task, it doesn't append to a log.
One or two lines: what was checkpointed, and where. This isn't a session wrap-up, so don't produce a long report — the point is that it happened, not a recap of it.
handoff — the heavier session-end/pause counterpart; see the
distinction table above.compress-session — the pre-auto-compaction counterpart; see the
distinction table above. The two can coincide (a checkpoint written just
before compaction hits also happens to serve as compression fodder), but
they're triggered independently.wrap-up — closes out the whole session (every open PR/issue/branch)
plus a UMS pass; checkpoint is scoped to the current task's plan state,
not the whole session's state.memorize — general-purpose fact persistence; checkpoint is the
specialized "resumable task state" case, structured like handoff's note
rather than a single durable fact.handoff — it doesn't need branch/job/PR
state; if you need that too, run handoff.