Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jayrha/api-docs-writer
Writes precise, complete reference documentation for HTTP/REST APIs and authors valid OpenAPI 3.1 specifications, including endpoint pages, request/response schemas, parameter tables, authentication, pagination, code samples, and error tables.
Passed 20 of 23 test cases with the skill, and 13 of 23 without it.
and 5 more in the full report
7 fixed13 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
We wrote an OpenAPI 3.1 spec draft for our Search API. Describe the standard validation step required before publishing or delivering OpenAPI specs generated by this workflow.
| Checked | Without skill | With skill |
|---|---|---|
| The response specifies executing scripts/validate_openapi.py on the specification file. | Missed | Passed |
| The process specifies fixing all reported structural issues before delivering the spec. | Passed | Passed |
The instructions your model reads when the skill loads.
This skill produces production-quality API reference documentation and OpenAPI 3.1 specifications. It covers endpoint reference pages, parameter/field tables, authentication, pagination, rate limits, request/response examples in multiple languages, and complete error tables.
Keywords: API documentation, REST reference, OpenAPI, Swagger, endpoint docs, request schema, response schema, error codes, curl example, parameter table, authentication docs.
Use it for two distinct deliverables:
Prefer generating the OpenAPI spec first, then deriving Markdown from it, when both are requested.
Follow these steps in order.
Gather the source of truth. Identify where the API behavior is defined: route handlers, controllers, framework decorators (Flask/FastAPI/Express/Spring), existing partial specs, Postman collections, or live responses. Never invent fields — read the code or ask. If a detail is unknown, mark it clearly rather than guessing.
Inventory the surface. For each endpoint capture: HTTP method, path (with {path_params}), summary, auth requirement, query/path/header params, request body schema, success responses (per status code), error responses, and idempotency. Use references/extraction-checklist.md to avoid omissions.
Choose the deliverable. If the user wants a spec, scaffold OpenAPI 3.1 (see references/openapi-3.1-reference.md and templates/openapi-skeleton.yaml). If they want a reference page, use templates/endpoint-reference.md.
Document each endpoint. Write the summary (imperative, one line), description (behavior, side effects, constraints), parameter tables, request body, and responses. Every parameter row must state: name, in (path/query/header/cookie), type, required, default, constraints, description.
Add examples. Provide at least a curl example and one realistic JSON request/response pair per endpoint. Use real-looking values, never foo/bar. Show the exact status code. See references/style-guide.md for example conventions.
Document errors. Build a per-endpoint error table AND a global error reference. Each row: HTTP status, machine-readable code, when it occurs, and how to fix. Reuse a consistent error envelope.
Document cross-cutting concerns. Authentication, pagination, rate limiting, versioning, idempotency keys, and content types. Document these once in shared sections and link to them.
Validate. If you produced an OpenAPI file, run scripts/validate_openapi.py path/to/spec.yaml to catch structural errors before delivering. Fix every reported issue.
Self-review against references/extraction-checklist.md and the Common Pitfalls list below.
Each endpoint page should contain, in order:
METHOD /pathRequires: Bearer token)test cases passed, vs 13 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.