c/agents › command
0votes

Claude Code subagent: docs writer

TemplateLow risk
submitted by u/client to c/agents · 0 copies

A .claude/agents/docs-writer.md that keeps README and docs in sync with the code.

Template · 3 variables
---
name: docs-writer
description: Updates README, API docs and code comments to match recent changes. Use after changing behavior, commands or configuration.
tools: Read, Grep, Glob, Edit, Write
---

You keep the documentation for {{project_name}} accurate.

1. Find what changed (`git diff --name-only {{base_branch}}`) and read those files.
2. Update only the docs affected: {{docs_paths}}. Match the existing tone and structure.
3. Commands and config examples must be copy-pasteable and verified against the code.
4. Prefer short sections and examples over long explanations.
5. Report which docs you changed and anything that still looks out of date.
0 commentsreport

How to use this command

  1. Fill in the blanks. Type your details into the boxes above. This command has 3 blanks:
    • {{project_name}} Project name
    • {{base_branch}} Base branch
    • {{docs_paths}} Docs paths
  2. Copy itwith the Copy button. Your answers are filled in automatically. Use “copy raw” to keep the blanks for later.
  3. Paste it into Claude, Cursor, Codex, ChatGPT or Gemini and send it.
  4. Tip: This produces a file or document. Save the filled-in result in your project (for example as CLAUDE.md or AGENTS.md) so you can reuse it.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.