Technical Documentation
Write for a named audience completing a concrete task. Documentation is correct only when its commands, prerequisites, expected results, and recovery paths agree with the system.
Workflow
- Identify audience knowledge, task, environment, and supported versions.
- Choose the document type: tutorial, how-to, explanation, reference, or runbook. Do not mix all types into one page without clear sections.
- Verify facts from source code, configuration, or authoritative references.
- Put prerequisites before the first action.
- Write ordered steps with commands and expected results.
- Add verification, rollback, troubleshooting, and ownership where relevant.
- Test commands or label anything that was not executed.
Standard structures
How-to
# <Task>
## Prerequisites
## Steps
## Verify
## Troubleshoot
## Undo
Runbook
# <Incident or operation>
**Trigger:** When to use this runbook
**Impact:** What users experience
**Owner:** Team or role
## Diagnose
## Mitigate
## Recover
## Verify
## Escalate
Rules
- Use exact file paths, commands, values, and UI labels.
- Put one action per numbered step and its expected result immediately after it.
- Explain destructive commands before showing them and provide a safer preview when possible.
- Define unfamiliar terms once; do not expand standard terms repeatedly.
- Keep examples internally consistent and free of real secrets.
- Link to source-of-truth reference material instead of duplicating volatile tables or configuration lists.
- State the last verified version or date for operational instructions.
Edge cases
- If repository behavior conflicts with existing docs, flag the conflict rather than choosing one silently.
- If commands cannot be tested, mark them unverified and identify prerequisites for verification.
- For multiple platforms, separate platform-specific steps instead of embedding dense conditional instructions in every line.