/goalkeeper:goal-prepfrom goalkeeper
Interactively drafts a goalkeeper contract (contract.md) with explicit objective, definition-of-done, validator command, and non-goals. Used when /goal-prep is invoked or a goal has no contract yet.
Ships in goalkeeper. 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.
You are operating the goal-prep skill. Your job is to turn a rough idea into a precise, executable goalkeeper contract. A bad contract is goalkeeper's #1 failure mode — your work here is the highest-leverage step in the whole flow.
args (rough idea, may be empty)Before drafting anything, briefly survey the repo to ground the contract in reality:
Spend ~2–5 read-only tool calls here. Do not edit anything.
Use AskUserQuestion to collect each field. Pre-fill recommendations from your recon so the user only has to confirm or redirect. Ask in this order:
jest.") with quantitative ("≥20% test runtime improvement"). Multi-select with edit. DoD is what the judge checks — be specific, no fluff.pnpm test && pnpm lint). Confirm or override.every 5 file edits OR every 20 minutes). Confirm or override.subagent. Offer inline only if user explicitly wants cheaper iteration (note: inline is advisory only, not gate-grade).Write .claude/goals/<slug>/contract.md with frontmatter from the answers above, plus a body containing:
## Context — 1–3 paragraphs grounding the work
## Files to know — bullet list of relevant paths from recon
## Constraints — anything the agent must NOT do that isn't already a non-goal
## Anti-placeholder rule — copy this verbatim:
DO NOT stub, mock, skip, or
.todowork to make the validator pass. If something cannot be done, surface it in the next checkpoint and stop. Skipped work is an automatic judge rejection.
After writing the contract, capture the validator baseline:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/gk.py" baseline <slug>
This runs the validator once and records the pre-existing result (and failing paths, if any) to baseline.json; gk activate merges it into the goal's state so the judge can subtract pre-existing failures from the goal's account. If the naive failing-path extraction missed paths you can see in the output, re-run with --paths a,b,c to record them explicitly.
After writing, show the user the contract file path and the rendered frontmatter. Ask one final question via AskUserQuestion: "Activate this goal now?" with options:
/goal "<objective>" later to start.If the user chose to start, immediately re-enter the goal skill set-mode flow at step 3 (skip prep since contract now exists).
make test if there's no Makefile. Run it once during prep to confirm it executes (not necessarily that it passes — just that it runs).gk baseline <slug> (see step 3). The judge uses it to distinguish goal-caused validator failures from pre-existing failures on files the goal never touched. This is the mechanism that lets a goal proceed when the validator is partly polluted by pre-existing debt — without it, every checkpoint fails for reasons unrelated to the work..claude/goals/<slug>/ already exists, ask the user whether to overwrite or pick a new slug. Never silently overwrite.What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/goalSet or check status of a durable goalkeeper goal. Use this skill when the user invokes /goal "<objective>" to start a new contract-driven goal, or /goal with no arguments to see status of the currently active goal. Goalkeeper goals run autonomously across many turns with checkpoint validation and judge-gated completion./goal-chainRun a linear sequence of goalkeeper goals where the judge gates progression between them. Use when the user invokes /goal-chain "<file>" to start a chain. Chain bookkeeping (cursor, approvals, activation) is executed by the gk CLI./goal-clearStop and archive the currently active goalkeeper goal. Use when the user invokes /goal-clear to abandon or finalize a goal. Files are moved to .claude/goals/_archive/, never deleted./goal-judgeThe gate. Reviews the active goalkeeper goal against its definition-of-done and either approves (advance / mark done) or rejects (with a structured fix-list). Auto-fired by the goal skill when the validator passes (inline mode), or invoked by the goal-chain orchestrator after executor subagent returns (subagent mode). Can also be invoked on demand via /goal-judge for advisory review./goal-pausePause the currently active goalkeeper goal without losing state. Use when the user invokes /goal-pause. The goal can later be resumed with /goal-resume./goal-resumeResume a paused or needs_human goalkeeper goal. Use when the user invokes /goal-resume after they've manually unblocked the goal (e.g. fixed a problem the judge flagged).npx claudepluginhub bonfire-systems/goalkeeper --plugin goalkeeperOther plugins' skills for the same job