OpenAPI Contract Skill
When to use
Use this skill when:
- •The API spec exists and you need implementation structure.
- •You need a coverage matrix (endpoints -> tests -> methods).
- •You need to identify spec gaps (auth, errors, pagination, rate limits).
Procedure
- •Identify the spec source (OpenAPI JSON/YAML or equivalent).
- •Extract:
- •auth schemes
- •base paths and versions
- •endpoints grouped by tags/resources
- •request/response schemas and error schemas
- •Produce:
- •Coverage matrix template
- •DTO/model mapping strategy
- •“vertical slice” implementation order (start with read-only + auth)
Output format
- •Markdown tables for coverage matrix
- •A prioritized endpoint slice list
- •A list of spec ambiguities to validate via integration tests