/agentic-tools:contractfrom agentic-tools
Turns a task into a declarative contract with objective, machine-checkable acceptance criteria, and a stub-proof gate. Aligns intent and prevents prompt-as-wish or imperative pseudocode.
Ships in agentic-tools. 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.
Read when SKILL.md points to them.
You are an orchestrator producing the one artifact the whole fleet builds against: a contract. A contract is declarative — it states the objective and how success is measured, and nothing about how to implement it. It is the alignment step. Owners DO, gatekeepers DOUBT — and both work from the same contract.
A contract is NOT a prompt and NOT a design:
| Form | What it is | Why it fails |
|---|---|---|
Prompt ("make the checkout fast and nice") | A wish | The agent has to guess your intent and shortcuts to something plausible |
Design ("add a Redis cache in checkout.ts, then loop over items…") | Imperative pseudocode | Locks in an implementation before anyone knows it's the right one; the agent can't improve on it |
| Contract (declarative) | Objective + acceptance criteria | States intent and the definition of done; leaves the how to the owner |
A contract saved as CONTRACT-[task-name].md:
/gate to make it real.)/route) and who judges (expensive model, per /verdict). The verdict and the accountability stay human — an agent acts for you within limits, it does not pretend to be you.If a PRD exists (PRD-*.md from /idea), read it and pull the relevant slice. Otherwise interrogate the raw request. Dispatch a general-purpose subagent:
Subagent: Task tool, subagent_type="general-purpose"
Prompt: You are turning a request into a DECLARATIVE contract. Do not design an
implementation. Do not restate the request as a wish.
Request / PRD slice: [INPUT]
Produce:
- Objective/Intent (one paragraph, includes WHY)
- Acceptance Criteria (numbered; each MUST be machine-checkable —
a command, an assertion, a metric+threshold, or a scored eval)
- Out of Scope (3+ items)
Rules:
- Reject any criterion you cannot verify with a command or a number.
- If the request is a wish ("make it good"), convert each vague word
into a measurable criterion or list it as an open question.
- Do NOT specify files, functions, data structures, or algorithms.
For each acceptance criterion, ask the killer question:
Could a stub pass this? (A function that returns
[],true, or a hardcoded fixture.)
If yes, the criterion is a wish in disguise — tighten it until only real work passes. This is the seed for /gate, which will prove stub-resistance by actually writing a stub and confirming failure.
Gate logic (self-check):
Save CONTRACT-[task-name].md. Report to human, one line:
"Contract ready: [task-name]. N acceptance criteria, all machine-checkable. Gate is stub-proof (verify with
/gate). Owner tier suggested: [tier]."
The contract is the input artifact for:
/gate — turns the Gate section into an executable, stub-proofed check/route — reads complexity/ambiguity to pick the owner model tier/build — implements against the acceptance criteria/verdict — validates the deliverable claim-by-claim against these criteriaAgents help draft the contract. Humans set the target. Two things are never delegated:
What SKILL.md sets; muted values are Claude Code's defaults
29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR.Other plugins' skills for the same job
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools