SKILL

contract-first

Coordinate frontend/backend or service-to-service work through one authoritative machine-checkable contract (OpenAPI, AsyncAPI, Protocol Buffers, or JSON Schema), with generated consumer types and contract-verified integration. Use when parallel consumer and provider work must evolve an API or event schema without field drift, mock/production shape mismatch, or one side silently redefining the interface.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Contract-First Collaboration
  • When to Activate
  • The Boundary Artifact
  • Consumer-First Workflow
  • 1. Identify Consumers and Owners
  • 2. Describe Consumer Jobs
  • 3. Define the Smallest Useful Contract
  • 4. Generate or Derive Consumer Types

Coordinate frontend/backend or service-to-service work through one authoritative, machine-checkable contract. Consumers state what they need, providers implement that shape, and both sides verify against the same artifact before integration. This skill governs how teams change a boundary. It complements api-design, which governs what a good API looks like, and ai-regression-testing, which guards fixed bugs from returning. Frontend and backend work will proceed in parallel. Two or more services exchange API payloads, events, or commands. Field names, nullability, enums, or error shapes regularly drift. One consumer needs several calls because the provider exposed storage models instead of a task-oriented response. A provider change can break consumers maintained by another person or agent. Mock responses and production responses no longer have the same shape. Do not add contract machinery to a single-module boundary that changes in one atomic commit and has no independent consumer. A shared type may be enough. Choose one canonical, version-controlled artifact for each boundary: OpenAPI for HTTP APIs AsyncAPI for event-driven APIs Protocol Buffers for RPC or message schemas JSON Sche

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
pi/core/skills/contract-first/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:42.904Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.