troykelly/claude-skills/api-documentation
Claude Code and agent skill by troykelly/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when API code changes (routes, endpoints, schemas). Enforces Swagger/OpenAPI sync. Pauses work if documentation has drifted, triggering documentation-audit skill.
Install
npx vskill@latest install troykelly/claude-skills/api-documentationSKILL.md
The same SKILL.md was published earlier as troykelly/claude-skills/api-documentation.
API Documentation Enforcement
Overview
Ensures all API changes are reflected in Swagger/OpenAPI documentation. When documentation drift is detected, work pauses until documentation is synchronized.
Core principle: API documentation is a first-class artifact, not an afterthought. No API change ships without documentation.
Announce at start: "I'm using api-documentation to verify Swagger/OpenAPI sync."
When This Skill Triggers
This skill is triggered when ANY of these file patterns are modified:
| Pattern | Framework | Trigger Reason | |
|---|---|---|---|
**/routes/**/*.ts | Express/Fastify | Route definitions | |
**/controllers/**/*.ts | NestJS/Express | Controller endpoints | |
**/*.controller.ts | NestJS | Controller class | |
**/api/**/*.py | FastAPI/Flask | API endpoints | |
**/*_router.py | FastAPI | Router definitions | |
**/handlers/**/*.go | Go | HTTP handlers | |
**/schema*.ts | TypeScript | Schema definitions | |
**/dto/**/*.ts | NestJS | Data transfer objects | |
**/models/**/*.ts | Various | API models |
Documentation Locations
Check these locations for existing API documentation:
| File | Format | Standard | |
|---|---|---|---|
openapi.yaml | YAML | OpenAPI 3.x | |
openapi.json | JSON | OpenAPI 3.x | |
swagger.yaml | YAML | Swagger 2.0 | |
swagger.json | JSON | Swagger 2.0 | |
docs/api.yaml | YAML | OpenAPI 3.x | |
api/openapi.yaml | YAML | OpenAPI 3.x |
The Protocol
Step 1: Detect API Changes
Step 2: Find Documentation File
Step 3: Verify Sync
Compare API code with documentation:
Step 4: Handle Drift
If documentation drift is detected:
Then invoke documentation-audit:
Documentation Requirements
When updating API documentation, include:
Required Fields
| Field | Description | |
|---|---|---|
summary | Short description of endpoint | |
description | Detailed explanation | |
parameters | All path/query/header params | |
requestBody | Request schema with examples | |
responses | All response codes with schemas | |
tags | Grouping for organization | |
security | Auth requirements |
Required Examples
Every endpoint must have:
- Request example (for POST/PUT/PATCH)
- Success response example
- Error response example
Example OpenAPI Entry
Validation
After updating documentation, validate:
Checklist
Before resuming work:
- [ ] API documentation file exists
- [ ] All endpoints are documented
- [ ] Request/response schemas defined
- [ ] Examples provided for all operations
- [ ] Security requirements documented
- [ ] Documentation validates successfully
- [ ] Changes committed to branch
Integration
This skill coordinates with:
| Skill | Purpose | |
|---|---|---|
documentation-audit | Full documentation sync | |
issue-driven-development | Triggered during implementation | |
comprehensive-review | Validates documentation complete |
When to Skip
This skill can be skipped when:
- Changes are purely internal (no API surface change)
- Changes are to test files only
- Changes are to documentation itself
- Project has no API (CLI tool, library, etc.)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-documentation/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 26 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/troykelly/claude-skills/api-documentation)