agentleFS
tuoithotuoitho/contract-first-agent-workflow/skills/reviewing-and-freezing-contracts/SKILL.md

reviewing-and-freezing-contracts

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Use when draft shared contracts must become stable implementation authority for multiple independent owners, especially before frontend/backend work proceeds in parallel.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    REQUIRED SUB-SKILL: Use authoring-executable-contracts for the canonical contract manifest format …

    line 23
  2. Very specific:

    When blocking findings are resolved, update the manifest entry in .dream/specs/<feature>/contracts/manifest.yaml to mark the contract …

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reviewing and Freezing Contracts

Review draft contracts independently from implementation code.

Review contract

For every contract revision verify:

  1. Traceability — every scenario maps to approved requirements; every boundary requirement has contract coverage.
  2. Completeness — success, material failures, auth/caller context, and state-dependent behavior are explicit.
  3. Consistency — schema, examples, statuses, names, and semantics agree.
  4. Independence — consumer and provider could implement without reading each other's code.
  5. Compatibility — assumptions about unknown fields, optionality, defaults, and versioning are explicit.
  6. Testability — scenarios can become consumer/provider/integration assertions.

Canonical Reference

REQUIRED SUB-SKILL: Use authoring-executable-contracts for the canonical contract manifest format (../authoring-executable-contracts/references/contract-manifest.template.yaml) and scenarios format (../authoring-executable-contracts/references/scenarios.template.yaml).

Findings

Classify findings as contract_defect, requirement_gap, design_gap, or non_blocking_suggestion. Do not resolve a requirement/design ambiguity by silently inventing contract behavior.

When blocking findings are resolved, update the manifest entry in .dream/specs/<feature>/contracts/manifest.yaml to mark the contract FROZEN:

id: ORDER-API
revision: 3
status: FROZEN
requirements: [REQ-CHECKOUT-02, REQ-CHECKOUT-05]
providers: [order-service]
consumers: [storefront-web, payment-service]

A frozen revision is immutable during implementation. Later changes create a new revision through managing-contract-revisions; they do not rewrite history.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.