documentation

A workflow for writing and maintaining technical documentation in four modes: README, operations runbook, API reference, and developer onboarding. It uses the code and project context to match the intended audience.

In plain words
What is it for?
Creating or updating README files, service runbooks, API documentation, and guides for new developers.
Why use it?
It helps keep documentation accurate, focused on public behavior, and connected to existing project information.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/drafthq/draft/documentation
Any agent
npx skills add drafthq/draft --skill documentation
Clone the repo
git clone --depth 1 https://github.com/drafthq/draft

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00033 $0.01424
Opus 5 $0.00016 $0.00712
Sonnet 5 $0.00007 $0.00285
Haiku 4.5 $0.00003 $0.00142

Measured yesterday against content hash 52b6534825c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

documentation 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 yesterday.

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.

skills/documentation/SKILL.md · 209 lines

How it starts

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

Documentation

You are generating or updating technical documentation for this project using structured writing principles.

Red Flags — STOP if you're

  • Writing docs without reading the code first
  • Duplicating information that exists elsewhere (link instead)
  • Writing docs for internal implementation details (only public interfaces)
  • Ignoring the target audience (developer vs operator vs new hire)
  • Generating a wall of text without structure or examples

Write for the reader. Link don't duplicate. Show don't tell.


Pre-Check

  1. Check for Draft context:
ls draft/ 2>/dev/null

If draft/ doesn't exist, this skill works standalone — generate docs from code analysis.

  1. Follow the base procedure in core/shared/draft-context-loading.md.

Step 1: Parse Arguments

  • /draft:documentation readme — Generate or update project README
  • /draft:documentation runbook <service> — Operations runbook for a service
  • /draft:documentation api <module> — API documentation for a module
  • /draft:documentation onboarding — New developer onboarding guide
  • /draft:documentation (no args) — Interactive: ask what type of documentation

Step 2: Gather Source Material

README Mode

  • Read existing README.md (if any)
  • Read draft/product.md — Product vision, users, goals
  • Read draft/tech-stack.md — Technologies, setup requirements
  • Read draft/workflow.md — Development workflow, commands
  • Scan for Makefile, package.json, pyproject.toml — Build/run commands

Runbook Mode

  • Read draft/architecture.md or draft/.ai-context.md — Service topology, dependencies
  • Read draft/workflow.md — Deployment conventions
  • Read draft/tech-stack.md — Infrastructure details
  • If GitHub MCP available: check recent deployment changes
  • If Jira MCP available: check recent incident tickets for the service

API Mode

  • Read source code for public interfaces, exported functions, API routes
  • Read existing API docs (Swagger, OpenAPI, JSDoc, docstrings)
  • Read draft/architecture.md — API conventions, data models
  • Read draft/tech-stack.md — API framework details

Read the full file on GitHub · 209 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. yesterday First seen · 209 lines · 33 tokens per session scan A 52b6534825c5

Subscribe to this mod's changes

documentation is a skill published in the GitHub repository drafthq/draft (40 stars, last pushed 13d ago), licensed MIT. It adds 33 tokens to every session and 1,424 once invoked, about $0.0002 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-08-30.