Technical Writing
Purpose
Capture engineering knowledge in durable, structured documents: ADRs for decisions,
runbooks for operations, and deep dives for complex concepts. Good documents are
findable, dated, and honest about rejected alternatives — this skill enforces that
shape so readers can trust and navigate them.
When to Use / When NOT to Use
Use when:
- A significant technical decision needs recording ("write an ADR", "why did we pick
X?", "document this design decision").
- A service needs an operational runbook (alerts, failure modes, recovery steps).
- A complex concept needs a deep-dive explainer for onboarding or reviews.
Do NOT use when:
- The deliverable is API reference — use
api-documentation.
- The deliverable is a project README — use
readme-generator.
- The "decision" is a style preference already covered by a rule in this repository;
point to the rule instead of writing a new document.
Prerequisites & Assumptions
- Documents live in version control next to code (default:
docs/adr/NNNN-*.md,
docs/runbooks/).
- ADRs are immutable once accepted: changes are new ADRs that supersede old ones.
- Runbooks state facts verified against the running system; unverified steps are
marked as such, never invented.
Step-by-Step Workflow
- Classify the document — decision (ADR), operations (runbook), or concept
(deep dive); pick the template below.
- Gather evidence — for ADRs: options considered with real trade-offs; for
runbooks: alerts, dashboards, and commands, verified against a live or staged
system; for deep dives: sources and diagrams.
- Draft with the template — every section filled; write "not applicable —
reason" rather than deleting sections.
- Record rejected alternatives — an ADR without alternatives is a decision log
entry, not a record; reviewers must ask "what else did we consider?".
- Review and accept — ADRs are reviewed like code; acceptance flips status from
Proposed to Accepted with a date.
- Maintain — superseded ADRs link forward; runbooks are re-verified quarterly
and after every incident that touches them (
incident-response).
Enterprise Rules & Standards (MUST / MUST NOT)
- MUST use the numbered ADR format (
NNNN-title-kebab-case.md) with status,
context, decision, and consequences sections.
- MUST document at least one rejected alternative and the reason it lost.
- MUST keep ADRs immutable after acceptance; changes via superseding ADRs.
- MUST write runbooks so an on-call engineer unfamiliar with the service can act:
symptom → diagnosis → action → verification, with real commands and alert names.
- SHOULD time-box a deep dive to one concept and target one audience level.
- SHOULD use Mermaid or ASCII diagrams with a caption stating what the diagram
shows.
- MUST NOT edit accepted ADR content (status transitions aside) or delete
superseded ADRs.
- MUST NOT put secrets, customer data, or unredacted credentials in any document.
Examples
Good — ADR skeleton:
# ADR-0014: Adopt slog for structured logging
Status: Accepted (2026-10-18)
Supersedes: ADR-0009
## Context
Our log pipeline requires JSON; the stdlib log lacks levels/attributes.
## Decision
Use log/slog with JSONHandler as the only approved handler in services.
## Consequences
- Correlated fields, cheaper ingestion, stdlib support since Go 1.21.
− Logrus adapters must be wrapped during migration (tracked in #882).
## Alternatives considered
- zerolog: faster, but adds a dependency for marginal gain at our volume. Rejected.
- Keep text logs and parse at the edge: brittle parsers, rejected.
Bad — decision with no alternatives:
# ADR-0007: Use Kafka
Decision: we will use Kafka.
Why it fails: no context, no alternatives, no consequences — the next team cannot
re-evaluate the decision when constraints change.
Runbook fragment (good):
## Alert: OrderLatencyHigh (SLO burn 2% in 1h)
1. Check dashboard `orders-latency` panel p99 (link).
2. `kubectl -n orders get pods -l app=orders` — look for restarts.
3. If restarts: `kubectl -n orders logs deploy/orders --previous | tail -200`
4. Roll back: `make release-rollback VERSION=<previous>` (verified 2026-10-02).
Checklist
Common Pitfalls
- Decision amnesia — choices made in chat threads with no ADR; write the record
the same week.
- Museum runbooks — steps referencing decommissioned dashboards; quarterly
re-verification keeps them alive.
- Novel syndrome — 20-page deep dives nobody reads; one concept per document.
- Living ADRs — silently editing accepted decisions; supersede instead.
References
1---2name: technical-writing3description: 'Produces structured engineering documents — Architecture Decision Records, runbooks, and deep-dive explainers — using standardized templates. Trigger with "write an ADR", "we need a runbook for this service", or "document this design decision".'4metadata:5 source: https://skillmd.com/skills/pnguyen215/technical-writing6---78# Technical Writing910## Purpose1112Capture engineering knowledge in durable, structured documents: ADRs for decisions,13runbooks for operations, and deep dives for complex concepts. Good documents are14findable, dated, and honest about rejected alternatives — this skill enforces that15shape so readers can trust and navigate them.1617## When to Use / When NOT to Use1819Use when:2021- A significant technical decision needs recording ("write an ADR", "why did we pick22 X?", "document this design decision").23- A service needs an operational runbook (alerts, failure modes, recovery steps).24- A complex concept needs a deep-dive explainer for onboarding or reviews.2526Do NOT use when:2728- The deliverable is API reference — use `api-documentation`.29- The deliverable is a project README — use `readme-generator`.30- The "decision" is a style preference already covered by a rule in this repository;31 point to the rule instead of writing a new document.3233## Prerequisites & Assumptions3435- Documents live in version control next to code (default: `docs/adr/NNNN-*.md`,36 `docs/runbooks/`).37- ADRs are immutable once accepted: changes are new ADRs that supersede old ones.38- Runbooks state facts verified against the running system; unverified steps are39 marked as such, never invented.4041## Step-by-Step Workflow42431. **Classify the document** — decision (ADR), operations (runbook), or concept44 (deep dive); pick the template below.452. **Gather evidence** — for ADRs: options considered with real trade-offs; for46 runbooks: alerts, dashboards, and commands, verified against a live or staged47 system; for deep dives: sources and diagrams.483. **Draft with the template** — every section filled; write "not applicable —49 reason" rather than deleting sections.504. **Record rejected alternatives** — an ADR without alternatives is a decision log51 entry, not a record; reviewers must ask "what else did we consider?".525. **Review and accept** — ADRs are reviewed like code; acceptance flips status from53 `Proposed` to `Accepted` with a date.546. **Maintain** — superseded ADRs link forward; runbooks are re-verified quarterly55 and after every incident that touches them (`incident-response`).5657## Enterprise Rules & Standards (MUST / MUST NOT)5859- **MUST** use the numbered ADR format (`NNNN-title-kebab-case.md`) with status,60 context, decision, and consequences sections.61- **MUST** document at least one rejected alternative and the reason it lost.62- **MUST** keep ADRs immutable after acceptance; changes via superseding ADRs.63- **MUST** write runbooks so an on-call engineer unfamiliar with the service can act:64 symptom → diagnosis → action → verification, with real commands and alert names.65- **SHOULD** time-box a deep dive to one concept and target one audience level.66- **SHOULD** use Mermaid or ASCII diagrams with a caption stating what the diagram67 shows.68- **MUST NOT** edit accepted ADR content (status transitions aside) or delete69 superseded ADRs.70- **MUST NOT** put secrets, customer data, or unredacted credentials in any document.7172## Examples7374Good — ADR skeleton:7576```markdown77# ADR-0014: Adopt slog for structured logging7879Status: Accepted (2026-10-18)80Supersedes: ADR-00098182## Context8384Our log pipeline requires JSON; the stdlib log lacks levels/attributes.8586## Decision8788Use log/slog with JSONHandler as the only approved handler in services.8990## Consequences9192- Correlated fields, cheaper ingestion, stdlib support since Go 1.21.93 − Logrus adapters must be wrapped during migration (tracked in #882).9495## Alternatives considered9697- zerolog: faster, but adds a dependency for marginal gain at our volume. Rejected.98- Keep text logs and parse at the edge: brittle parsers, rejected.99```100101Bad — decision with no alternatives:102103```markdown104# ADR-0007: Use Kafka105106Decision: we will use Kafka.107```108109Why it fails: no context, no alternatives, no consequences — the next team cannot110re-evaluate the decision when constraints change.111112Runbook fragment (good):113114```markdown115## Alert: OrderLatencyHigh (SLO burn 2% in 1h)1161171. Check dashboard `orders-latency` panel p99 (link).1182. `kubectl -n orders get pods -l app=orders` — look for restarts.1193. If restarts: `kubectl -n orders logs deploy/orders --previous | tail -200`1204. Roll back: `make release-rollback VERSION=<previous>` (verified 2026-10-02).121```122123## Checklist124125- [ ] Document type and template selected (ADR / runbook / deep dive).126- [ ] ADR has status, date, context, decision, consequences, and ≥1 rejected127 alternative.128- [ ] Runbook commands verified against a real system; verification date noted.129- [ ] Diagrams have captions; acronyms expanded on first use.130- [ ] No secrets or personal data in the document.131- [ ] Filed under `docs/` with the correct numbering/naming convention.132133## Common Pitfalls134135- **Decision amnesia** — choices made in chat threads with no ADR; write the record136 the same week.137- **Museum runbooks** — steps referencing decommissioned dashboards; quarterly138 re-verification keeps them alive.139- **Novel syndrome** — 20-page deep dives nobody reads; one concept per document.140- **Living ADRs** — silently editing accepted decisions; supersede instead.141142## References143144- Architecture Decision Records: https://adr.github.io/145- Google SRE — Postmortem & operational docs culture: https://sre.google/sre-book/postmortem-culture/146- Mermaid diagram syntax: https://mermaid.js.org/intro/