Skip to content
Back to skills

Doc Writing

ASecurity

Generate API documentation from a route manifest. Use when you have a list of discovered routes and need to produce markdown documentation.

  • 1,089 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsgoapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add huangjia2019/claude-code-engingeering --skill doc-writing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Writing?

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

Security grade badge for Doc Writing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/huangjia2019-doc-writing-claude-code-engineering/badge)](https://www.skillsdirectory.com/skills/huangjia2019-doc-writing-claude-code-engineering)

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: doc-writing
description: Generate API documentation from a route manifest. Use when you have a list of discovered routes and need to produce markdown documentation.
allowed-tools: [Read, Write, Glob]
---

# 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:
- Request parameters (path, query, body)
- Response format
- Error handling
- Business logic summary

### 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:
- `docs/products-api.md`
- `docs/categories-api.md`
- etc.

## Output

Return a manifest of generated documentation files:

```json
{
  "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).

Files in this skill

  • SKILL.md1.3 KB
  • templates/endpoint-doc.md627 B

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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