/goalify:goalify [interactive] <task or draft condition>from goalify
Rewrites rough tasks into judgeable /goal completion conditions: end state, proof command, constraints, blocker, and turn cap. Invoke with /goalify <task> or /goalify interactive.
Ships in goalify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write the line the user pastes after /goal: the condition, and only the
condition. The work it describes is the next session's, not yours.
A /goal condition is read twice. Claude reads it as the directive of the next
turn. A small evaluator model reads it after every turn, against the
conversation alone: it runs no command and opens no file, so it can only judge
what Claude has printed. The condition is written for that second reader. A
clause the evaluator cannot settle from the transcript is a clause that never
resolves, and the loop runs until the turn cap or the user kills it.
$ARGUMENTS
A draft condition as input is rewritten clause by clause, keeping its intent and replacing what the evaluator could not settle.
interactive as the first word: settle each clause below with AskUserQuestion,
one at a time, the recommended answer first; inspect the repository instead of
asking when it holds the answer. Otherwise infer, and ask only when two readings
of the task give two different end states.
End state. One measurable fact that holds when the work is done, in the
present tense: a test result, an exit code, a file count, an empty queue, a
score at or above a threshold. Not an activity ("migrate the module") but its
trace ("every call site of oldApi is gone and the build passes"), and not an
order ("make the case pass") but the fact ("the case passes 20 runs"). Several
facts joined by "and" are one end state; two unrelated ones are two goals, run
in sequence.
Proof. The command Claude runs and the exact line of its output that shows
the end state, printed in the conversation: "bun test --parallel exits 0 and
its summary shows 0 fail", not "tests pass". Take the command from the
repository's own checks when it has them (package.json scripts, AGENTS.md,
CI config); write the proof clause first and derive the end state from it when
the task is vague. The proof is the command's own summary line, never an
echoed exit code (Gotchas).
Constraints. What must not change on the way, and what closes the shortest path to the end state that is not the work. The generic list (test files unchanged, no skipped test, no lint rule relaxed, no new dependency, the pinned branch) rarely closes the shortcut this task invites: take the proof as written and ask what the cheapest action is that would make it print its line. One answer applied to every item, a substitute for the tool the task names, a generated file written by hand, a declaration checked where the thing should be exercised, the hard question left "not measured". Close each in the line, by a constraint or by output that shows, beside the summary line, what was done item by item: the evaluator cannot otherwise tell the work from the shortcut. A fact the task exists to establish is never met by "unknown"; when the session cannot measure it, that is the blocker. Approval before anything destructive or outward-facing (push, delete, send, install) is a constraint, not a note.
Blocker. The evaluator returns met, not met, or impossible; a stuck run reads as "not met" forever. Write the blocked outcome as a second end state, joined to the first by "or": "or a blocker outside Claude's control (a credential, an external service, a permission the session cannot get, a decision only the user can take) is named in the conversation with its cause and what was tried". An instruction ("if blocked, report it") is not an end state (Gotchas).
Cap. A turn or time bound: "or stop after 20 turns and list what remains". The evaluator judges it from Claude's own count, so it is soft; it is still the only bound the condition carries.
/goal <end state>, shown by <proof>, or <blocker> is named with its cause and what was tried. <constraints>. <cap>.
Plain sentences, no labels, no headings: the whole text is the condition, and
the evaluator weighs every word of it. Under 4000 characters, the harness
limit. Context the worker needs but the evaluator does not (why the task
exists, where to start, what was tried) goes in a separate message the user
sends before /goal; say so when there is such context, and keep it out of
the condition.
The response is the /goal line, unfenced and ready to paste, then one blank
line, then at most two lines: the context message to send first, when one is
needed, and the goal that should run before this one, when the task splits.
When the repository contradicts the task (a version already bumped, a file
already gone), one line before the condition says what was found, and the
condition is written on what is true.
When the task has no end state a transcript can show (a judgment of taste,
"production-ready", "cleaner"), say so in one sentence and offer the closest
measurable proxy or a Stop hook; do not write a condition that cannot resolve.
The sentence comes first, before any line: without it the user takes the proxy
for the task. A proxy written as a /goal line is complete, on defects or
measures named from the repository; a placeholder the user must fill in is
not a condition.
Before answering, read the line once against the shape: the proof command and its output line, the "or … is named with its cause" clause, the cap. A short task drops one of them as easily as a long one.
Each entry was measured on a real /goal run; add one when a condition fails
in a new way.
; echo $? after the proof command. It makes the command a compound one,
the permission check prompts on the echo, a headless run has nobody to
answer, and the proof never prints. Name the command's own summary line.CLAUDE.md, the diagnosis the skill formed while reading. They
are worker context; they go in the message before /goal. So are the facts
of this session's environment (a tool missing here, a check that fails for a
local reason), the reason a check is left out, and where the worker should
look. A rule that closes a shortcut is the one thing that must stay in the
line: only the line reaches the evaluator. The line states what holds and
what must not change; it explains nothing.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bengous/claude-code-plugins --plugin goalify