Help us improve
Share bugs, ideas, or general feedback.
From hatch3r
Author technical documentation through a repeatable workflow: audience analysis, Diátaxis-mode selection, structure, draft, review, publish. Covers READMEs, ADRs, API docs, and runbooks.
npx claudepluginhub hatch3r/hatch3rHow this skill is triggered — by the user, by Claude, or both
Slash command
/hatch3r:hatch3r-docs-writingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Companion workflow to the `hatch3r-docs-writer` agent: that agent is the Phase-4 specialist invoked to update specs after a code change; this skill is the step-by-step procedure a human or agent follows to author a documentation artifact from scratch. Use the agent when documentation must track a `src/` diff; use this skill when authoring a new doc and you need the audience-analysis-through-pub...
Guides project documentation structure, content requirements, and best practices. Includes templates for README, ARCHITECTURE, API docs, and change history.
Drafts READMEs, API docs, tutorials, release notes, and reviews technical docs for clarity and structure. Activates on docs/ .md files and READMEs.
Share bugs, ideas, or general feedback.
Companion workflow to the hatch3r-docs-writer agent: that agent is the Phase-4 specialist invoked to update specs after a code change; this skill is the step-by-step procedure a human or agent follows to author a documentation artifact from scratch. Use the agent when documentation must track a src/ diff; use this skill when authoring a new doc and you need the audience-analysis-through-publish sequence.
Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Classify the doc by Diátaxis mode + name the audience
- [ ] Step 2: Pick the structure template for the chosen mode
- [ ] Step 3: Draft to the template, one mode per document
- [ ] Step 4: Run the review checklist (audience, accuracy, style, structure)
- [ ] Step 5: Publish — link from an index, set owner + last-updated, verify cross-references
The load-bearing decision is Step 1: a document serves exactly one of four user needs. Mixing learning content into a reference table, or burying a how-to procedure inside an explanation, is the most common defect this workflow prevents (Diátaxis — see References).
Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target audience, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: which doc type is wanted (README vs ADR vs API reference vs runbook), the reader's existing competence (new user vs maintainer vs on-call), whether an existing doc is being restructured (irreversible section moves), and where the published doc is linked from.
This skill delegates per task size:
Token cost never justifies under-fan-out. Emit sub_agents_spawned: { count, rationale } in your output.
Every document answers exactly one of four user needs. Pick one mode before writing a single sentence; if a request spans two, split it into two documents.
| Mode | User need | Reader state | Writing stance |
|---|---|---|---|
| Tutorial | Learning by doing | Newcomer, no prior context | Lesson — guarantee a working result, hide edge cases |
| How-to guide | Achieving a stated goal | Already competent, has a task | Recipe — numbered steps to one outcome, no theory |
| Reference | Looking up a fact | Working, needs accuracy | Description — complete, dry, structured, no narrative |
| Explanation | Understanding why | Studying, off-task | Discussion — context, trade-offs, alternatives, rationale |
Map common artifacts to modes:
| Artifact | Primary mode | Note |
|---|---|---|
| README | How-to (quickstart) + Reference (config) | Lead with the 60-second "get it running" path; link out to deep docs |
| API docs | Reference | Endpoint, params, request/response shapes, error codes, auth — one entry per endpoint |
| Runbook | How-to | Operational procedure: prerequisites, numbered steps, verification, rollback |
| ADR | Explanation | A decision and its rationale — context, decision, consequences |
Name the audience explicitly in one sentence (e.g., "on-call engineer mid-incident, has shell access, has not seen this service before"). Write to a US-English global-audience reader: short unambiguous sentences, active voice, direct address with "you" (Google dev-docs style — see References). The audience sentence drives every later choice — vocabulary, assumed prerequisites, depth.
Use the template for the mode chosen in Step 1.
README (how-to + reference):
ADR (Nygard format — see References):
NNNN-short-decision-name).API reference (one block per endpoint):
Runbook (how-to):
[unverified] and recommend a maintainer check before publish (quality charter — confidence levels).Run all four lenses before publishing. A failure on any line is a blocker.
Audience:
Accuracy:
Style:
Structure:
npx markdownlint <path>); a broken table or heading level is a structure defect.[unverified], recommend a maintainer run it, and lower the document's stated confidence to medium rather than publishing an unverified example as fact.[unverified])https://diataxis.fr/start-here/ (accessed 2026-06-02, diataxis.fr, peer-reviewed-methodology). Source for the four-mode classification in Step 1 (tutorial / how-to / reference / explanation) and the one-mode-per-document discipline enforced in Steps 3–4.https://developers.google.com/style/highlights (accessed 2026-06-02, Google for Developers, official-docs). Source for the global-audience writing stance (active voice, second person, short sentences) and the task-vs-concept heading rule (bare infinitive vs noun phrase) in Steps 1–4. Procedures guidance: https://developers.google.com/style/procedures.https://www.cognitect.com/blog/2011/11/15/documenting-architecture-decisions (accessed 2026-06-02, Cognitect, established-library; ADR template used in 723+ open-source repositories per https://adr.github.io/). Source for the ADR structure template in Step 2 (Title / Status / Context / Decision / Consequences).