Api docs

From berkcangumusisik/claude-code-practices · View interactive version

Api docs is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Generates API documentation from route definitions (Express, Fastify, Hono, etc.)

How to use this skill

Skill file

Generate API Documentation

Routes directory: $1 (or auto-detect)

  1. Find all route definitions:
grep -rn "router\.\(get\|post\|put\|patch\|delete\)\|app\.\(get\|post\|put\|patch\|delete\)" ${1:-src/} --include="*.ts" -l
  1. For each route, extract:
  1. Generate documentation in OpenAPI 3.0 YAML format OR a readable Markdown table - ask the user which format.

Markdown format:

### POST /api/users
Creates a new user.

**Body:** `{ name: string, email: string }`
**Response:** `{ id: string, createdAt: string }`
**Auth:** Bearer token required
  1. Save to docs/api.md or openapi.yaml.
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.