contract-builder

contract-builder is a skill for Claude Code from MageByte-Zero/spec-superflow. It costs 33 tokens per session (1,087 once invoked), scanned A, original, MIT.

A tool for turning approved software plans into one written agreement for implementation. It combines the planned changes, requirements, design, tasks, and project rules into an execution contract.

In plain words
What is it for?
Use it when moving from planning to coding, especially in a spec-first workflow where requirements and task lists must guide the build.
Why use it?
It gives the person or coding agent building the software one shared reference for what must be done. It also prevents implementation from starting with missing, outdated, or inconsistent planning information.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spec-superflow plugin — 9 skills, 1 hook shipped together

Good fit Use it when moving from planning to coding, especially in a spec-first workflow where requirements and task lists must guide the build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magebyte-zero/spec-superflow/contract-builder
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 MageByte-Zero/spec-superflow --skill contract-builder
Clone the repo
git clone --depth 1 https://github.com/MageByte-Zero/spec-superflow

Made for: Claude Code.

Or install spec-superflow, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

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 contract-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/contract-builder/github.svg)](https://agentmods.dev/skills/magebyte-zero/spec-superflow/contract-builder)
Your own site
<a href="https://agentmods.dev/skills/magebyte-zero/spec-superflow/contract-builder"><img src="https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/contract-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for contract-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/magebyte-zero/spec-superflow/contract-builder"><img src="https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/contract-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.01087
Opus 5.5 $0.00013 $0.00435
Sonnet 5.5 $0.00007 $0.00217
Haiku 4.5 $0.00003 $0.00109

Measured 24d ago against content hash 9c4ef4f694a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

contract-builder 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 24d 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/contract-builder/SKILL.md · 95 lines

How it starts

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

Contract Builder

Bundled runtime

Before executing a CLI line below, replace its leading SSF with node "<plugin-root>/scripts/spec-superflow.mjs"; <plugin-root> is the absolute directory two levels above this file. Never run SSF literally or call an ssf from PATH.

Legacy compatibility only: new planned changes use proposal.md + tasks.md and SSF workflow start --path planned. Do not generate a contract or request a second approval for them. Read the remaining instructions only for an existing legacy change.

Converts planning artifacts into a single execution handshake: execution-contract.md. Load the baseline with SSF runtime asset read templates/execution-contract.md.

Read before generating: .spec-superflow.yaml (especially dp_0_decisions), proposal.md, specs/, design.md, tasks.md, then load docs/artifact-contract.md with SSF runtime asset read docs/artifact-contract.md.

Enter bridging before writing the contract; skip the transition if already there. Honor configured specs/design omissions. Reference requirement IDs and task IDs instead of copying their full text; preserve scope, obligations, tests, and review policy.

Artifact Language

Read artifact_language=<concrete-language> from dp_0_decisions. Generate execution-contract.md in the same language as that resolved value and the approved planning artifacts. Preserve required schema keywords and code identifiers verbatim; language consistency applies to explanatory prose and headings. If the concrete artifact language is missing or still auto, route back to workflow-start before writing the contract instead of guessing or silently defaulting to English.

Artifact Mapping

Source Extract
proposal.md → ## Why + ## What Changes Intent Lock (problem + scope)
proposal.md → ## Scope > ### Out of Scope Scope Fence
specs/ → each ### Requirement: Approved Requirements, Scenarios, Test Obligations
design.md → ## Decisions Architecture, Interface, Dependency Constraints
tasks.md → numbered task groups Execution Batches, Completion Definitions, Review Timing

Read the full file on GitHub · 95 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. 24d ago Changed · +4 lines 9c4ef4f694a6
  2. 26d ago Changed · -31 lines · -6 tokens per session 1909a3e44756
  3. 1mo ago Changed 6ad755bfefaa
  4. 1mo ago First seen · 122 lines · 39 tokens per session scan A 95d8b32d38b4

Subscribe to this mod's changes

contract-builder is a skill published in the GitHub repository MageByte-Zero/spec-superflow (867 stars, last pushed 16d ago), licensed MIT. It adds 33 tokens to every session and 1,087 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

Other skills, from other repositories