一键导入
api-docs
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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 |
Routes directory: $1 (or auto-detect)
grep -rn "router\.\(get\|post\|put\|patch\|delete\)\|app\.\(get\|post\|put\|patch\|delete\)" ${1:-src/} --include="*.ts" -l
For each route, extract:
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
docs/api.md or openapi.yaml.Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Finds unused functions, variables, exports, and dependencies across the codebase
Hata mesajı veya stack trace alır, kök nedeni bulur ve düzeltir