Generate Swagger Docs
Generates OpenAPI 3.0 docs from a codebase by detecting its web framework and discovering endpoints.
- CCM score
- 31 of 100
- skills.sh installs
- 262
- GitHub stars
- 50
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers repository scanning for API endpoints across Express, NestJS, FastAPI, Django, Rails, and Go frameworks
- Produces
apimesh/swagger.jsonas the OpenAPI spec andapimesh/apimesh-docs.htmlas a self-contained Swagger UI - Runs through the
generate-with-key.shwrapper, which takes an OpenAI API key and saves it toapimesh/config.json - Flags
config.jsonfor.gitignorebecause it stores the key; framework detection can be overridden manually
Install
$ npx -y skills add qodex-ai/ai-agent-skills --skill generate-swagger-docs -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Generate Swagger Documentation
Generate OpenAPI docs from your codebase in seconds with automatic API key setup.
How It Works
This skill automates the Swagger/OpenAPI documentation generation:
- API Key Setup - Accepts your OpenAI API key and sets it as an environment variable
- Initialization - Downloads and sets up the apimesh tool
- Automatic Processing - The tool analyzes your codebase and generates documentation
- Output - Outputs are saved to the apimesh/ directory
Setup Requirements
You need an OpenAI API key to use this skill. Get one from OpenAI's platform if you don't have one already.
Recommended: Quick Setup with API Key
The easiest way to use this skill is to pass your API key directly:
/Users/ankits/.claude/skills/generate-swagger-docs/generate-with-key.sh "sk-proj-your-api-key-here"
This will:
- Accept your OpenAI API key as an argument
- Create the
apimesh/directory and download the apimesh tool - Set up the environment variables correctly
- Generate your Swagger documentation automatically
- Display the output file locations
Automatic Flow
Details
- Repository
- github.com/qodex-ai/ai-agent-skills
- Categories
- Technical Documentation, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the generate-swagger-docs skill do?
generate-swagger-docs scans your repository for API endpoints and detects the web framework, such as Express, NestJS, FastAPI, Django, Rails or Go. It then writes an OpenAPI 3.0 spec as swagger.json and an interactive, self-contained apimesh-docs.html file.
How do I install generate-swagger-docs?
Run npx -y skills add qodex-ai/ai-agent-skills --skill generate-swagger-docs -y in a project. Once installed, generate-swagger-docs lets your agent generate OpenAPI docs from that project's source code.
What does generate-swagger-docs need to run?
generate-swagger-docs needs an OpenAI API key, which it uses for the LLM analysis of your codebase. Its output lands in the apimesh/ directory, and its config.json holds your key, so add that file to .gitignore.
Where does generate-swagger-docs fit among Technical Documentation skills?
generate-swagger-docs is listed under Technical Documentation on Claude Marketplaces, alongside domain-modeling, archify, writing-guidelines, design-doc-mermaid and documentation-and-adrs. Its focus is narrower than those: it produces API reference docs from endpoints it discovers in your code.
More from qodex-ai/ai-agent-skills
All 24- System Design220
- Voice Ai Integration214
- User Interface Designer209
- Presentation Builder204
- Financial Document Management198
- Llm Fine Tuning Guide198
- Aesthetic Analysis195
- Component Interface Design184
- Market Intelligence Gather174
- Data Organization System170
- Prospect Investigation166
- Browser Automation Framework164
- Word Document Processor3.6K
- Multi Agent Orchestration2.2K
- Financial Analysis Agent1.3K
- Legal Document Analyzer1.2K
- Ecommerce Platform Specialist661
- Spreadsheet Processor634
- Creative Generation Agent576
- Chat With Arxiv306
- Deep Research Agent292
- Autonomous Agent Gaming276
- Rag Agent Builder266
Similar to Generate Swagger Docs
More Technical Documentationapi-documentinghuangjia2019/claude-code-engineering1.2K starsGenerates API reference from source code by extracting endpoints, parameters, schemas, and auth requirements.
api-docs-generatorpatricio0312rev/skills412 installsAPI documentation generator that builds OpenAPI specs with interactive docs, code examples, and SDK generation.
openapi-to-application-codegithub/awesome-copilot9.6K installsGenerate a complete, runnable application from an OpenAPI spec, following the target framework's conventions.
openapi-generatorpatricio0312rev/skills325 installsGenerates OpenAPI 3.0/3.1 specs from Express, Next.js, Fastify, Hono, or NestJS routes with schemas and examples.
code-documenterjeffallan/claude-skills6.3K installsGenerates docstrings, OpenAPI specs, JSDoc, and doc sites with validated, tested examples.
project-docsjezweb/claude-skills1.3K installsGenerates ARCHITECTURE.md, API_ENDPOINTS.md, and DATABASE_SCHEMA.md from the actual codebase for onboarding or stale docs.