This does the grunt work of turning your API code into documentation, whether you need markdown for your README or a proper OpenAPI spec. It scans route definitions across different frameworks, pulls out methods, paths, parameters, and schemas, then generates structured docs. Includes Python scripts to auto-detect routes and validate specs, plus templates for consistent formatting. Honestly most useful when you've already built the API and realize you have zero documentation, or when you're scaffolding new endpoints and want the boilerplate handled. Supports the usual suspects like REST patterns and Swagger output. Won't write your API for you, but it'll document what's there faster than doing it by hand.

GitHub stars
826
last updated
May 30, 2026

Install

$ npx -y skills add huangjia2019/claude-code-engineering --skill api-generating --agent claude-code

Installs into .claude/skills of the current project.

Files

API Documentation Generator

Generate comprehensive API documentation from source code.

Quick Reference

TaskResource
Identify frameworkSee PATTERNS.md
Documentation standardsSee STANDARDS.md
Example outputsSee EXAMPLES.md

Process

Step 1: Identify API Endpoints

Look for route definitions. For framework-specific patterns, see PATTERNS.md.

Step 2: Extract Information

For each endpoint, extract:

  • HTTP method (GET, POST, PUT, DELETE, etc.)
  • Path/route
  • Parameters (path, query, body)
  • Request/response schemas
  • Authentication requirements

Step 3: Generate Documentation

Use the template in templates/endpoint.md for each endpoint.

Step 4: Create Overview

Generate an index using templates/index.md.

Output Formats

Markdown (Default)

Generate markdown suitable for README or docs site.

OpenAPI/Swagger

If requested, generate OpenAPI 3.0 spec. See templates/openapi.yaml.

Automation

To auto-detect routes:

python scripts/detect_routes.py <source_directory>

To validate OpenAPI spec:

./scripts/validate_openapi.sh <spec_file>

Sponsors

Details

Repository
github.com/huangjia2019/claude-code-engineering
Categories
Backend & APIs, Documentation, Automation & Workflows
First seen
Jun 11, 2026

More from huangjia2019/claude-code-engineering

All 11
1rknall avatarPython Backend Architecture Reviewrknall/claude-skillsComprehensive design architecture review for Python backend applications. Use this skill when users ask you to review, analyze, or provide feedback on backend a0skills.sh installs
2sunflowermm avatarxrk-authsunflowermm/XRK-AGT当你需要解释/排查 HTTP 或 WebSocket 的 401、127 回环例外、API Key 机制时使用;确保业务层不重复鉴权。0skills.sh installs
3planetscale avatarmysqlplanetscale/database-skillsPlan and review MySQL/InnoDB schema, indexing, query tuning, transactions, and operations. Use when creating or modifying MySQL tables, indexes, or queries; dia8.8Kskills.sh installs
4prisma avatarprisma-postgresprisma/skillsPrisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK. Use when creating Prisma Postgres databases409.9Kskills.sh installs
5prisma avatarprisma-upgrade-v7prisma/skillsComplete migration guide from Prisma ORM v6 to v7 covering all breaking changes. Use when upgrading Prisma versions, encountering v7 errors, or migrating existi404.2Kskills.sh installs
6prisma avatarprisma-mongodb-upgradeprisma/skillsDecision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, wh397.8Kskills.sh installs