planning-contract-workstreams
Skill1 starsChanged 3 months agoApache-2.0View on GitHub
Use when frozen feature contracts and the approved verification matrix need to be grouped into independently verifiable workstream contracts with explicit verification obligations and assigned to persistent implementation owners.
In this repository13 other files it gives its agents.
- accepting-contract-first-featuresSkill
- authoring-executable-contractsSkill
- designing-contract-first-featuresSkill
- developing-contract-first-featuresSkill
- executing-persistent-workstreamsSkill
- managing-contract-revisionsSkill
- review-agentSkill
- reviewing-and-freezing-contractsSkill
- reviewing-workstreamsSkill
- test-driven-developmentSkill
- verifying-contract-first-featureSkill
- verifying-runtime-integrationSkill
- verifying-task-gatesSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create one workstream contract per implementation owner:
- Very specific: line 18
Use references/workstream-contract.template.md as the required structural shape.
- Distinctive: line 78
Every workstream contract carries the same obligations rule:
- Distinctive: line 98
Avoid assignments such as:
≈ “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.
Files
Planning Contract Workstreams
Derive workstream contracts from frozen contracts plus the design verification matrix. A workstream is an ownership boundary (a service, module, frontend, mobile app, producer/consumer role), never a hardcoded backend/frontend role pair. There is no global task-list file; each workstream receives one self-contained contract.
Output
Create one workstream contract per implementation owner:
.dream/specs/<feature>/workstreams/<owner-id>.mdUse references/workstream-contract.template.md as the required structural shape.
Workstream definition
A workstream contract is a bounded ownership agreement, not a coding recipe. Each contract MUST contain:
owner: coherent workstream owner identified by its boundary (e.g.,order-service,payment-service,storefront,returns-module);boundary: the kind of ownership boundary, e.g.service(independently deployable),application-module(in-process module),frontend,mobile-app,producer,consumer,infra;- scope: bounded observable outcomes owned (
Owns), boundaries/context consumed (Consumes), and observable boundary outputs produced (Produces); contracts: map of contract IDs to frozen revisions, marked as provided or consumed;depends_on: other owners whose produced boundaries are required first, if any;risk:normalorhigh;- acceptance scenarios declared from
scenarios.yaml; - Verification Obligations: verification layers the design matrix assigns to owned behaviors, split into task-level requirements and workstream-completion requirements;
status:pending,in_progress,completed,stale, orreopened;verified_against: map of contract revisions verified upon completion.
Example assignment blocks:
owner: order-service
boundary: service
contracts:
ORDER-API:
revision: 3
role: provides
PAYMENT-API:
revision: 2
role: consumes
depends_on: []
risk: high
acceptance_scenarios: [CHECKOUT-001]
status: pending
verified_against: {}owner: storefront-web
boundary: frontend
contracts:
ORDER-API:
revision: 3
role: consumesowner: shipping-consumer
boundary: consumer # consumes order-confirmed events
contracts:
ORDER-CONFIRMED-EVENT:
revision: 1
role: consumesInternal sequencing (handler/service/repository steps) is NOT part of this file. It belongs to the persistent workstream owner using normal TDD discipline.
The number and split of workstreams follow the architecture declared in design — one service per independently owned deployable, one module per in-process ownership boundary — not a fixed two-role template.
Verification Obligations
Every workstream contract carries the same obligations rule:
The workstream must satisfy all verification layers assigned to its owned behaviors in the approved design verification matrix.
Task-level completion requires focused evidence only:
- focused tests for changed behavior;
- existing affected tests remain green;
- build/static verification required by the repository.
Workstream completion additionally requires executable evidence for every required layer it owns (e.g., integration tests, executable contract checks).
Evidence must record: verification layer; command or tool used; result (PASS/FAIL/BLOCKED); relevant test/scenario; any required layer not executed and why.
A required verification layer that was not executed is NOT considered passed.
An implementation owner therefore cannot claim completion with only "all unit tests pass" when its obligations also assign integration or contract layers.
Do not decompose into a private coding recipe
Avoid assignments such as:
Create ProductRepository.java
Create ProductService.java
Create ProductController.javaPrefer:
order-service — Provide checkout order creation according to ORDER-API rev 3A file/type may be prescribed only when design declares it a shared architectural boundary.
Parallelism rule
Workstreams whose contracts are independent and which do not materially share mutable domain abstractions/files can run under different agents concurrently. Otherwise keep them in one persistent workstream session even if their scopes are related.
Completion semantics
Record verified_against contract revisions. A completed workstream becomes STALE when managing-contract-revisions changes a contract revision it provides, consumes, or verifies.
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
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.

