Api doc generator

From clowlove/Hermes-House · View interactive version

Api doc generator is an AI agent skill from the GitHub repository clowlove/Hermes-House. Generate API documentation from code, OpenAPI specs, or raw endpoints. Supports Markdown, HTML, and interactive documentation.

How to use this skill

Skill file

API Doc Generator

Generate beautiful API documentation from code or specs.

Features

Usage

From Code

# 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

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

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

Generate Output

# 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

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

From OpenAPI 3.0

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

# 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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.