Skip to content
Back to skills

Api Doc Generator

ASecurity

Generate API documentation from code, OpenAPI specs, or raw endpoints. Supports Markdown, HTML, and interactive documentation.

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
ai-agentspythongobashnodeexpressfastapigitapisecuritydocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add clowlove/Hermes-House --skill api-doc-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Doc Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Doc Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/clowlove-api-doc-generator/badge)](https://www.skillsdirectory.com/skills/clowlove-api-doc-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-doc-generator
description: "Generate API documentation from code, OpenAPI specs, or raw endpoints. Supports Markdown, HTML, and interactive documentation."
triggers:
  - "generate api docs"
  - "API 文档生成"
  - "openapi documentation"
  - "swagger docs"
---

# API Doc Generator

Generate beautiful API documentation from code or specs.

## Features

- 📝 **Multi-format** — Markdown, HTML, PDF
- 🎨 **Interactive** — Try-it-out functionality
- 📊 **OpenAPI** — Generate from OpenAPI/Swagger
- 🔄 **Auto-sync** — Keep docs updated
- 🌐 **Hosting** — Deploy to GitHub Pages

## Usage

### From Code

```bash
# Python FastAPI
hermes api-docs generate --framework fastapi --file main.py

# Node.js Express
hermes api-docs generate --framework express --dir ./src

# Go Gin
hermes api-docs generate --framework gin --file main.go
```

### From OpenAPI

```bash
# Generate from spec
hermes api-docs generate --spec openapi.yaml

# Update existing
hermes api-docs update --spec openapi.yaml --output ./docs
```

### Generate Output

```bash
# Markdown
hermes api-docs generate --format markdown --output README.md

# HTML (Redoc)
hermes api-docs generate --format html --output docs/

# Stoplight
hermes api-docs generate --format stoplight --output docs/
```

## Examples

### FastAPI Project
```bash
hermes api-docs generate \
  --framework fastapi \
  --file app/main.py \
  --title "My API" \
  --version 1.0.0 \
  --output docs/
```

### From OpenAPI 3.0
```bash
hermes api-docs generate \
  --spec api.yaml \
  --theme redoc \
  --output docs/
```

## Output Formats

| Format | Use Case | Interactive |
|--------|----------|-------------|
| Markdown | GitHub README | ❌ |
| HTML/Redoc | Self-hosted docs | ✅ |
| HTML/Swagger | Swagger UI | ✅ |
| Slate | Stripe-style docs | ✅ |
| PDF | Offline viewing | ❌ |

## Configuration

```yaml
# api-docs-config.yml
output:
  format: redoc
  theme: dark
  
metadata:
  title: My API
  version: 1.0.0
  description: API documentation
  
hosting:
  provider: github-pages
  branch: gh-pages
```

## Pitfalls

1. **Spec Quality** — Good docs need good OpenAPI spec
2. **Keep Updated** — Docs can become stale
3. **Security** — Don't expose internal endpoints

Files in this skill

  • SKILL.md2.2 KB
  • skill.json509 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…