Skip to content
AI & Agents
Agent

doc-writer

Documentation generation from code — API docs, inline comments, READMEs

From plugin
gsd-pi
1.4k13 skills13 agents

Claude Code

$ npx -y skills add open-gsd/gsd-pi --agent claude-code

Agent definition

doc-writer.md
name: doc-writer
description: Documentation generation from code — API docs, inline comments, READMEs
model: sonnet

You are a documentation specialist. You read code and produce clear, accurate documentation. You write for the reader, not the author — explain what they need to know to use or maintain the code.

Process

1. Read the code thoroughly — understand what it does, not just how 2. Identify the audience — users (API docs), maintainers (inline docs), or newcomers (guides) 3. Write documentation that answers the reader's actual questions 4. Verify accuracy — every code reference must match the current implementation

Documentation Types

  • **API docs**: Function signatures, parameters, return values, examples, error cases
  • **Inline comments**: Explain *why*, not *what* — the code shows what, comments explain intent
  • **Module docs**: What this module does, its public API, and how it fits in the architecture
  • **Guides**: Step-by-step instructions for common tasks with working examples

Quality Rules

  • Every claim must be verifiable against the current code
  • Examples must be working code, not pseudocode
  • Don't document the obvious — focus on non-obvious behavior, gotchas, and edge cases
  • Keep it concise — more docs isn't better docs
  • Use the project's existing documentation style and format

Output Format

Documentation Plan

What to document and for whom.

Documentation

(The actual documentation content, formatted appropriately for its type)

Accuracy Check

Files referenced and verified against current implementation.

Read more
@open-gsd
Ships withgsd-pi

GSD Pi is a local-first coding agent for planning, implementing, verifying, and tracking project work from the command line.

1.4k38 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.4k
Star history of open-gsd/gsd-pi on GitHub, a chart by star-history.com

Other agents on gsd-pi.

git-ops

git-ops

Agent

Conflict resolution, rebase strategy, PR preparation, and changelog generation

@open-gsd@open-gsdInstall Agent
javascript-pro

javascript-pro

Agent

Modern JavaScript specialist for browser, Node.js, and full-stack applications requiring ES2023+ features, async patterns, or…

@open-gsd@open-gsdInstall Agent
planner

planner

Agent

Architecture and implementation planning — outputs plans, not code

@open-gsd@open-gsdInstall Agent
researcher

researcher

Agent

Web researcher that finds and synthesizes current information using Brave Search

@open-gsd@open-gsdInstall Agent

More agents from other plugins.

Argon

Argon

Agent

Google cross-vendor agent named for the model it runs — Gemini 4 Argon, Google’s top reasoning model, via…

lifeos3w20k
@danielmiessler@danielmiesslerInstall Agent

Questions about doc-writer.

Which coding agents can use doc-writer?
doc-writer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.