name: review-an-api-for-consistency
description: Reviews an API contract for inconsistent naming, payloads, and response behavior. Use when the user wants an existing API checked for contract consistency.
domain: api-design
tags: [api-review, consistency, contracts]
triggers: ["review api consistency", "check api contract conventions", "audit api endpoint consistency"]
Reviews an API contract for inconsistent naming, payloads, and response behavior
Purpose
Reviews an API contract for inconsistent naming, payloads, and response behavior.
When to use
Use when the user wants an existing API checked for contract consistency.
When NOT to use
Do not use this for internal function signatures; use software-engineering instead.
Inputs required
- The consumers and what they need
- The resources and the operations involved
- The versioning, auth and rate-limit policy
Procedure
- Inventory every endpoint, method, payload, and response status.
- Compare resource naming, parameter names, and media types across endpoints.
- Check that errors, pagination, filtering, and idempotency follow one pattern.
- Verify authentication requirements, version markers, and backward compatibility.
- List each inconsistency by severity with a concrete correction.
Output contract
A documented contract with endpoints, payloads, error shapes and versioning rules.
Validation checklist
Safety notes
Never change an existing response shape without a version bump and a migration note.
Related skills
review-an-api-change-for-clients
design-an-event-streaming-api
plan-an-api-deprecation
1---2name: review-an-api-for-consistency3description: Reviews an API contract for inconsistent naming, payloads, and response behavior. Use when the user wants an existing API checked for contract consistency.4---5---6name: review-an-api-for-consistency7description: Reviews an API contract for inconsistent naming, payloads, and response behavior. Use when the user wants an existing API checked for contract consistency.8domain: api-design9tags: [api-review, consistency, contracts]10triggers: ["review api consistency", "check api contract conventions", "audit api endpoint consistency"]11---1213# Reviews an API contract for inconsistent naming, payloads, and response behavior1415## Purpose1617Reviews an API contract for inconsistent naming, payloads, and response behavior.1819## When to use2021Use when the user wants an existing API checked for contract consistency.2223## When NOT to use2425Do not use this for internal function signatures; use software-engineering instead.2627## Inputs required2829- The consumers and what they need30- The resources and the operations involved31- The versioning, auth and rate-limit policy3233## Procedure34351. Inventory every endpoint, method, payload, and response status.362. Compare resource naming, parameter names, and media types across endpoints.373. Check that errors, pagination, filtering, and idempotency follow one pattern.384. Verify authentication requirements, version markers, and backward compatibility.395. List each inconsistency by severity with a concrete correction.4041## Output contract4243A documented contract with endpoints, payloads, error shapes and versioning rules.4445## Validation checklist4647- [ ] Every error has a stable machine-readable code48- [ ] Pagination, filtering and idempotency are defined49- [ ] The contract is versioned and backward compatible5051## Safety notes5253Never change an existing response shape without a version bump and a migration note.5455## Related skills5657- `review-an-api-change-for-clients`58- `design-an-event-streaming-api`59- `plan-an-api-deprecation`