api-documentation-generator

Solid

Generate comprehensive API documentation from repository sources including OpenAPI specs, code comments, docstrings, and existing documentation. Use when documenting APIs, creating API reference guides, or summarizing API functionality from codebases. Extracts endpoint details, request/response schemas, authentication methods, and generates code examples. Triggers when users ask to document APIs, generate API docs, create API reference, or summarize API endpoints from a repository.

API & Backend 160 stars 17 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 87/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# API Documentation Generator ## Overview Analyze a repository to extract and generate comprehensive API documentation, including endpoints, request/response schemas, authentication, and usage examples organized in a clear, multi-file structure. ## Workflow ### 1. Discover API Information Sources Scan the repository to identify all sources of API information: **Primary sources (in priority order):** 1. **OpenAPI/Swagger specifications** (`.yaml`, `.yml`, `.json`) - Look in: root directory, `/docs`, `/api`, `/spec`, `/openapi` - Files named: `openapi.yaml`, `swagger.json`, `api-spec.yaml`, etc. 2. **Code files with docstrings/comments** - Python: Flask/FastAPI route decorators, docstrings - JavaScript/TypeScript: Express routes, JSDoc comments - Java: Spring annotations, Javadoc - Go: HTTP handler comments - Ruby: Rails routes, YARD comments 3. **Existing documentation** - Markdown files in `/docs`, `/documentation`, `/api-docs` - README files with API sections - Wiki pages or doc site content 4. **Configuration files** - `routes.rb`, `urls.py`, `routes.js` - API gateway configurations **Discovery approach:** ```bash # Find OpenAPI specs find . -name "openapi.*" -o -name "swagger.*" -o -name "*api-spec*" # Find API route definitions grep -r "@app.route\|@router\|app.get\|app.post" --include="*.py" --include="*.js" # Find documentation find . -path "*/docs/*" -name "*.md" -o -path "*/api/*" -name "*.md" ``` ### 2. Extract API I...

Details

Author
ArabelaTso
Repository
ArabelaTso/Skills-4-SE
Created
6 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category