write-docs

write-docs is a skill for Claude Code, Codex from open-gsd/gsd-pi. It costs 94 tokens per session (1,278 once invoked), scanned A, original, MIT.

A collaborative documentation workflow for proposals, technical specifications, decision records, README files, and other long-form writing. It starts by understanding the reader and purpose, then shapes the structure and checks whether a new reader can use the result.

In plain words
What is it for?
Use it to draft or revise project documentation, design proposals, RFCs, architecture decisions, and README files.
Why use it?
It helps avoid documents that make sense only to the people who already know the project. It catches unclear structure and missing context before the document is finished.

Skill for Claude CodeCodex

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

Good fit Use it to draft or revise project documentation, design proposals, RFCs, architecture decisions, and README files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-gsd/gsd-pi/write-docs
About the project

GSD Pi is a command-line coding agent and project workflow system that plans, implements, verifies, and tracks software work through milestones, tasks, Git worktrees, and stored project notes. It is for developers who want structured, longer-running agent sessions using different model providers. The catalogue entries extend GSD Pi with skills and agents.

open-gsd/gsd-pi · 1,210 stars · on GitHub · opengsd.net

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 open-gsd/gsd-pi --skill write-docs
Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-pi

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 write-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-gsd/gsd-pi/write-docs/github.svg)](https://agentmods.dev/skills/open-gsd/gsd-pi/write-docs)
Your own site
<a href="https://agentmods.dev/skills/open-gsd/gsd-pi/write-docs"><img src="https://agentmods.dev/badge/skills/open-gsd/gsd-pi/write-docs/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 write-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-gsd/gsd-pi/write-docs"><img src="https://agentmods.dev/badge/skills/open-gsd/gsd-pi/write-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,278 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00094 $0.01278
Opus 5 $0.00047 $0.00639
Sonnet 5 $0.00019 $0.00256
Haiku 4.5 $0.00009 $0.00128

Measured 5d ago against content hash 819628ac9708, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

write-docs 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 5d 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.

src/resources/skills/write-docs/SKILL.md · 83 lines

How it starts

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

Invocation points:

  • User asks to write or rewrite a piece of documentation
  • Before shipping a feature that adds user-facing behavior — docs need updates
  • After write-milestone-brief when the brief needs a public-facing summary for non-GSD consumers
  • PR description for a meaningful change

<core_principle> WRITE FOR THE FRESH READER. The test is not "does the maintainer understand it" — you are the maintainer. The test is "can someone who has never seen this code act correctly after reading this?"

ITERATE STRUCTURE BEFORE PROSE. An outline that's wrong will not be saved by good sentences. Agree on the sections, what each is for, and in what order before drafting the body.

NO FILE PATHS IN TRUNK DOCS. Paths rot. Describe modules, behaviors, and invariants. A README that cites src/foo.ts:42 is a future broken link. </core_principle>

Stage 1: Context gathering

  1. Who is the reader? Internal engineer, open-source contributor, end user, future you at 3am. The answer changes everything.
  2. What should they be able to do after reading? Name the single post-read action. "Understand the auth flow" is not an action — "implement a new auth provider using the documented extension points" is.
  3. What do they already know? Assume they have docs for the language and framework, not for your codebase. Don't re-explain React; do explain your project's conventions.
  4. What context from this conversation/codebase belongs in the doc? Ask the user to dump any missing material. Do not invent examples.

One round of clarifying questions. Then proceed.

Read the full file on GitHub · 83 lines

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. 5d ago First seen · 83 lines · 94 tokens per session scan A 819628ac9708

Subscribe to this mod's changes

write-docs is a skill published in the GitHub repository open-gsd/gsd-pi (1,210 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 1,278 once invoked, about $0.0005 per session on Opus 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-09-03.