generate-swagger-docs

Generates OpenAPI 3.0 spec and HTML docs from codebases.

1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/mislam-dev/department-management-system-api --skill generate-swagger-docs-mislam-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-swagger-docs
Source: https://github.com/mislam-dev/department-management-system-api/tree/main/.agents/skills/generate-swagger-docs
Command: npx skills add https://github.com/mislam-dev/department-management-system-api --skill generate-swagger-docs-mislam-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generate OpenAPI documentation by analyzing a codebase to discover API endpoints and produce swagger.json and a self-contained HTML docs viewer.

Core Features & Use Cases

  • Scans repositories to detect endpoints across major frameworks (Express, NestJS, FastAPI, Django, Rails, Go) and languages.
  • Generates OpenAPI 3.0 specification (swagger.json) and a self-contained interactive documentation HTML (apimesh-docs.html).
  • Works with public and private repositories, enabling automated API documentation as part of CI/CD workflows.

Quick Start

Run the generate-with-key.sh script with your OpenAI API key to generate the OpenAPI docs for your codebase.

Frequently Asked Questions about generate-swagger-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate OpenAPI documentation from my existing codebase?

To auto-generate OpenAPI documentation, scan your codebase to discover API endpoints and compile a swagger.json file. This process detects routes across major web frameworks and outputs an OpenAPI 3.0 specification along with a self-contained HTML viewer.

Does swagger generation work with FastAPI, Django, and Express frameworks?

Swagger generation works with FastAPI, Django, Express, NestJS, Rails, and Go frameworks. The scanner analyzes repositories across these major web frameworks and languages to automatically detect API endpoints and produce OpenAPI specs.

What do I need to generate swagger.json and HTML docs from a repository?

To generate swagger.json and HTML docs, you need an OpenAI API key, the apimesh tool, and a repository to scan. You run the generate-with-key.sh script with your key to automate endpoint discovery and compile the documentation.

Can I use automated API documentation generation for private repositories in a CI/CD workflow?

Automated API documentation generation works with both public and private repositories. You can integrate the scanning and OpenAPI spec generation process directly into your CI/CD workflows to continuously update your swagger.json and HTML docs.

What is the best way to create an interactive HTML viewer for my API endpoints?

The best way to create an interactive HTML viewer is to scan your codebase to detect endpoints and compile a self-contained apimesh-docs.html file. This approach automatically generates a standalone interactive documentation viewer from your discovered routes.