API documentation — reference from OpenAPI/GraphQL/proto, auth and quickstart guides, runnable examples, error catalogues, pagination and rate limit docs, changelogs and migration guides, docs testing against mocks. Use to document APIs and tools (API docs, reference, examples, changelog, migration guide).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Api Documentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-api-documentation)
---
name: api-documentation
description: API documentation — reference from OpenAPI/GraphQL/proto, auth and quickstart guides, runnable examples, error catalogues, pagination and rate limit docs, changelogs and migration guides, docs testing against mocks. Use to document APIs and tools (API docs, reference, examples, changelog, migration guide).
metadata:
category: documentation
---
# API documentation
## Purpose
Make an API usable from its documentation alone.
**Use when:** new or changed APIs, SDKs and MCP tools.
**Not for:** contract design.
## Inputs
- Specs, examples, changes.
## Outputs
- Reference, guides, changelog, tested examples.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "api documentation"` for prior decisions, patterns and anti-patterns.
- [Documentation standard](../../../standards/documentation.md)
- [API design standard](../../../standards/api-design.md)
## Steps
1. **Reference.** Generate from spec; enrich descriptions.
Done when every operation described.
2. **Guides.** Quickstart, auth, pagination, errors.
Done when newcomer can make a first call.
3. **Examples.** Runnable examples tested in CI.
Done when examples pass.
4. **Changes.** Changelog and migration guides.
Done when breaking changes have guides.
## Best practices
- Document errors as thoroughly as success.
- Keep docs next to specs.
## Common mistakes
- Examples that do not run.
- Docs drifting from spec.
## Example
v2 pagination guide with migration from offset paging and tested examples.
## Reusable prompt
```text
Apply the API documentation skill (.agents/skills/api-documentation/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Produce reference, guides, tested examples and changelog for the API change.
Return: Reference, guides, changelog, tested examples..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```