Skip to content

skilldrop·docs·How-to

Use api-contract-draft

Draft an OpenAPI 3.1 contract from a feature brief or story

Draft an OpenAPI 3.1 contract from a feature brief or story — resource-oriented paths, a full error catalog (RFC 9457), pagination/idempotency/versioning decided not deferred, examples on every operation, plus a decisions log so review argues choices instead of YAML.

Reach for it when the user wants to design an API, draft an OpenAPI/Swagger spec, define request/response shapes, or agree a contract between frontend/backend or two teams before code.

Install it

npx skilldrop-cli install api-contract-draft                 # Claude Code, your user folder
npx skilldrop-cli install api-contract-draft --project       # Claude Code, this repo
npx skilldrop-cli install api-contract-draft --ide cursor    # or kiro, codex, antigravity, copilot

It is part of the Solution architect pack: --pack solution-architect installs it with its neighbours.

Ask for it

Say it the way you would to a colleague. Requests like these route to it:

Requests like these belong to a different skill, so it shouldn't answer them:

If another skill answers instead, ask for this one by name: "use api-contract-draft".

Check what you get

A good result:

Use something else when

Next

Edit this page on GitHub · View source