/goalkeeper:goal-supervisorfrom goalkeeper
Mission-level supervisor that reads the user's charter and prior goal artifacts to decide whether to PROCEED (draft next goal), declare DONE, or ESCALATE. Invoke via /goal-supervisor after a goal completes.
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-supervisor skill — the mission-level layer sitting one above individual goals. Where the judge gates a goal against its DoD, the supervisor gates the mission against its charter and decides what goal to run next.
The gk CLI (python3 "${CLAUDE_PLUGIN_ROOT}/scripts/gk.py", abbreviated gk) owns all mission mechanics: initialization, brief assembly, verdict application, and every write to mission.json / mission-log.md / mission-completed.md (a PreToolUse hook blocks direct edits to those while the mission is live; the user's charter mission.md is never blocked). Your job: spawn the supervisor subagent and relay its verdict faithfully.
Mission ← .claude/mission.md (user-authored charter)
├─ Goal A (done, in _archive) ← goalkeeper contract — within-goal loop works
├─ Goal B (done, in _archive) ← drafted in response to A's output
└─ Goal … (drafted on demand by supervisor) ← what /goal-supervisor produces
The supervisor is NOT a chain. Chains commit to a linear sequence at chain-start. The supervisor decides direction adaptively based on what the prior goal actually produced.
gk status reports "No active goal").mission.md) — expected shapeThe charter is user-authored — the skill never auto-drafts missions. Sections (none syntactically required, all strongly recommended):
# Mission: <name>
## Objective
<one-paragraph statement of the mission's high-level intent>
## Success condition
<concrete, observable condition for "mission done." Like a goal's definition_of_done
but at the mission level. Specific. Measurable.>
## Constraints
<bulleted list of hard rules. The supervisor will refuse to propose goals
that violate these.>
## Legal next-goal shapes
<bulleted catalog of the kinds of goals this mission may need. The supervisor
draws from this list when proposing next-objectives. Each entry: name +
1-sentence description.>
## Done is not
<bulleted list of things that look like progress but don't satisfy the
success condition — equivalent to a contract's non_goals at the mission level.>
gk mission-init
gk refuses without a charter at .claude/mission.md, refuses while a goal is in flight, initializes mission.json + the mission log on first run (creating .claude/goals/ if this is the project's first goalkeeper use), and no-ops if the mission already exists. Relay any refusal to the user verbatim.
If gk mission-status shows the mission is escalated and the user is re-invoking the supervisor after addressing the required input, run
gk mission-resume --note "<how the user resolved the escalation>"
first — it flips the mission back to active and logs the resolution; without it, gk refuses further verdicts. Re-invoking /goal-supervisor after an escalation is the user's signal that they resolved it, but if their message doesn't say how, ask before resuming rather than inventing a resolution note.
gk mission-brief
This emits the complete supervisor prompt: charter verbatim, mission progress (goals completed + prior verdicts), the prior goal's state.json and compacted log (gk locates the most-recently-ended goal itself — live or archived; on a brand-new mission it frames the "first invocation" case), repo state, and the PROCEED/DONE/ESCALATE task block with the verdict format and escalate-over-proceed failure modes baked in. Do not edit the brief — comparable verdicts require identical prompt shape.
Use the Agent tool with subagent_type: general-purpose and the brief as its entire prompt. Fresh context is mandatory — the supervisor must not inherit the executing agent's reasoning.
Pipe the subagent's complete structured response (VERDICT / REASONING / NEXT_OBJECTIVE / DONE_EVIDENCE / ESCALATION, verbatim) into gk:
gk mission-verdict proceed|done|escalate <<'EOF' ... EOF
gk appends the mission-log entry, records the verdict and the prior goal's completion (result, rejection count), notes the verdict in the prior goal's own log, updates mission status, and on done writes the mission-completed.md snapshot. It also enforces one-invocation-per-goal-completion — a second verdict against the same prior goal is refused.
Then act on what it printed:
PROCEED — hand the printed NEXT_OBJECTIVE to /goalkeeper:goal-prep as the rough idea. The user reviews and approves/edits the drafted contract per the standard prep flow. Do NOT auto-activate — the user-review checkpoint at prep is the human-in-the-loop safety property and is mandatory. "PROCEED" means "propose and draft", never "activate". Tell the user: "Supervisor verdict: PROCEED. Drafting next goal: <objective>. Review the contract before activating."DONE — tell the user: "Supervisor verdict: DONE. Mission <name> complete. See .claude/mission-completed.md for the final snapshot."ESCALATE — tell the user: "Supervisor cannot decide. Required input: <printed escalation, verbatim>. Resolve the question and run /goalkeeper:goal-supervisor again (it resumes the mission via gk mission-resume and re-runs the verdict against the same prior goal), or /goalkeeper:goal-prep a specific next goal yourself."mission.md → gk halts. The skill does not auto-draft missions; that's user intent.mission.json / mission-log.md / mission-completed.md are hook-protected while the mission is live; the charter stays user-editable. If a prior verdict was wrong, the user can /goalkeeper:goal-clear the drafted-but-unactivated goal and re-run the supervisor — both verdicts stay in the log./goalkeeper:goal-chain.Success condition section, it isn't the right tool yet.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.npx claudepluginhub bonfire-systems/goalkeeper --plugin goalkeeperOther plugins' skills for the same job