📝
WritingJavaScript

Doc Writing

by huangjia2019

Doc Writing is a Writing skill for Claude Code, published by huangjia2019 in claude-code-engineering.

1.1K stars379 forkson huangjia2019/claude-code-engineeringAdded 2026/08/21Repository updated 2026/07/23
agentagentic-aiaiclaudeclaude-codeclaude-skills
Install in seconds
Install Doc Writing
Copy Doc Writing into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/huangjia2019/claude-code-engineering/tree/main/04-Skills/projects/08-skill-pipeline/.claude/skills/doc-writing ~/.claude/skills/doc-writing

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/huangjia2019/claude-code-engineering.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
04-Skills/projects/08-skill-pipeline/.claude/skills/doc-writing/SKILL.md in huangjia2019/claude-code-engineering
Installs to
~/.claude/skills/doc-writing
Collection
One of 13 skills cataloged from this repository
Category
Writing1012 skills

What Doc Writing does

Doc Writing generates markdown API documentation from a route manifest. Use it when you have discovered routes and need grouped endpoint docs written from source code.

Doc Writing is cataloged under Writing on DirSkills. Doc Writing comes from a repository tagged agent, agentic-ai, ai, claude and claude-code.

Documentation

README

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

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Doc Writing

  • What else does huangjia2019 publish alongside Doc Writing?

    Doc Writing is one of 13 skills that DirSkills catalogs from huangjia2019/claude-code-engineering, the repository it ships in. Its siblings there include API Conventions, API Documentation and API Documentation Generator. Each one is a separate skill with its own page in this directory, installs the same way Doc Writing does, and is maintained by huangjia2019 in that same repository. The rest of the collection is listed on the huangjia2019/claude-code-engineering page.

  • How does Doc Writing compare to other Writing skills?

    Doc Writing ranks #426 by stars among the 1012 Writing skills in this catalog. The most-starred ones next to it are Article Writing, Social Media Content Calendar and Knowledge Comic Creator. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Doc Writing against them. Open each page to compare what they document and how they install.

More from huangjia2019/claude-code-engineering

Doc Writing is one of 13 skills cataloged on DirSkills from huangjia2019/claude-code-engineering.

See all 13 skills