Derive machine-readable contracts (OpenAPI 3.x, JSON Schema, Gherkin) from a spec.md or natural-language endpoint description, with full FR-ID traceability.
From workflow-orchestrationnpx claudepluginhub mikecubed/agent-orchestration --plugin workflow-orchestrationThis skill uses the workspace's default tool permissions.
Provides Claude API patterns for Python/TS: messages, streaming, tools, vision, caching, agents. Activates on anthropic/@anthropic-ai/sdk imports or API queries.
Orchestrates multi-agent coding tasks via Claude DevFleet: plans projects into mission DAGs, dispatches parallel agents to isolated git worktrees, monitors progress, and retrieves structured reports.
Accept a .sdd/*/spec.md path or a natural-language endpoint description as input and emit the following contract artifacts:
| Artifact | Format |
|---|---|
openapi.yaml | OpenAPI 3.x |
schema/{EntityName}.json | JSON Schema draft-07 / draft-2020-12 |
features/{feature-name}.feature | Gherkin |
contracts-summary.md | Durable summary artifact listing all generated files, FR-ID mappings, and unresolved items |
SDLC placement: between sdd.specify and sdd.plan — contracts are derived after the spec is written and before the implementation plan is created.
The output directory defaults to .sdd/{feature-dir}/contracts/.
Persistent team, squad, or fleet-style long-lived orchestration is out of scope for this skill.
sdd.specify produces a spec.md and you need machine-readable contracts before planning.contracts-summary.md.spec.md yet).| Input | Description |
|---|---|
| Spec path | Path to spec.md (under .sdd/*/spec.md) or a natural-language endpoint description. |
| Output directory | Target output directory (default: .sdd/{feature-dir}/contracts/). |
Provide factual context: confirm the spec path exists and FR count before generation begins.
spec.md; classify each as an endpoint FR or a domain-rule FR.openapi.yaml — Generate an OpenAPI 3.x document with operationId derived from the FR-ID (e.g. FR-001 → createOrder) and an x-fr-id vendor extension preserving traceability.schema/{EntityName}.json (JSON Schema draft-07 or draft-2020-12).features/{feature-name}.feature, preserving the original wording.contracts-summary.md artifact — List: output files generated, FR-IDs mapped, FR-IDs unresolved (with reason), and any low-confidence extractions.contracts-summary.md.openapi.yaml, document the skip reason in contracts-summary.md, and still produce Gherkin from any acceptance scenarios.spec.md must exist and be readable, or a natural-language description must be provided.contracts-summary.md.contracts-summary.md recording all completed steps and halt cleanly.Input: spec.md at .sdd/order-service-abc123/spec.md containing 5 FRs (3 endpoint FRs, 2 domain rules) and 3 Given/When/Then acceptance scenarios.
Output file tree:
.sdd/order-service-abc123/contracts/
├── openapi.yaml (3 paths, x-fr-id annotations)
├── schema/
│ └── Order.json (JSON Schema draft-07)
├── features/
│ └── order-management.feature (3 Gherkin scenarios)
└── contracts-summary.md (5 FRs: 3 mapped, 2 unresolved domain rules)
Invocation:
/workflow-orchestration:contract-generator
Provide the spec path (.sdd/order-service-abc123/spec.md) and accept the default output directory. The skill parses 5 FRs, emits OpenAPI paths for the 3 endpoint FRs with x-fr-id annotations, generates Order.json from the Key Entities section, converts 3 acceptance scenarios into Gherkin, and writes a durable contracts-summary.md artifact summarizing all mappings and the 2 unresolved domain-rule FRs.