Skip to content
Back to skills

Api Docs

ASecurity

Generates API documentation from route definitions (Express, Fastify, Hono, etc.)

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 1, 2026
ai-agentsbashexpressapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill api-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Docs?

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

Security grade badge for Api Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-api-docs/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-api-docs)

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-docs
description: Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
argument-hint: [routes-directory]
user-invocable: true
allowed-tools: Read Glob Grep Edit
effort: medium
---

## Generate API Documentation

Routes directory: **$1** (or auto-detect)

1. Find all route definitions:
```bash
grep -rn "router\.\(get\|post\|put\|patch\|delete\)\|app\.\(get\|post\|put\|patch\|delete\)" ${1:-src/} --include="*.ts" -l
```

2. For each route, extract:
   - Method + path
   - Path parameters, query params
   - Request body shape (from Zod schema, type, or interface)
   - Response shape
   - Auth requirements (middleware check)
   - Error responses

3. Generate documentation in OpenAPI 3.0 YAML format OR a readable Markdown table - ask the user which format.

**Markdown format:**
```markdown
### POST /api/users
Creates a new user.

**Body:** `{ name: string, email: string }`
**Response:** `{ id: string, createdAt: string }`
**Auth:** Bearer token required
```

4. Save to `docs/api.md` or `openapi.yaml`.

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.