mismagent-create-contract

Reconciles cross-deploy OpenAPI contracts from building-block manifests with canonical domain names.

Updated Jun 12, 2026
One-click install
npx skills add https://github.com/lucolucus/mismagent --skill mismagent-create-contract-lucolucus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mismagent-create-contract
Source: https://github.com/lucolucus/mismagent/tree/main/codex/skills/mismagent-create-contract
Command: npx skills add https://github.com/lucolucus/mismagent --skill mismagent-create-contract-lucolucus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a feature's boundaries cross deploy units, teams need a single executable OpenAPI contract that both sides build against — without duplicating schemas, forking operationId namespaces, or silently breaking consumers. This Skill reconciles that contract as a consequence of the manifest, keeping one source of truth per boundary for the life of the project. ## Core Features & Use Cases - Contract reconciliation, not invention: Collects the cross-deploy boundaries and implied operations from building-blocks.yaml, then fills in read shapes (consumer-driven) and write shapes (producer-driven) into one OpenAPI YAML per boundary. - Re-entrant extension: Scans existing *.openapi.yaml files first and extends the matching boundary's contract additively instead of generating a duplicate, classifying every change as additive vs breaking. - Canonical naming and error contracts: Names every components/schemas entry from the ubiquitous language, always models the 422 ValidationError shape, and delegates non-obvious decisions to ADRs via write-adr. - Use Case: After running the model movement on a feature whose read-model crosses into another deploy unit, invoke this Skill to produce or extend architetture/api/<feature>.openapi.yaml with stable operationIds both sides' contract tests verify against. ## Quick Start Reconcile the OpenAPI contract for the cross-deploy boundaries declared in my building-blocks.yaml manifest, extending any existing contract for the same boundary.

Frequently Asked Questions about mismagent-create-contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an OpenAPI contract from a building-blocks manifest?

Run this Skill after the manifest exists: it collects the cross-deploy boundaries and the operations their blocks imply, fills in read and write schemas, and emits one OpenAPI YAML per boundary under architetture/api/. Names come from the project's ubiquitous language.

When should I use OpenAPI contract reconciliation vs an in-process port?

Use it only when a boundary has projection cross-deploy with contract_form openapi. If all boundaries are in-process, the port stays a code interface with a contract test and this Skill has no object; event-schema wires are reconciled on their schema files instead.

Does it regenerate the OpenAPI file for each new feature?

No. It first scans all existing *.openapi.yaml files for a contract covering the same boundary and extends that file, reporting the delta of operations added, changed, or unchanged. A new file is created only for a boundary with no contract yet.

How are breaking changes to an existing endpoint handled?

Every change is classified as additive or breaking. Additive changes keep the operationId and let consumers develop in parallel; breaking changes require a versioning protocol decided in an ADR before being applied, never an in-place edit.

Who authors the read and write schemas in the contract?

Reads are consumer-driven: the consumer side authors the view schemas it needs, and the producer's gate must satisfy them. Writes are producer-driven: the domain side authors command schemas including the 422 ValidationError shape, with the architect arbitrating feasibility conflicts.