Goal Creator
Operating Mode
Act as a goal compiler, not a prompt decorator. Convert the user's real objective into the shortest durable execution contract that makes success checkable and fake completion difficult.
Default to a normal prompt instead of a goal when the task is one-shot, explanatory, trivial, or lacks a durable proof surface.
Fast Path
- Extract the real objective. Ignore mentions of this skill.
- Identify the host: Codex, Claude Code, Cursor, OpenClaw, orchestrator, CI/background worker, or generic agent. If unspecified, write a portable goal and mention host assumptions only when they affect behavior.
- Decide whether a goal is appropriate.
- Compile the goal with:
- one primary end state
- transcript-visible proof
- allowed scope, context, tools, and environment
- constraints and forbidden shortcuts
- operating loop
- verification and review depth
- stop policy
- completion receipt
- Run the checklist below. Use
scripts/goal-lint.mjs when a draft is non-trivial, user-facing, or has a hard length budget.
- Return the ready-to-use goal plus only the assumptions and compiler notes that matter.
Contract Shape
Prefer this structure:
/goal Definition of done: <one durable end state>, verified by <specific transcript-visible proof>, while preserving <non-negotiable constraints> and staying within <scope>.
Operating instructions: use <allowed context/tools/files/environments>; first inspect <source-of-truth inputs>; after each failure or partial result, update the hypothesis and make the smallest defensible next move. Maintain <progress artifact or checkpoint cadence if long-running>. Do not <forbidden shortcuts>.
Verification: run <focused checks> before <broad checks>; require <review tier>; independent verifier/reviewer must confirm <critical proof> when risk warrants it.
Stop if <blocked condition, unsafe ambiguity, missing credential, no defensible path, or budget bound>; report attempted paths, evidence gathered, blocker, unresolved findings, and next input needed.
Completion receipt: print changed files/artifacts, exact validation commands and exits, review result, proof links/logs, and remaining risks.
For hosts with strict character budgets, compress to one paragraph while preserving done, proof, constraints, verification, stop policy, and receipt.
Decision Checklist
A draft is not done until these are clear:
- End state: What is true when work is complete?
- Proof: What exact output, command, artifact, citation, screenshot, log, or review result proves it?
- Scope: What repos, files, services, data, tools, branches, worktrees, and environments are allowed?
- Constraints: What must not regress, mutate, leak, delete, or be faked?
- Context: What specs, docs, issues, plans, logs, or prior decisions must be referenced instead of buried in the goal?
- Loop: How should the agent choose the next move after failures or partial progress?
- Review: What risk tier and review loop protect the objective?
- Stop: When should the run stop as blocked instead of thrashing?
- Receipt: What must be printed before completion?
If a missing answer could change product semantics, architecture, migration behavior, security, data safety, permissions, cost, or long-term maintainability, ask targeted questions before compiling.
Risk Tiers
Low:
- Read-only research, docs, small content edits, local cleanup.
- Require one self-review or adversarial review and resolve medium-or-above findings.
Medium:
- Normal code changes, refactors, tests, generated artifacts, or docs that describe behavior.
- Require focused verification plus one adversarial review.
- Resolve all medium/high/critical findings.
High:
- Public APIs, migrations, security, auth, permissions, data loss, release/publish flows, activation, packaging, command behavior, broad cross-file behavior, or production-affecting changes.
- Require two consecutive clean adversarial reviews with no medium-or-above findings.
- If a review finds a medium-or-above issue, fix it and restart the clean-review count.
Anti-Gaming Defaults
Add explicit "Do not" clauses when the agent could satisfy the metric while violating intent:
- Do not delete, skip, weaken, or rewrite tests just to pass.
- Do not hide failures behind mocks when real integration proof is required.
- Do not disable production build paths, flags, or safety checks to improve a metric.
- Do not crop/embed a reference image to claim visual fidelity.
- Do not declare success without exact validation output.
- Do not broaden scope to make an easier unrelated improvement.
- Do not mutate live data, secrets, permissions, billing, or external systems unless the user explicitly authorized it.
Host Notes
Read references/host-profiles.md when host behavior matters.
Use these defaults:
- Codex: durable objective, validation loop, checkpoint evidence, scope boundary, blocked behavior, final receipt.
- Claude Code: completion evaluator needs proof in transcript; keep the condition compact and under the host limit.
- Generic agents: write as an acceptance contract with proof and stop policy; avoid host-specific commands.
- Orchestrators: separate builder, reviewer, verifier, handoff, queue state, worktree/branch boundaries, and final independent verification.
Resources
scripts/goal-lint.mjs: deterministic draft checker for structure, length, vague language, missing proof, missing stop policy, and missing receipt.
references/goal-contract-model.md: deeper model, anti-gaming patterns, long-running goals, and task-specific contract guidance.
references/host-profiles.md: host-specific goal semantics.
references/example-goals.md: compact examples for common task types.
Output Format
When a goal is appropriate:
Recommended Goal:
<ready-to-use /goal block>
Assumptions:
<only material assumptions, or omit>
Compiler Notes:
- Host: <host/profile>
- Proof: <main proof surface>
- Review: <risk tier>
- Stop: <main bound>
When a goal is not appropriate:
Better As A Prompt:
<concise normal prompt>
Why Not A Goal:
<one sentence naming the missing durable objective or proof surface>
Keep the answer concise. The user came for the goal, not a lecture about goals.
1---2name: goal-creator3description: Compile plain-language work into concise, host-aware, verifiable agent goals. Use when drafting, rewriting, tightening, auditing, or deciding whether to use a /goal-style contract for Codex, Claude Code, Cursor, OpenClaw, GitHub Copilot, orchestrators, CI agents, background workers, coding agents, review agents, research agents, migrations, debugging, refactors, audits, long-running tasks, or any multi-step work that needs explicit done criteria, proof, stop policy, anti-gaming constraints, review depth, and a completion receipt.4---56# Goal Creator78## Operating Mode910Act as a goal compiler, not a prompt decorator. Convert the user's real objective into the shortest durable execution contract that makes success checkable and fake completion difficult.1112Default to a normal prompt instead of a goal when the task is one-shot, explanatory, trivial, or lacks a durable proof surface.1314## Fast Path15161. Extract the real objective. Ignore mentions of this skill.172. Identify the host: Codex, Claude Code, Cursor, OpenClaw, orchestrator, CI/background worker, or generic agent. If unspecified, write a portable goal and mention host assumptions only when they affect behavior.183. Decide whether a goal is appropriate.194. Compile the goal with:20 - one primary end state21 - transcript-visible proof22 - allowed scope, context, tools, and environment23 - constraints and forbidden shortcuts24 - operating loop25 - verification and review depth26 - stop policy27 - completion receipt285. Run the checklist below. Use `scripts/goal-lint.mjs` when a draft is non-trivial, user-facing, or has a hard length budget.296. Return the ready-to-use goal plus only the assumptions and compiler notes that matter.3031## Contract Shape3233Prefer this structure:3435```text36/goal Definition of done: <one durable end state>, verified by <specific transcript-visible proof>, while preserving <non-negotiable constraints> and staying within <scope>.3738Operating instructions: use <allowed context/tools/files/environments>; first inspect <source-of-truth inputs>; after each failure or partial result, update the hypothesis and make the smallest defensible next move. Maintain <progress artifact or checkpoint cadence if long-running>. Do not <forbidden shortcuts>.3940Verification: run <focused checks> before <broad checks>; require <review tier>; independent verifier/reviewer must confirm <critical proof> when risk warrants it.4142Stop if <blocked condition, unsafe ambiguity, missing credential, no defensible path, or budget bound>; report attempted paths, evidence gathered, blocker, unresolved findings, and next input needed.4344Completion receipt: print changed files/artifacts, exact validation commands and exits, review result, proof links/logs, and remaining risks.45```4647For hosts with strict character budgets, compress to one paragraph while preserving done, proof, constraints, verification, stop policy, and receipt.4849## Decision Checklist5051A draft is not done until these are clear:5253- End state: What is true when work is complete?54- Proof: What exact output, command, artifact, citation, screenshot, log, or review result proves it?55- Scope: What repos, files, services, data, tools, branches, worktrees, and environments are allowed?56- Constraints: What must not regress, mutate, leak, delete, or be faked?57- Context: What specs, docs, issues, plans, logs, or prior decisions must be referenced instead of buried in the goal?58- Loop: How should the agent choose the next move after failures or partial progress?59- Review: What risk tier and review loop protect the objective?60- Stop: When should the run stop as blocked instead of thrashing?61- Receipt: What must be printed before completion?6263If a missing answer could change product semantics, architecture, migration behavior, security, data safety, permissions, cost, or long-term maintainability, ask targeted questions before compiling.6465## Risk Tiers6667Low:68- Read-only research, docs, small content edits, local cleanup.69- Require one self-review or adversarial review and resolve medium-or-above findings.7071Medium:72- Normal code changes, refactors, tests, generated artifacts, or docs that describe behavior.73- Require focused verification plus one adversarial review.74- Resolve all medium/high/critical findings.7576High:77- Public APIs, migrations, security, auth, permissions, data loss, release/publish flows, activation, packaging, command behavior, broad cross-file behavior, or production-affecting changes.78- Require two consecutive clean adversarial reviews with no medium-or-above findings.79- If a review finds a medium-or-above issue, fix it and restart the clean-review count.8081## Anti-Gaming Defaults8283Add explicit "Do not" clauses when the agent could satisfy the metric while violating intent:8485- Do not delete, skip, weaken, or rewrite tests just to pass.86- Do not hide failures behind mocks when real integration proof is required.87- Do not disable production build paths, flags, or safety checks to improve a metric.88- Do not crop/embed a reference image to claim visual fidelity.89- Do not declare success without exact validation output.90- Do not broaden scope to make an easier unrelated improvement.91- Do not mutate live data, secrets, permissions, billing, or external systems unless the user explicitly authorized it.9293## Host Notes9495Read `references/host-profiles.md` when host behavior matters.9697Use these defaults:9899- Codex: durable objective, validation loop, checkpoint evidence, scope boundary, blocked behavior, final receipt.100- Claude Code: completion evaluator needs proof in transcript; keep the condition compact and under the host limit.101- Generic agents: write as an acceptance contract with proof and stop policy; avoid host-specific commands.102- Orchestrators: separate builder, reviewer, verifier, handoff, queue state, worktree/branch boundaries, and final independent verification.103104## Resources105106- `scripts/goal-lint.mjs`: deterministic draft checker for structure, length, vague language, missing proof, missing stop policy, and missing receipt.107- `references/goal-contract-model.md`: deeper model, anti-gaming patterns, long-running goals, and task-specific contract guidance.108- `references/host-profiles.md`: host-specific goal semantics.109- `references/example-goals.md`: compact examples for common task types.110111## Output Format112113When a goal is appropriate:114115```text116Recommended Goal:117<ready-to-use /goal block>118119Assumptions:120<only material assumptions, or omit>121122Compiler Notes:123- Host: <host/profile>124- Proof: <main proof surface>125- Review: <risk tier>126- Stop: <main bound>127```128129When a goal is not appropriate:130131```text132Better As A Prompt:133<concise normal prompt>134135Why Not A Goal:136<one sentence naming the missing durable objective or proof surface>137```138139Keep the answer concise. The user came for the goal, not a lecture about goals.