/goldfish:checkpointfrom goldfish
Saves developer context to Goldfish memory as a structured markdown checkpoint. Use when a consequential decision, a surprising failure, or unfinished work must survive the session, not for routine edits or commits
Ships in goldfish. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For user-level MCP registrations, pass workspace as the conversation's host-native absolute project root on every checkpoint, brief, and current-project recall call. In a git worktree, pass the worktree path, not the main checkout. Change it when you enter or leave a worktree. Omission and "current" work only with fixed absolute GOLDFISH_WORKSPACE or supported legacy Roots. recall({ workspace: "all" }) is explicit cross-project search, never a fallback; it is invalid for checkpoint and brief. Cwd, registry, and parent-walk candidates are suggestions only. If unbound, retry with {"workspace":""}.
Checkpoint when a future session will need what you know now:
next.A routine edit or commit needs no checkpoint; git already records it. When a checkpoint is warranted and a commit follows, write the checkpoint BEFORE the commit so the checkpoint file rides along in it.
Set next whenever work continues: it is the field a resuming session uses most. Space out checkpoints so each one captures a distinct piece of progress — one per logical milestone is the right cadence.
Your description becomes the markdown body of a .md file. Format it with structure — headers, bullet points, bold, code spans.
checkpoint({
workspace: "/absolute/path/to/project",
description: "## Implemented JWT refresh token rotation\n\nThe existing single-token approach was vulnerable to token theft.\n\n- **Approach:** Rotate tokens on each use, limiting the attack window\n- **Added:** `RefreshTokenStore` with atomic file writes and 7-day expiry\n- **Tests:** All 12 auth tests passing\n- **Impact:** Unblocks the session management PR",
tags: ["feature", "auth", "security", "jwt", "refresh-token", "token-rotation", "session-management"]
})
GOOD (structured markdown):
## Fixed race condition in checkpoint writes
Concurrent saves could corrupt a checkpoint file.
- **Root cause:** Non-atomic write pattern
- **Fix:** Switched to write-tmp-then-rename with file locking
- **Verified:** Reproduced with parallel test, confirmed fix
BAD (no structure): "Fixed race condition in checkpoint file writes where concurrent saves could corrupt a checkpoint file. Root cause was non-atomic write pattern."
BAD (no context): "Fixed file writing bug"
Large inline descriptions can break the tool call before Goldfish runs. Unescaped \ from Windows paths and real newlines corrupt the tool-call JSON, and the host rejects it.
description under ~2KB.description_file instead of description. Pass exactly one of the two. Absolute paths work only when the resolved file is inside the workspace; traversal and symlink targets outside it are rejected..memories/ (for example .memories/draft.md) — that directory is excluded from the captured changed-files list./ path separators, even on Windows. Do not draft in /tmp on Windows — Git Bash /tmp is invisible to native Windows tools.Use type to classify your checkpoint for better searchability:
type: "decision" → include decision + alternativestype: "incident" → include context + evidencetype: "learning" → include impactAll types benefit from symbols, next, and impact.
Populate symbols with the key functions, classes, or modules you touched (e.g. ["resolveWorkspace", "resolveActiveBrief"]). Intent-blame recall can filter on them later with recall({ workspace: "/absolute/path/to/project", symbol: "resolveWorkspace" }).
Recall search (BM25 ranking) indexes tags. Write them for discoverability — how would future-you search for this?
Category tags (1-2):
feature, bug-fix, refactor, docs, testauth, api, ui, database, buildwip, blocked, discovery, decisionConcept tags (3-6) — the important part:
Example: a checkpoint about implementing retry logic for payment webhooks:
["bug-fix", "payments"]["bug-fix", "payments", "retry", "resilience", "webhooks", "fault-tolerance", "idempotency"]Example: a decision to use WebSockets over SSE for real-time updates:
["decision", "api"]["decision", "real-time", "websockets", "sse", "push", "streaming", "notifications"]You don't need to include these — Goldfish captures them:
.memories/ excluded)git.files reflects the working tree at checkpoint time. When a commit follows, checkpoint first so captured paths match what you just changed; committed-only changes are not in the diff snapshot.
Focus your description on the MEANING, not the mechanics.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/briefSaves and maintains the durable Goldfish brief for a project (goal, constraints, success criteria, status). Use when starting multi-session work, capturing approved project direction, updating goals or constraints, or when the user asks for durable strategic context that should persist across sessions/brief-statusReports progress against the active Goldfish brief, with checkpoints and docs/plans as evidence. Use when the user asks for progress against current project direction, wants a status check on the active brief, or needs evidence-backed assessment across briefs, checkpoints, and docs/plans/handoffProduces a structured session-resumption summary for one project from the active brief, recent checkpoints, and git state. Use when returning to a project after time away, switching harnesses, or handing work off to another agentnpx claudepluginhub anortham/goldfish --plugin goldfish