00-andruia-consultant
Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone…
Design and review API contract tests across providers and consumers. Use for schema changes, compatibility regressions and client integration failures.
$ npx -y skills add sickn33/agentic-awesome-skills --skill api-contract-testing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/api-contract-testingContext preview
The summary Claude sees to decide when to auto-load this skill.
Design and review API contract tests across providers and consumers. Use for schema changes, compatibility regressions and client integration failures.
name: api-contract-testing description: "Design and review API contract tests across providers and consumers. Use for schema changes, compatibility regressions and client integration failures." category: development risk: safe source: self source_type: self date_added: "2026-10-13" tags: [api, contracts, testing, compatibility] tools: [claude, codex, cursor] license: MIT
Turn an API change into explicit provider and consumer checks. Start from the actual contract and affected clients, then verify wire-level behavior rather than relying on generated types or a successful build. Default to local fixtures and existing test tools; this skill does not provision a testing service.
Do not use this as authorization to call production endpoints, bypass access controls or publish a new API version.
Identify the provider, transport, contract source and version, known consumers and the requested behavior. Read the real OpenAPI/JSON Schema/protobuf definition or documented examples and the corresponding server/client code. Record missing consumers and stale specifications as coverage gaps; do not invent interfaces or claim complete coverage from one client.
Keep these distinct: documented schema, actual provider output, generated client types and runtime parsing. A type assertion alone is not validation. Preserve the existing protocol and test runner instead of introducing a new platform by default.
Review fields, requiredness, nullability, enum values, status codes, headers, content type, pagination and error behavior. Inspect whether clients tolerate extra fields and unknown enum values. Even an added optional field can break a strict consumer. Explicitly identify affected versions and assumptions before calling a change compatible.
For events, include duplicate delivery, ordering and version envelopes. For request changes, check serialization and server validation as well as responses.
Use deterministic synthetic fixtures for:
Assert the behavior promised by the contract. Do not silently coerce malformed values or make the fixture match a defect just to get a passing test.
Run the existing schema validator against fixtures. Exercise the provider handler locally and pass its serialized result through the real consumer parser. Check failure cases reject or map errors as specified. Use an authorized isolated integration environment only when fixtures cannot establish the required property; report that boundary explicitly.
A mock verifies assumptions encoded in the mock. It does not establish that the real provider implements them. Record exact commands, fixture versions and observed outcomes separately from unrun checks.
Deliver the change classification, affected consumers, test matrix, observed failures, minimal reproduction and remaining coverage gaps. For a breaking change, propose versioning, a compatibility adapter or a staged migration with owners and rollback criteria. Deployment and consumer migration require their own task authorization.
Synthetic documented response:
{"id":"invoice-demo","amount_minor":1250,"currency":"EUR"}Contract: `id` and `currency` are strings; `amount_minor` is a non-negative integer in minor units. This fixture does not represent an actual customer or payment.
| Fixture change | Expected check | | --- | --- | | `amount_minor` becomes `"1250"` | Runtime parser rejects the string; compile-time generated types alone cannot detect wire drift. | | `amount_minor` is missing or null | Reject when the field is required and non-nullable. | | Extra `display_label` field | Verify the consumer's documented extra-field policy before declaring compatibility. | | HTTP error with an HTML body | Produce the declared transport/protocol error, rather than treating it as a valid invoice. |
Reusable prompt:
Review this API change against the actual contract and supplied client/server code. List affected consumers and supported version combinations. Add local contract tests for valid, missing, null, wrong-type and error responses with the existing runner. Report checks actually run and any provider behavior still requiring integration proof.
Find reusable instructions for your project, inspect their complete files, and keep an exact skill set you can review and reuse. Agentic Awesome Skills is a library of 2,689+ installable SKILL.md playbooks.
Repo: sickn33/agentic-awesome-skills
Usar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone…
Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code…
Usar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta…
Usar tras definir el sector de un proyecto: prepara un dossier en español con contexto,…
AI-powered presentation generation via the 2slides API — create slides from text, match a…
360 feedback register: reviewer, subject, review cycle, visibility, due date and score, as…