
contract-first
Coordinate frontend/backend or service-to-service work through one authoritative
by affaan-mFree
Description
contract-first is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It coordinates work across a boundary, whether frontend and backend or two services, through one authoritative contract that a machine can check. The contract can be OpenAPI, AsyncAPI, Protocol Buffers or JSON Schema. Consumers state what they need, providers implement that shape, and both sides verify against the same artifact before integration. The skill is about how a boundary is changed. It works alongside api-design, which covers what a good API looks like, and ai-regression-testing, which guards fixed bugs from returning. Typical triggers are frontend and backend work running in parallel, services exchanging payloads or events, field names and error shapes drifting, a consumer needing several calls because the provider exposed storage models, and mock responses that no longer match production. It suits teams where a change by one person or agent can break a consumer maintained by someone else. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source.…
Highlights
- One machine-checkable contract per boundary
- OpenAPI, AsyncAPI, Protobuf or JSON Schema
- Consumer needs drive provider shape
- Verification against the same artifact
Ratings & Reviews
No ratings yet
Be the first to rate contract-first.
People also visit
contract-first FAQ
What does the contract-first skill do?
It sets up a shared, machine-checkable contract between frontend and backend or between services, so both sides build and test against the same definition.
Which contract formats does it name?
OpenAPI, AsyncAPI, Protocol Buffers and JSON Schema.
How does it differ from api-design?
The listing says api-design covers what a good API looks like, while contract-first governs how a boundary is changed.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill contract-first
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best contract-first alternatives?
Popular alternatives to contract-first include api-contract-tester, senior-fullstack and api-contract-testing. See all contract-first alternatives















