.cursor/skills/qa-api-contract-curator/SKILL.md
Manage and formalize API contracts from existing endpoints, swagger/JSON, network traffic, or developer interviews into OpenAPI specifications.
npx skillsauth add AZANIR/qa-skills qa-api-contract-curatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage and formalize API contracts. Detect breaking changes, generate OpenAPI (OAS) specifications, and produce versioning rules. Transform disparate API information into a single, validated, version-controlled contract.
| Source | Description | How to Use | | ------ | ----------- | ---------- | | Existing endpoints | Live API or network traffic capture | Capture requests/responses via HAR, Postman, browser DevTools; infer schema from payloads | | Swagger/OpenAPI JSON/YAML | Existing spec files | Parse, validate, normalize to OpenAPI 3.x, fill gaps | | Developer interviews/descriptions | Natural language API descriptions | Extract endpoints, methods, parameters, responses; formalize into OAS | | Codebase analysis | Express routes, FastAPI endpoints, Spring controllers, etc. | Scan route definitions, decorators, DTOs; derive contract from implementation |
| Change Type | Description | Severity | | ----------- | ----------- | -------- | | Removed endpoints | Path or method no longer exists | Breaking | | Changed response schemas | Added/removed fields, type changes | Breaking or additive | | Modified required fields | New required field in request/response | Breaking | | Authentication changes | New auth requirement, changed scheme | Breaking | | Parameter changes | Removed/renamed path/query/header params | Breaking | | Status code changes | Success/error codes removed or redefined | Breaking | | Additive changes | New optional fields, new endpoints | Non-breaking |
See references/breaking-changes.md for catalog and mitigation strategies.
Can do (autonomous):
Cannot do (requires confirmation):
Will not do (out of scope):
Before delivering an OpenAPI specification:
{} or placeholder types)| Symptom | Likely Cause | Fix |
| ------- | ------------ | --- |
| Missing request/response schemas | Source has no examples | Infer from code DTOs, add placeholder schemas, ask for samples |
| Duplicate paths from multiple sources | Same API documented in different formats | Merge by path+method, reconcile differences, prefer most complete |
| Breaking changes false positives | Optional vs required misinterpreted | Verify required arrays; additive optional changes are non-breaking |
| Auth not documented | Source lacks auth info | Check codebase for middleware, add security at spec or operation level |
| Invalid OpenAPI output | Schema syntax errors | Validate with openapi-generator validate or Swagger Editor |
| Incomplete codebase extraction | Framework not recognized | Add framework-specific patterns to extraction logic; fall back to manual |
references/openapi-structure.md — OpenAPI 3.x specification structure with examplesreferences/breaking-changes.md — Catalog of breaking changes and mitigation strategiestools
Analyze OpenAPI/Swagger spec (JSON or YAML) against existing test files and generate an HTML coverage report with QA automation tasks. Use when user provides an OpenAPI spec file and wants to know test coverage status.
testing
Universal QA plan generator supporting 10 plan types including test plans, sprint plans, regression plans, release plans, UAT plans, performance plans, migration plans, onboarding plans, and custom plans.
development
Generate consumer-driven contract tests using Pact for JavaScript and Python to verify microservice API compatibility between consumer and provider.
development
Master skill coordinating all QA skills through pipeline modes (full-cycle, docs-only, testcases-only, write-tests, report), formalized handoff chains, scheduler rules, and framework/language selection based on project context.