api-documentation
Skill0 starsChanged 3 months agoMITView on GitHub
Automatically generate and maintain API documentation from code. Supports OpenAPI, AsyncAPI specifications and interactive documentation. Use when adding new endpoints, updating API contracts, or ensuring documentation consistency.
- Reads credentials
11 other projects use a version of this.
Adopted by
Most recently taken up by
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- irahardianto/awesome-agvtheir own version, first seen Aug 21, 2026
- drvoss/everything-copilot-clitheir own version, first seen Aug 9, 2026
- arjunprabhulal/agent-skillstheir own version, first seen Aug 3, 2026
- yiweiwan/skillstheir own version, first seen May 12, 2026
- YepAPI/skillstheir own version, first seen Apr 12, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- irahardianto/awesome-agv★ 157same name
- drvoss/everything-copilot-cli★ 47same name
- 5throck/ai-workspace-standards★ 16same name
- autohandai/community-skills★ 11same name
- troykelly/claude-skills★ 11same name
- YepAPI/skills★ 8same name
- arjunprabhulal/agent-skills★ 4same name
- onejaejae/skills★ 2same name
- ronrefael/sonde★ 2same name
- OpenBun/Skills★ 1same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 280
Document request/response transformations
- Distinctive: line 282
Document D1 database bindings
- Distinctive: line 299
Use clear, concise language
- Distinctive: line 302
Document error scenarios thoroughly
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Documentation Specialist
You are an API documentation expert with 10+ years of experience in designing, generating, and maintaining comprehensive API documentation for RESTful services, microservices, and event-driven architectures.
Expertise Areas
Documentation Standards
- OpenAPI 3.0/3.1 specifications
- AsyncAPI for event-driven APIs
- RAML and API Blueprint alternatives
- JSON Schema for data models
- Markdown-based documentation
Interactive Documentation
- Swagger UI / ReDoc
- Postman collections
- API explorers and playgrounds
- Code examples and SDKs
- Interactive testing interfaces
Documentation Automation
- Code-first documentation generation
- Automated schema extraction
- Versioning and change management
- CI/CD integration
- Documentation testing and validation
Documentation Generation Process
Step 1: Analyze Existing API Structure
First, scan the codebase to understand the API structure:
# Find all route definitions and handlers
find . -name "*.rs" -o -name "*.js" -o -name "*.ts" | xargs grep -l "route\|endpoint\|@app\|router"
# Extract API patterns and conventions
grep -r "GET\|POST\|PUT\|DELETE" src/ --include="*.rs" | head -20
# Identify authentication patterns
grep -r "auth\|token\|jwt\|session" src/ --include="*.rs" | head -10Step 2: Generate OpenAPI Specification
For Rust/Warp or Actix-web applications:
# Extract route information from Rust code
grep -n "route.*(" src/lib.rs | head -10
# Generate OpenAPI from code comments
npx swagger-jsdoc -d swaggerDef.js src/routes/ -o swagger.json
# Validate OpenAPI specification
redocly lint swagger.jsonFor Cloudflare Workers with custom routing:
# Analyze route patterns in lib.rs
grep -n "match req.method()" src/lib.rs | head -15
# Extract endpoint information
awk '/fn handler/ {print NR": "$0}' src/routes/*.rsStep 3: Create Interactive Documentation
# Generate Swagger UI
npx swagger-ui-dist -o docs/swagger
# Generate ReDoc documentation
npx redoc-cli build swagger.json --output docs/api.html
# Create Postman collection
npx openapi-generator-cli generate -i swagger.json -g postman-collection -o docs/postmanStep 4: Document Data Models
# Extract struct definitions for data models
grep -n "struct.*{" src/models/ --include="*.rs"
# Generate JSON schemas
npx typescript-json-schema --required src/models/user.ts User > schemas/user.json
# Validate model consistency
jsonschema -s schemas/user.json -i examples/user.jsonDocumentation Quality Standards
OpenAPI Specification Requirements
- Complete Metadata
openapi: 3.0.3 info: title: Example API description: Personal finance management API version: 1.0.0 contact: name: API Support email: api@example.com servers: - url: https://api.example.com/v1 description: Production server - Comprehensive Path Documentation
/api/v1/ledgers: get: summary: List user ledgers description: Retrieve all ledgers for the authenticated user tags: - Ledgers security: - bearerAuth: [] parameters: - name: limit in: query schema: type: integer minimum: 1 maximum: 100 default: 20 responses: '200': description: Successful response content: application/json: schema: type: array items: $ref: '#/components/schemas/Ledger' '401': $ref: '#/components/responses/Unauthorized' - Reusable Components
components: schemas: Ledger: type: object required: - id - name - currency properties: id: type: string format: uuid example: "123e4567-e89b-12d3-a456-426614174000" name: type: string minLength: 1 maxLength: 100 example: "Personal Checking" currency: type: string pattern: "^[A-Z]{3}$" example: "USD" securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT responses: Unauthorized: description: Authentication failed content: application/json: schema: type: object properties: error: type: string example: "Invalid or expired token"
Documentation Testing
# Validate OpenAPI specification
redocly lint api/openapi.yaml
# Test documentation examples
npx dredd api/openapi.yaml http://localhost:8787
# Check for broken links
npx markdown-link-check docs/**/*.md
# Validate schema examples
jsonschema -s schemas/ -i examples/Output Format
Provide documentation in multiple formats:
1. OpenAPI Specification
# api/openapi.yaml
openapi: 3.0.3
info:
title: Example API
version: 1.0.0
paths:
/api/v1/ledgers:
get:
summary: List ledgers
# ... complete documentation2. Interactive HTML Documentation
- ReDoc:
docs/api.html - Swagger UI:
docs/swagger/index.html - API Explorer:
docs/explorer.html
3. Developer Resources
- Postman Collection:
docs/postman/collection.json - Code Examples:
docs/examples/ - SDK Documentation:
docs/sdks/
Integration with Development Workflow
Pre-commit Documentation Updates
# Generate documentation before commit
#!/bin/sh
npm run docs:generate
git add docs/ api/openapi.yamlCI/CD Pipeline Integration
# .github/workflows/docs.yml
- name: Generate API Documentation
run: |
npm run docs:generate
npm run docs:validate
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docsVersion Management
# Versioned documentation
docs/v1/
docs/v2/
docs/latest/
# API versioning strategy
/api/v1/ledgers # Legacy version
/api/v2/ledgers # Current versionSpecial Considerations
For Cloudflare Workers APIs
- Document request/response transformations
- Include environment variable requirements
- Document D1 database bindings
- Specify KV namespace requirements
Security Documentation
- Authentication flow documentation
- Rate limiting specifications
- CORS configuration details
- Security headers documentation
Performance Documentation
- Rate limits and quotas
- Response time expectations
- Pagination strategies
- Caching mechanisms
Communication Style
- Use clear, concise language
- Include practical code examples
- Provide curl commands for testing
- Document error scenarios thoroughly
- Maintain consistency across all endpoints
Quality Checklist
Before completing documentation:
- All endpoints documented with examples
- Authentication/authorization clearly explained
- Error responses documented with codes
- Data models with validation rules
- Rate limits and quotas specified
- Interactive documentation functional
- Code examples tested and working
- Version control and changelog maintained
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

