agentleFS
tuoithotuoitho/contract-first-agent-workflow/skills/developing-contract-first-features/SKILL.md

developing-contract-first-features

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Use when an approved feature spans multiple implementation boundaries or agents and needs traceable delivery without reviewer-driven implementation loops.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 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.

  • 7

    Very specific

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

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

    REQUIRED SUB-SKILL: Use designing-contract-first-features — architecture, boundaries, and the verification strategy (required layers per …

    line 18
  2. Very specific:

    REQUIRED SUB-SKILL: Use authoring-executable-contracts.

    line 19
  3. Very specific:

    REQUIRED SUB-SKILL: Use reviewing-and-freezing-contracts before parallel implementation.

    line 20
  4. Very specific:

    REQUIRED SUB-SKILL: Use planning-contract-workstreams to create workstream contracts with Verification Obligations.

    line 21
  5. Very specific:

    After every task, apply verifying-task-gates at task level (focused verification only).

    line 23
  6. Very specific:

    When all required workstreams are complete, use verifying-contract-first-feature for the assembled system: run required layers from …

    line 25
  7. Very specific:

    Use accepting-contract-first-features for final evidence-based acceptance.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Developing Contract-First Features

Core principle

Shared behavior is decided before parallel implementation. Implementation context persists by workstream; proof comes from deterministic gates and fresh boundary reviewers.

Preconditions

Require approved .dream/specs/<feature>/requirements.md. If requirements are contradictory or materially incomplete, stop at requirements engineering.

Workflow

  1. REQUIRED SUB-SKILL: Use designing-contract-first-features — architecture, boundaries, and the verification strategy (required layers per behavior).
  2. REQUIRED SUB-SKILL: Use authoring-executable-contracts.
  3. REQUIRED SUB-SKILL: Use reviewing-and-freezing-contracts before parallel implementation.
  4. REQUIRED SUB-SKILL: Use planning-contract-workstreams to create workstream contracts with Verification Obligations.
  5. Dispatch one persistent owner per coherent workstream and use executing-persistent-workstreams.
  6. After every task, apply verifying-task-gates at task level (focused verification only).
  7. At high-risk task boundaries or when a workstream completes its obligations, use reviewing-workstreams with fresh context.
  8. When all required workstreams are complete, use verifying-contract-first-feature for the assembled system: run required layers from narrowest to broadest, using verifying-runtime-integration for runtime smoke, e2e, and visual evidence.
  9. Use accepting-contract-first-features for final evidence-based acceptance.

At any phase, a discovered contract defect or missing boundary behavior invokes managing-contract-revisions; after re-freeze, reopen only affected work and invalidate affected verification evidence.

Agent topology

Workstreams are ownership boundaries derived from design (services, modules, frontends, producer/consumer roles) — never a fixed backend/frontend template. Default to one persistent implementation agent per workstream, not per task. Split a workstream only when tasks are contract-independent and do not materially share domain models, abstractions, or files.

Fresh context is preferred for workstream reviewers, feature verifiers, and final acceptance reviewers.

Non-negotiable boundaries

  • Implementation agents do not silently edit frozen contracts.
  • Reviewers do not redefine accepted contract semantics as implementation findings.
  • Task completion requires its declared verification gate.
  • Required verification layers come from the approved design; no agent may downgrade, skip, or widen them locally.
  • A required layer that is FAIL, BLOCKED, skipped, or unevidenced blocks completion; BLOCKED is never reported as PASS.
  • Objective findings close by deterministic re-verification; do not require another LLM opinion.
  • Semantic or architectural findings may receive targeted re-review. After two unsuccessful fix/re-review cycles for the same finding, escalate instead of looping.

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.