# api-docs-gen

> Convert source code into OpenAPI 3.0 specs or Markdown docs via static analysis of Express, FastAPI, and more.

api-docs-gen is a paid AI agent skill on Agensi by Kevin Cline, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [Kevin Cline](https://www.agensi.io/creators/kevin-cline)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0.0
- Last updated: 2026-04-10
- Security: scan passed (2026-04-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/api-docs-gen
- Tags: developer-tools, documentation, openapi

## About this skill

### Automated API Documentation from Source Code

Ditch the manual Swagger updates. This skill performs deep static analysis on your backend source code to generate professional-grade API documentation instantly. It maps routes, methods, schemas, and authentication requirements without requiring any manual entry or API keys.

### What it does

- **Multi-Framework Discovery:** Supports Node.js (Express, Next.js, Hono, Koa), Python (FastAPI, Flask, Django REST), and more.

- **Deep Schema Extraction:** Infers request/response shapes from TypeScript interfaces, Zod schemas, Pydantic models, and JSDoc comments.

- **Auth Mapping:** Automatically identifies protected routes by detecting middleware like JWT, Passport, or FastAPI Dependencies.

- **Dual Output Formats:** Exports to valid OpenAPI 3.0 YAML for tooling or clean Markdown for READMEs and internal wikis.

### Why use this skill?

Writing documentation is tedious and prone to drifting from reality. Unlike generic prompts, this skill uses specific heuristics to scan your file system, understand framework-specific routing patterns, and infer types from variable naming conventions when explicit types are missing. It produces structured, deployment-ready documentation that follows industry standards.

### Supported Industry Tools

- **Specifications:** OpenAPI 3.0.3 (Swagger)

- **Documentation:** GitHub-flavored Markdown

- **Validation:** Compatible with Swagger UI, Redoc, and Postman

## Known limitations

- May miss endpoints in highly dynamic/metaprogrammed logic
- Complex nested types might require manual cleanup
- Limited support for compiled binaries or heavily obfuscated code

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the api-docs-gen skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does api-docs-gen improve my development workflow compared to manual documentation?

This skill uses static analysis to scan your backend source code, automatically mapping routes and schemas to OpenAPI or Markdown, which eliminates manual documentation updates and prevents 'doc-drift.'

### Which frameworks and programming languages are currently supported?

The skill supports high-level backend frameworks including Express, Next.js, FastAPI, Flask, and Django REST, and can infer data shapes from TypeScript, Zod, and Pydantic.

### Do I need to provide my API keys or live environment access for this to work?

No, this skill performs static analysis on your code files to infer documentation, meaning you don't need to provide live API keys or grant access to your production environment.

### What exactly is included with my purchase of this skill?

You will receive the core logic for the api-docs-gen skill, compatible with major AI agent platforms, along with documentation on how to integrate it into your CI/CD pipeline or local CLI.

### Can this skill identify protected routes and authentication requirements automatically?

Yes, the skill is designed to detect security middleware like JWT or Passport and will correctly mark those requirements in the generated OpenAPI 'securitySchemes' section.

### How are framework updates and new OpenAPI versions handled?

Updates are released periodically to support new framework versions and documentation standards; buyers receive lifetime access to all future version improvements for this skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
