document-writer

document-writer is a skill for Claude Code from tuannv0069/claude-doc-genome. It costs 0 tokens per session (2,380 once invoked), scanned A, original, MIT.

A technical editing guide for creating or substantially rewriting substantive Markdown documents, such as specifications, design documents, guidelines, and process documents.

In plain words
What is it for?
It helps plan and write project documents while checking the output path, structure, wording, required references, and special sections such as Mermaid diagrams.
Why use it?
It helps make documents precise, self-contained, and understandable to both people and software agents.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Part of the claude-doc-genome plugin — 2 skills shipped together

Good fit It helps plan and write project documents while checking the output path, structure, wording, required references, and special sections such as Mermaid diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tuannv0069/claude-doc-genome/document-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tuannv0069/claude-doc-genome --skill document-writer
Clone the repo
git clone --depth 1 https://github.com/tuannv0069/claude-doc-genome

Made for: Claude Code.

Or install claude-doc-genome, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for document-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/tuannv0069/claude-doc-genome/document-writer/github.svg)](https://agentmods.dev/skills/tuannv0069/claude-doc-genome/document-writer)
Your own site
<a href="https://agentmods.dev/skills/tuannv0069/claude-doc-genome/document-writer"><img src="https://agentmods.dev/badge/skills/tuannv0069/claude-doc-genome/document-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for document-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/tuannv0069/claude-doc-genome/document-writer"><img src="https://agentmods.dev/badge/skills/tuannv0069/claude-doc-genome/document-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,380 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02380
Opus 5 $0.00000 $0.01190
Sonnet 5 $0.00000 $0.00476
Haiku 4.5 $0.00000 $0.00238

Measured 3d ago against content hash 0de55e5b3c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

document-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/document-writer/SKILL.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dependencies

  • .agent-workspace/guide/general/mermaid.md §M7 + §2 — required only when the output document contains a ```mermaid block (applied in §5.8).

§1 Role

You are a Technical Editor. Write every document to be precise, self-contained, and unambiguous:

  • Every sentence is either an instruction or a fact the reader needs.
  • No implicit context — state everything explicitly.
  • Readers include both humans and LLM Agents executing the document.

§2 Input Validation

Parse $ARGUMENTS: first token = {OUTPUT_PATH}, remainder = {CONTENT_BRIEF}.

If {OUTPUT_PATH} is missing → stop:

Error: OUTPUT_PATH is required.
Usage: /document-writer <OUTPUT_PATH> [CONTENT_BRIEF]

If {OUTPUT_PATH} is under .codex/** → stop:

SKIP: .codex/** files are out of scope (each file type has its own standard under .codex/rules/).

If {OUTPUT_PATH} is under .agent-workspace/guide/** → stop:

SKIP: .agent-workspace/guide/** is the on-demand agent rule tree — out of scope (governed by doc-organization.md).

If {OUTPUT_PATH} matches a pattern in the project's document-writing skip list (the project AGENTS.md ## document writing section — e.g. detailed-design-*.md, auto-generated files) → stop:

SKIP: {OUTPUT_PATH} is in the project's document-writing skip list.

If {OUTPUT_PATH} already exists → read it first. Mode = rewrite (preserve intent, apply §4–§5 constraints). Otherwise mode = new.

§3 Scope

Apply to any .md document in the project outside .codex/**: guidelines, specs, design docs, process docs, READMEs, business documentation.

Excluded:

  • Any path under .codex/** (skills, agents, rules — governed by their own standards in .codex/rules/).
  • Any path under .agent-workspace/guide/** (on-demand agent rule tree — governed by doc-organization.md, not these §A–§G constraints).
  • Any path the project declares out of scope in its AGENTS.md ## document writing skip list (e.g. detailed-design-*.md, auto-generated files) — governed by that project's own rules.

Read the full file on GitHub · 206 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -14 lines · -267 tokens per session 0de55e5b3c69
  2. 10d ago First seen · 220 lines · 267 tokens per session scan A 38bd23b5d984

Subscribe to this mod's changes

document-writer is a skill published in the GitHub repository tuannv0069/claude-doc-genome (1 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,380 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

docs-drift

Documentation-drift audit for this plugin monorepo. Audit either each scoped plugin's unreleased changelog claims or its latest shipped release from the previous reachable plugin-name--v tag, then verify that plugin READMEs, docs, CLAUDE.md or AGENTS.md files, and root documentation tell the truth for the matching…

gtapps/claude-code-hermit · 170 tokens

cco-tools

Show what tools actually cost in tokens — learned per-tool averages from observed results, replacing the hardcoded MCP/Agent guesses.

egorfedorov/claude-context-optimizer · 27 tokens

github-pr-creation

Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing…

fvadicamo/dev-agent-skills · 75 tokens

test-run

Run plugin test suites in this monorepo and report a concise pass/fail summary. Optional plugin slug arg; without arg, runs all plugins under plugins/.

gtapps/claude-code-hermit · 35 tokens

design-system-reference

Style guides and implementation rules for frontend design. Works with design-discovery agent which handles context gathering and VS-based style recommendations. Contains detailed style guides, anti-patterns, and implementation checklists.

wigtn/wigtn-plugins · 43 tokens

magic-compact

Compact this Claude Code session.

aerovato/magic-compact · 10 tokens