Skip to content
Agent Memory
Skill

/bm-checkpoint

Save a deliberate work checkpoint to Basic Memory with the story, changed files, verification, decisions, blockers, and the next action. Use when the user asks to checkpoint, wrap up, hand off, or remember the state of the work.

From plugin
basic-memory
4.6k32 skills5 commands1 MCP

Claude Code

$ npx -y skills add basicmachines-co/basic-memory --skill bm-checkpoint --agent claude-code

SKILL.md

bm-checkpoint.SKILL.md
name: bm-checkpoint
description: Save a deliberate work checkpoint to Basic Memory with the story, changed files, verification, decisions, blockers, and the next action. Use when the user asks to checkpoint, wrap up, hand off, or remember the state of the work.
argument-hint: (optional short topic for the checkpoint title)

Checkpoint Claude Work

Create a durable handoff note for the current work. Use this when the user asks to checkpoint, wrap up, hand off, remember the state of the work, or before a long context transition. This is the deliberate, high-signal counterpart to the automatic PreCompact checkpoint.

When no project is pinned, discover projects with `bm_project_list()` and pass the selected project's external ID as `project` on note/search calls. With several addressable projects, these calls require an explicit scope even when a default is configured.

Gather

Resolve config: read the `basicMemory` block with the same precedence the hooks use. For the user-level base, append `settings.json` to the literal value of `CLAUDE_CONFIG_DIR` when that environment variable is present; do not trim it, expand `~`, or treat an empty value as unset. Use `~/.claude/settings.json` only when the variable is absent. Then the project's `.claude/settings.json` and `.claude/settings.local.json` override it per key:

  • `primaryProject`, optional; discover and explicitly select the listed default or sole project when absent
  • `captureFolder`, default `sessions`
  • `placementConventions`, optional
  • `sessionProfile`, default `general`
  • `repository`, required when `sessionProfile` is `coding`

Apply the `bm-writing` skill before drafting the note.

Gather evidence:

  • the original problem or goal and why it mattered
  • the approach taken and why it solves the problem
  • the current system state and practical impact
  • tradeoffs, sharp edges, useful simplifications, and intentionally parked work
  • the durable lesson, if one exists — what future work should know or avoid
  • `git status --short`
  • current branch
  • repository root and current working directory
  • current Git SHA
  • current pull request number, title, URL, state, base, and head when one exists
  • changed files you touched
  • tests or checks actually run
  • failures or skipped checks
  • decisions made in this session
  • unresolved blockers
  • next action
  • current username, hostname, and timestamp
  • exact host-provided session identifier, when available; never infer one

Do not claim a test passed unless you ran it or the user supplied the result.

Write

A checkpoint is a durable handoff, not a status dump or commit-by-commit changelog. Tell the story for a human or agent returning later.

Write the note with `bm_write`, routed to `primaryProject` (pass it as `project`, which accepts a name, workspace-qualified name, or `external_id` UUID). For the `general` profile:

  • `title`: `Claude checkpoint - <short topic>`
  • `directory`: configured `captureFolder`
  • `tags`: `["claude", "checkpoint"]`
  • `note_type`: `session`
  • `metadata` (frontmatter):
  • `status: open`
  • `project: <primaryProject if known>`
  • `cwd: <current cwd>`
  • `started: <current timestamp>`
  • `username: <current username>`
  • `hostname: <current hostname>`
  • `capture: deliberate`
  • `agent: claude-code`
  • `session_id: <exact host-provided session id>`, when available

New notes use `agent` and `session_id`, not `claude_session_id`. Existing notes with the legacy field remain valid; do not rewrite them. Session identity is the pair of agent and session ID, never a bare ID shared across hosts.

For the `coding` profile, write `note_type: coding_session` (frontmatter `type: coding_session`) and use the same common frontmatter plus these schema-required fields:

  • `repository: <confirmed stable repository identifier>`
  • `repo_root: <git rev-parse --show-toplevel>`
  • `cwd: <current cwd>`
  • `branch: <git rev-parse --abbrev-ref HEAD>`
  • `git_sha: <git rev-parse HEAD>`

When the current branch has a pull request, also add the typed optional fields `pull_request_number`, `pull_request_title`, `pull_request_url`, lowercase `pull_request_state`, `pull_request_base`, and `pull_request_head`. Resolve the pull request with a read-only GitHub query (e.g. `gh pr view --json ...`); omit those fields when no PR exists. Write the number as a quoted string, for example `pull_request_number: "123"`, so exact metadata queries behave consistently across storage backends. Never infer or copy repository/PR identity only from conversation text. Stop if the required coding fields cannot be proven.

Begin the body with `# <exact note title>`.

Use these sections, omitting optional ones that add no value:

  • `## Summary`: one concrete sentence that does not merely repeat the title
  • `## Story`: problem -> approach -> current state and impact in substantive prose
  • `## Project Memory`, when the work surfaced a durable lesson future readers

need — the constraint discovered, the boundary made explicit, the shortcut to avoid

  • `## Changed Files`, when paths are useful for resuming
  • `## Verification`, for checks actually run and their outcomes
  • `## Observations`
  • `## Relations`, when the session has an obvious graph target

Use observations to distill durable facts for structured recall rather than duplicating every narrative sentence:

  • `[result]` for concrete outcomes
  • `[decision]` for each decision made or preserved
  • `[blocker]` for each unresolved blocker
  • `[next_step]` for the next concrete action; include at least one
  • `[verification]` or `[changed_file]` only when the item is itself important

project memory, not merely supporting detail

Do not create separate Decisions, Blockers, or Next Action sections with plain bullets. Omit empty categories instead of writing placeholder text such as "None."

Relations are not observations. Put them under `## Relations` using Basic Memory relation syntax, for example `- relates_to [[Exact existing note title]]`. Never write `[

Read more
@basicmachines-co
Ships withbasic-memory

AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN

4.6k32 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.6k
Star history of basicmachines-co/basic-memory on GitHub, a chart by star-history.com

Other skills on basic-memory.

bm-decide

bm-decide

Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem12d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

hindsight12d60k
@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about bm-checkpoint.

Which coding agents can use bm-checkpoint?
bm-checkpoint installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.