qodex-ai avatar

Generate Swagger Docs

Automatically generates OpenAPI 3.0 specs and interactive Swagger UI docs by scanning your codebase for API endpoints. It uses the apimesh tool under the hood, which requires an OpenAI API key to analyze your code and detect frameworks like Express, FastAPI, Django, or Rails. The wrapper script handles the annoying parts of environment variable propagation so the key actually reaches the subprocess. Outputs swagger.json and a self-contained HTML file you can share. One catch: your API key gets saved locally in config.json, so make sure that's gitignored. Works well if you need docs fast and don't want to hand-write OpenAPI specs.

skills.sh installs
255
GitHub stars
48
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/qodex-ai/ai-agent-skills
Categories
Frontend Development, Backend & APIs, Documentation, AI & Agent Building
First seen
Jun 3, 2026

More from qodex-ai/ai-agent-skills

All 24
1novotnyllc avatardotnet-uinovotnyllc/dotnet-artisanBuilds .NET UI apps across Blazor (Server, WASM, Hybrid, Auto), MAUI (XAML, MVVM, Shell, Native AOT), Uno Platform (MVUX, Extensions, Toolkit), WPF (.NET 8+, Fl254skills.sh installs
2prowler-cloud avatartypescriptprowler-cloud/prowlerTypeScript strict patterns and best practices. Trigger: When implementing or refactoring TypeScript in .ts/.tsx (types, interfaces, generics, const maps, type g254skills.sh installs
3thehotwireclub avatarhwc-stimulus-fundamentalsthehotwireclub/hotwire_club-skillsCover Stimulus controller fundamentals: lifecycle hooks, values and valueChanged callbacks, targets and target callbacks, outlets, action parameters, keyboard e254skills.sh installs
4julianobarbosa avatarmarkitdown-skilljulianobarbosa/claude-code-skillsGuide for using Microsoft MarkItDown - a Python utility for converting files to Markdown. Use when converting PDF, Word, PowerPoint, Excel, images, audio, HTML,252skills.sh installs
5davila7 avatarcore-componentsdavila7/claude-code-templatesCore component library and design system patterns. Use when building UI, using design tokens, or working with the component library.249skills.sh installs
6dchuk avatarintegrating-tauri-rust-frontendsdchuk/claude-code-tauri-skillsGuides the user through integrating Rust-based WASM frontend frameworks with Tauri v2, covering Leptos and Trunk setup, WASM compilation configuration, Cargo.to248skills.sh installs