docs

A documentation workflow that directs requests such as README files, API references, runbooks, and onboarding guides to the documentation process.

In plain words
What is it for?
It is for creating or refreshing technical documentation, including instructions for operating services and helping new engineers get started.
Why use it?
It gives documentation tasks a consistent entry point and helps keep written guidance aligned with the project.

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/docs
Any agent
npx skills add drafthq/draft --skill docs
Clone the repo
git clone --depth 1 https://github.com/drafthq/draft

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 356 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.00047 $0.00356
Opus 5 $0.00023 $0.00178
Sonnet 5 $0.00009 $0.00071
Haiku 4.5 $0.00005 $0.00036

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

Security

Grade A, and why

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 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/docs/SKILL.md · 43 lines

What it actually says

Docs - Authoring & Documentation Router

/draft:docs provides a single namespace for all documentation generation and maintenance tasks.

When to Use

  • Generating or refreshing README, API docs, runbooks, or onboarding guides
  • Producing technical documentation from existing architecture and code context
  • Keeping documentation in sync after implementation or review phases

Routing Logic

Currently focused on the documentation specialist. Future expansion may include additional authoring helpers under the same router.

User Intent Keywords Dispatches To Purpose
write docs, documentation, readme, runbook, api docs, onboarding guide, generate docs /draft:documentation Technical documentation authoring (readme, runbook, api, onboarding)

Dispatch Examples

User: "write a README for the new service"

→ dispatches to /draft:documentation readme

User: "generate an API reference and runbook for the billing module"

→ dispatches to /draft:documentation api runbook

User: "create onboarding guide for new engineers"

→ dispatches to /draft:documentation onboarding

Notes

The documentation command reads heavily from draft/architecture.md, draft/.ai-context.md, draft/product.md, and draft/tech-stack.md (plus graph artifacts when present).

Prefer /draft:docs going forward for all authoring requests. The legacy direct form remains for compatibility (see migration guidance).

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 · 43 lines · 47 tokens per session scan A a1d4c810bac1

Subscribe to this mod's changes

docs is a skill published in the GitHub repository drafthq/draft (40 stars, last pushed 13d ago), licensed MIT. It adds 47 tokens to every session and 356 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.