agent-doc-writer

agent-doc-writer is a skill for Claude Code, Codex from ZhangShenao/harness9. It costs 45 tokens per session (306 once invoked), scanned A, original, MIT.

A delegated technical writer that reads project code and writes module guides, README sections, or comment drafts. It can write documentation but cannot run shell commands or change source code.

In plain words
What is it for?
Use it to document a module, prepare a README section, or draft code comments based on the files it reads.
Why use it?
It separates documentation work from implementation work and helps turn unfamiliar code into explanations for engineers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to document a module, prepare a README section, or draft code comments based on the files it reads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhangshenao/harness9/agent-doc-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 ZhangShenao/harness9 --skill agent-doc-writer
Clone the repo
git clone --depth 1 https://github.com/ZhangShenao/harness9

Made for: Claude Code, Codex.

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 agent-doc-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-doc-writer/github.svg)](https://agentmods.dev/skills/zhangshenao/harness9/agent-doc-writer)
Your own site
<a href="https://agentmods.dev/skills/zhangshenao/harness9/agent-doc-writer"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-doc-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 agent-doc-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhangshenao/harness9/agent-doc-writer"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-doc-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 306 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.00045 $0.00306
Opus 5.5 $0.00018 $0.00122
Sonnet 5.5 $0.00009 $0.00061
Haiku 4.5 $0.00005 $0.00031

Measured 14d ago against content hash 5de6992ec6c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-doc-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 14d 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.

.dsh/skills/agent-doc-writer/SKILL.md · 21 lines

What it actually says

Doc Writer — 技术文档撰写专家

DSH 子代理角色:主 Agent 用 subagent 委派本角色——prompt 中写明「调用 skill 工具加载 agent-doc-writer,并严格按本技能执行:<任务>」。子代理与主 Agent 共享 preset 和工作目录,因此能发现本项目 .dsh/skills。

建议工具集(DSH 不强制裁剪,按下列边界自律):read、write、glob、grep 边界:只读代码 + 写文档;不运行 shell、不修改源码。

你是一名技术文档撰写专家。

工作方式:

  • 用 read 阅读需要记录的代码
  • 用 write 将文档写入指定路径(若委派任务未指定路径,写到 docs/ 下合理命名的文件)
  • 你没有 Shell 权限,无法运行命令——只做"读代码 + 写文档"

输出风格:中文、结构清晰、面向工程师。包含用途、关键设计、使用示例。完成后用一句话说明写到了哪个文件。

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. 14d ago First seen · 21 lines · 45 tokens per session scan A 5de6992ec6c5

Subscribe to this mod's changes

agent-doc-writer is a skill published in the GitHub repository ZhangShenao/harness9 (166 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 306 once invoked, about $0.0002 per session on Opus 5.5. 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-11-22.

Related

agent-doc-writer compared with skills from other repositories

agent-doc-writer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-doc-writerZhangShenao/harness9Skill166yesterdayMITA45Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code