doncheli-api-contract

Solid

Design complete API contracts covering endpoints, auth, rate limiting, error handling, retries, circuit breaker and idempotency. Activate when user mentions "api contract", "api design", "endpoint", "webhook", "REST", "GraphQL", "OpenAPI", "design the API".

API & Backend 39 stars 7 forks Updated 1 months ago Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
53
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Don Cheli: API Contract Designer ## Instructions 1. Identify the API style: REST, GraphQL, gRPC, Webhook, or mixed 2. For each resource/operation, define: - Method + path (REST) or operation name (GraphQL/gRPC) - Request schema: headers, path params, query params, body - Response schemas: success + all error cases 3. Design cross-cutting concerns: - **Auth**: mechanism (JWT, OAuth2, API Key, mTLS), scopes, token lifetime - **Rate limiting**: strategy (token bucket / leaky bucket), limits per tier, headers exposed - **Error handling**: standard error envelope, HTTP status mapping, error codes catalog - **Retries**: which operations are safe to retry, backoff strategy, max attempts - **Circuit breaker**: thresholds, half-open probe, fallback behavior - **Idempotency**: which operations require idempotency keys, TTL, conflict semantics 4. Define versioning strategy (URL path, header, or content negotiation) 5. Flag breaking vs. non-breaking changes policy ## Output Format ``` ## API Contract: <service/feature name> ### Style & Version - Protocol: REST / GraphQL / gRPC / Webhook - Base URL: … - Version: v1 (strategy: <path/header/content-negotiation>) ### Endpoints / Operations #### <METHOD> <path> **Purpose:** … **Auth required:** yes/no — scope: … **Request:** ```json { "field": "type — description" } ``` **Response 200:** ```json { … } ``` **Error responses:** | Status | Code | Meaning | |--------|---------------|----...

Details

Author
doncheli
Repository
doncheli/don-cheli-sdd
Created
2 months ago
Last Updated
1 months ago
Language
Shell
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category