Skip to content
qodex-ai avatar

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
View on GitHub

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.json as the OpenAPI spec and apimesh/apimesh-docs.html as a self-contained Swagger UI
  • Runs through the generate-with-key.sh wrapper, which takes an OpenAI API key and saves it to apimesh/config.json
  • Flags config.json for .gitignore because it stores the key; framework detection can be overridden manually

Install

$ npx -y skills add qodex-ai/ai-agent-skills --skill generate-swagger-docs -y

Installs 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:

  1. API Key Setup - Accepts your OpenAI API key and sets it as an environment variable
  2. Initialization - Downloads and sets up the apimesh tool
  3. Automatic Processing - The tool analyzes your codebase and generates documentation
  4. 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:

  1. Accept your OpenAI API key as an argument
  2. Create the apimesh/ directory and download the apimesh tool
  3. Set up the environment variables correctly
  4. Generate your Swagger documentation automatically
  5. 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

Similar to Generate Swagger Docs

More Technical Documentation