In Claude (connector)install_skill("api-docs-writer")
CLIlendskill install api-docs-writer
SKILL.md
---
name: api-docs-writer
description: Write API documentation from an OpenAPI spec or route code — quickstart, authentication, endpoint reference with request/response examples, error codes, pagination, rate limits, and curl/JS/Python snippets that actually work. Use for API docs, developer portals or 'document this API'.
license: Proprietary — Lendskill original
---
# API Docs Writer
## Structure
1. **Quickstart**: get a key → first request → see the response, in under 5 minutes.
2. **Authentication**: how to send credentials, scopes, key rotation.
3. **Concepts**: resources, IDs, pagination style, idempotency, versioning, rate limits.
4. **Reference** per endpoint: method + path, what it does (one line), parameters table (name, type, required, description), request example, response example, errors.
5. **Errors**: code, meaning, what to do.
6. **Changelog**.
## Rules
Examples use realistic but fake data; never real keys. curl + JavaScript + Python for each common call. Every example run against a local or sandbox server where possible — mark any you couldn't run. If an OpenAPI spec exists, keep docs generated from or checked against it so they don't drift.
## Output format
- Markdown (or MDX) pages: Quickstart, Authentication, Concepts, one page per resource, Errors, Changelog
- A runnable example block per common call in curl, JavaScript and Python
- A list of examples that could not be run, so they can be checked