description: "Produce OpenAPI or gRPC API contract definitions including endpoints, request/response schemas, error codes, idempotency, pagination, and filtering. A deliverable skill referenced by design-architecture."
---
This skill provides guidance and format requirements for producing API contract definitions within the architecture document.
This is a deliverable skill, not a workflow skill. It is referenced by `design-architecture` when producing API contract artifacts.
## Purpose
The Architect must produce API contract definitions that are specific enough for implementation. API contracts define the interface between services and between clients and the system.
## REST API (OpenAPI Style)
For REST APIs, use OpenAPI-style definitions within the architecture document.
### Endpoint Definition Format
Each endpoint must include:
```markdown
### {METHOD} {path}
**Description**: {What this endpoint does}
**Authentication**: {None / Bearer Token / API Key / mTLS}
**Idempotency**: {None / Idempotent by method / Requires Idempotency-Key header}
**Request**:
| Field | Location | Type | Required | Description |
Examples in this skill are illustrative only. Do not reuse placeholder endpoints, field names, response schemas, or error codes unless explicitly required by the PRD. Every endpoint, field, status code, and error code must be grounded in actual requirements and match the architecture document's functional requirements.