goal-contract-writer

goal-contract-writer is a skill for Claude Code, Codex from MAX0MAX/goal-driven. It costs 43 tokens per session (794 once invoked), scanned A, original, MIT.

A writing guide that turns an unclear task into a Goal Contract covering the goal, scope, success criteria, evidence, and limits.

In plain words
What is it for?
Use it to clarify tasks before planning or execution, especially when another person or system must carry out and verify the work.
Why use it?
It helps prevent work from starting with an unclear outcome or undefined way to judge success.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the goal-driven plugin — 3 skills shipped together

Good fit Use it to clarify tasks before planning or execution, especially when another person or system must carry out and verify the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/max0max/goal-driven/goal-contract-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MAX0MAX/goal-driven --skill goal-contract-writer
Clone the repo
git clone --depth 1 https://github.com/MAX0MAX/goal-driven

Made for: Claude Code, Codex.

Or install goal-driven, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for goal-contract-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/max0max/goal-driven/goal-contract-writer.svg)](https://agentmods.dev/skills/max0max/goal-driven/goal-contract-writer)
Your own site
<a href="https://agentmods.dev/skills/max0max/goal-driven/goal-contract-writer"><img src="https://agentmods.dev/badge/skills/max0max/goal-driven/goal-contract-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00794
Opus 5 $0.00022 $0.00397
Sonnet 5 $0.00009 $0.00159
Haiku 4.5 $0.00004 $0.00079

Measured 7d ago against content hash 46db921d720a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

goal-contract-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/goal-contract-writer/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal Contract Writer

Overview

goal-contract-writer turns ambiguous work into a standard Goal Contract.

Clarify only what is required to define the work. Then return the canonical contract. Conversation is not the product.

This skill does not implement, run, or manage a Goal-Driven agent loop. It defines the upstream contract that a loop, workflow engine, host goal system, or human operator can execute and verify.

goal-contract-writer is the only normal user-facing entrypoint. The paired goal-contract-verifier skill exists for runtimes or operators that need fresh-subagent verification of execution state, but verifier behavior is not part of this skill's required output.

When to Use

Use this skill when:

  • the request has a concrete outcome but starts ambiguous
  • the next agent, system, or person needs a stable goal artifact
  • success must be judged by observable evidence

Do not use it for open-ended ideation or as a replacement for execution workflows.

Core Output

Produce exactly one canonical artifact:

  1. Goal Contract

Goal Contract must contain exactly these fields:

  • goal
  • scope
  • success_criteria
  • evidence
  • guardrails

Do not add runtime verdicts, adapter metadata, or workflow prose to the contract body.

Use references/canonical-goal-contract.md for the canonical contract schema.

Contract Generation Flow

  1. Clarify until goal and scope can be written without guesswork.
  2. Write success_criteria that fully cover the goal and can be checked without subjective judgment.
  3. Write matching evidence that proves or disproves each criterion without adding hidden acceptance rules.
  4. Record guardrails that prevent scope drift, unsafe assumptions, or missing approvals.
  5. Return the canonical Goal Contract and stop.

Use references/contract-elicitation-protocol.md for clarification rules and examples/ for concrete model contracts.

Hard Rules

  • Do not replace the contract with free-form advice or host-specific prose.
  • Do not use subjective completion language.
  • Do not add verifier workflow, execution routing, owners, priorities, or next steps to the canonical contract.
  • Do not let evidence smuggle in acceptance rules that are missing from success_criteria.
  • Do not let any adapter redefine the canonical contract fields.
  • Do not continue into planning or execution unless the user explicitly starts a separate task.
  • Keep the contract execution-neutral.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 92 lines · 43 tokens per session scan A 46db921d720a

Subscribe to this mod's changes

goal-contract-writer is a skill published in the GitHub repository MAX0MAX/goal-driven (5 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 794 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

stats

Query or render the state of the scattered kit/tide/tg-cleanup/learned ledgers (the dwarves-kit gate/proof/telemetry corpus, tide file-move state, tg-cleanup snapshots, the learning ledger), and detect + propose backlog rows off anomalies in that state. Use when the operator asks to SEE ledger state -- "show me the…

dwarvesf/dwarves-kit · 367 tokens

topology-drift

Maintainer-only (dwarves-kit repo dev only). Use to audit THIS KIT's OWN feature estate against its path map, "run the topology-drift loop", "is the workflow path map still complete", "does every feature appear in workflow-paths", "feature inventory drift", or after a batch of merges that added/removed commands…

dwarvesf/dwarves-kit · 250 tokens

observe

Query and render the kit's control plane from an agent session. Use when asked about the fleet's runs, gate verdicts, conformance, spend/tokens/cache economics, the cognitive-debt score, replaying a recorded run, benchmark results, or building/refreshing the observability dashboard. Trigger phrases include…

dwarvesf/dwarves-kit · 145 tokens

get-api-docs

Fetch curated API documentation using Context Hub (chub) before coding against any external API. Use when the task involves calling a third-party API (Stripe, OpenAI, Airwallex, Notion, etc.) to prevent hallucinated parameters and deprecated endpoints.

dwarvesf/dwarves-kit · 57 tokens

self-audit

Self-audit this skills repo against CLAUDE.md invariants, the artifact contract, and README/CLAUDE.md/docs sync via three parallel read-only subagents. Local meta-skill — independent of the /task: pipeline.

SpaiR/task-pipeline · 52 tokens

grill

Interrogate a plan or decision one question at a time before capture, keeping a decision-plus-rationale ledger, then route to the right capture skill.

SpaiR/task-pipeline · 33 tokens