api-doc-gen
Installation
SKILL.md
API Doc Generator
Generate or validate API documentation by scanning source code. Currently optimized for Go (with Fiber, Echo, Chi, Gin support). The output is a multi-file directory structure — one Markdown file per endpoint, grouped by handler domain — so each API is easy to find, review, and maintain independently.
Output Structure
docs/api/
├── index.md ← service header, overview, endpoints table, common errors
├── <group>/
│ ├── <endpoint>.md ← one endpoint per file
│ └── ...
└── ...
- Grouping: each subdirectory under the handler base directory = one group
- File naming: handler function name converted to kebab-case (e.g.,
AcceptConsent→accept-consent.md) - Index:
docs/api/index.mdlinks to every endpoint file