API Contract Until Match
Coding
by loops! by elorm
Loop until API responses match the OpenAPI or JSON Schema contract — catch drift between docs and implementation.
Prompt
Step 1 — Run contract tests Run contract tests against openapi.yaml or schema fixtures. List every mismatch with endpoint and field. Check: `npm run test:contract` Step 2 — Fix implementation or spec Fix the smallest change: update handler types/validation or correct the spec if the code is canonical. Step 3 — Repeat until done Repeat the steps above until: All API contract tests pass Check with: `npm run test:contract` Stop after 10 iterations and report what is blocking.
Platforms
CLAUDE
CLAUDE
Use this prompt in AIniverse
Tap to copy, run it on ChatGPT / Claude / Gemini, save to your stack, or remix.
Open in AppMore Coding prompts
Independent Verifier Pass
When implementation claims done, a separate verifier pass runs build, lint, and tests with no access to the implement...
De-Sloppify Pass
After implementation, run a cleanup pass: remove debug code, tighten naming, delete dead branches, and align with pro...
Merge Conflict Resolver
Rebase or merge target branch, resolve conflicts file by file, and loop until the branch is current and tests pass.
Post-Merge Regression Guard
Hook that runs smoke tests after git merge or rebase to catch integration regressions immediately.