/hatch3r:hatch3r-docs-writingfrom hatch3r
Authors technical documentation through a repeatable workflow — audience analysis, Diátaxis-mode selection, structure, draft, review, publish. Covers READMEs, ADRs, API docs, and runbooks.
Ships in hatch3r. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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-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.
Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Tier boundaries for THIS skill:
Emit sub_agents_spawned: { count, rationale, task_structure } 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).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
technical-writing, diataxis, documentation-workflow, readme, adr, api-docs
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
.claude-plugin/plugin.json: commands: Invalid input, agents: Invalid string: must start with "./", agents: Invalid string: must end with ".md", skills: Invalid string: must start with "./", mcpServers: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
55 skills in this plugin
/hatch3r-a11y-auditRuns a WCAG AA accessibility audit with findings and fixes across 7 scan categories (keyboard, contrast, ARIA, reduced motion, screen reader, high contrast, automated axe). Use when auditing and remediating accessibility./hatch3r-adhoc-orchestrateScaffolds the ad-hoc Tier >= 2 orchestration protocol -- Per-Turn Pipeline-State Header, implementer delegation plan, End-of-Turn Delegation Attestation. Use for a multi-phase task with no registered command to avoid inline-implementation bypass mode./hatch3r-ai-featureEval-driven development workflow for shipping AI features — write eval before prompt, measure, iterate, ship with caching + cost telemetry + model fallback + hallucination SLI/hatch3r-api-specGenerates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation./hatch3r-architecture-reviewEvaluates architectural decisions and produce ADRs following the project template. Use when making architectural decisions, evaluating trade-offs, or creating ADRs./hatch3r-board-groomOngoing backlog refinement for existing board items. Re-prioritize, reclassify, re-scope, archive stale items, decompose oversized issues, merge duplicates, refresh dependencies, and remediate board health findings.Other plugins' skills for the same job