--- name: api-review description: Use when reviewing HTTP or RPC endpoint, request handling, serialization, schema, or API contract changes for correctness, security, and client compatibility. --- # API Review Use when reviewing an HTTP or RPC API contract, endpoint, serializer, or request-handling change. Load and follow `rules-security-api` and `rules-security-auth` for validation, limits, authentication, authorization, and resource ownership. This skill adds only contract and compatibility checks. ## Review - Compare request and response schemas, status codes, error shapes, pagination, identifiers, and nullability with existing consumers and published contracts. - Classify each contract change as additive, deprecating, or breaking. A breaking change (removed or renamed fields, new required inputs, changed types, status codes, or semantics) needs a new version or an agreed migration path, and is at least important. - Consider older clients, retries, idempotency, concurrency, and versioning when they affect the endpoint. - Check serialization defaults, content types, and generated client or schema updates. - Confirm documentation and examples match actual behavior. Report findings in the `review-pull-request` finding schema and severity scale. Put the triggering request in the condition field and the consumer impact in the impact field.