Doc writing

From huangjia2019/claude-code-engineering · View interactive version

Doc writing is an AI agent skill from the GitHub repository huangjia2019/claude-code-engineering. Generate API documentation from a route manifest. Use when you have a list of discovered routes and need to produce markdown documentation.

How to use this skill

Skill file

Doc Writing Skill

Generate structured API documentation from a route manifest.

Input

You will receive a route manifest (JSON array) from the previous pipeline stage.

Each entry contains: method, path, file, line, middleware, type.

Process

Step 1: Read Source Code

For each route in the manifest, read the source file to understand:

Step 2: Generate Documentation

Use the template at templates/endpoint-doc.md for each route group.

Group routes by their source file (e.g., all product routes together).

Step 3: Write Files

Write one markdown file per route group to the docs/ directory:

Output

Return a manifest of generated documentation files:

{
  "files_generated": ["docs/products-api.md", "docs/categories-api.md"],
  "routes_documented": 8,
  "routes_skipped": [],
  "warnings": []
}

This manifest will be consumed by the next pipeline stage (quality-checking).

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.