Technical Docs
Technical documentation serves four distinct modes (the Divio framework: Tutorials, How-To Guides, Reference, and Explanation). Documentation fails when these modes blur — such as when setup tutorials detour into deep architecture, or when API reference pages lack reproducible request and response payloads.
Process
- Classify documentation intent (Tutorial, How-To, Reference, or Architectural Explanation).
- Establish reader prerequisites, environment requirements, and required tokens/keys.
- Structure procedures with sequential, imperative, single-action steps.
- Provide complete, runnable code examples with expected output.
- Standardize domain terminology in a structured glossary.
Output Format
Technical Documentation: [Topic]
Overview
[One-paragraph plain English summary of what this component accomplishes and why it exists]
Prerequisites
- Node.js >= 20.0.0 or Python >= 3.11
- Environment variable
API_KEY configured in .env
Quickstart / How-It-Works
- Step 1: Install Dependencies:
npm install @company/sdk
- Step 2: Initialize Client:
import { Client } from "@company/sdk";
const client = new Client({ apiKey: process.env.API_KEY });
- Step 3: Execute Operation:
const res = await client.resources.get("id_123");
console.log(res.data);
API Reference / Schema
- Endpoint:
POST /api/v1/resources
- Headers:
Authorization: Bearer <token>, Content-Type: application/json
- Request Body:
{ "name": "sample", "tier": "standard" }
- Response
201 Created:{ "id": "res_987", "status": "active" }
Glossary & Terminology
| Term |
Definition |
Context / Scope |
| Idempotency Key |
Unique header to prevent duplicate charge execution |
All mutation endpoints |
| Tenant ID |
UUID representing the client organization partition |
Multi-tenant auth token |
Audience-First Writing
Before writing: Who is reading this and what do they already know?
- Developer docs: Technical terms OK, code examples, values precision
- End-user guides: Minimal technical knowledge assumed, task-oriented, screenshots
- Executive summaries: No technical detail, focus on business outcomes
Documentation Types (Divio System)
- Tutorials: Learning-oriented, hold reader's hand to first success
- How-to Guides: Goal-oriented, step-by-step for known goals
- Reference: Information-oriented, complete and accurate, dense
- Explanations: Understanding-oriented, background and context
Style Rules
Active voice, one action per step, consistent terminology, test your own instructions.
Critical rules
- Prefer concrete, actionable steps over vague advice — the user needs executable output.
- Ask for missing context only when it blocks a correct answer; otherwise state assumptions.
- Do not invent personal identities, third-party credits, or external source claims.
Additional notes (merged)
- Write README files that make developers want to use a project within the first 30 seconds
- Create API reference docs that are complete, accurate, and include working code examples
- Build step-by-step tutorials that guide beginners from zero to working in under 15 minutes
- Write conceptual guides that explain why, not just how
- Set up documentation pipelines using Docusaurus, MkDocs, Sphinx, or VitePress
- Automate API reference generation from OpenAPI/Swagger specs, JSDoc, or docstrings
- Integrate docs builds into CI/CD so outdated docs fail the build
- Maintain versioned documentation alongside versioned software releases
- Audit existing docs for accuracy, gaps, and stale content
- Define documentation standards and templates for engineering teams
- Create contribution guides that make it easy for engineers to write good docs
- Measure documentation effectiveness with analytics, support ticket correlation, and user feedback
- Code examples must run — every snippet is tested before it ships
- No assumption of context — every doc stands alone or links to prerequisite context explicitly
- Keep voice consistent — second person ("you"), present tense, active voice throughout
- Version everything — docs must match the software version they describe
- One concept per section — do not combine installation, configuration, and usage into one wall of text
- Lead with the result the user asked for.
- Use clear headings and bullet lists where helpful.
- Call out assumptions and open questions at the end.
- Stay specific to the Technical Writer workflow; avoid generic filler.
Verification & Quality Checklist
Anti-Patterns & Constraints
- NEVER invent statistics, quotes, or sources.
- NEVER present an unverified figure as sourced.
- NEVER bury the central point below preamble the reader will not reach.
1---2name: technical-docs3description: Write API references, user guides, setup manuals and architecture docs with consistent terminology. Use when writing developer documentation, API guides, or tutorials.4---56# Technical Docs78Technical documentation serves four distinct modes (the Divio framework: Tutorials, How-To Guides, Reference, and Explanation). Documentation fails when these modes blur — such as when setup tutorials detour into deep architecture, or when API reference pages lack reproducible request and response payloads.910## Process111. Classify documentation intent (Tutorial, How-To, Reference, or Architectural Explanation).122. Establish reader prerequisites, environment requirements, and required tokens/keys.133. Structure procedures with sequential, imperative, single-action steps.144. Provide complete, runnable code examples with expected output.155. Standardize domain terminology in a structured glossary.1617## Output Format18## Technical Documentation: [Topic]19### Overview20[One-paragraph plain English summary of what this component accomplishes and why it exists]21### Prerequisites22- Node.js >= 20.0.0 or Python >= 3.1123- Environment variable `API_KEY` configured in `.env`24### Quickstart / How-It-Works251. **Step 1: Install Dependencies**:26 ```bash27 npm install @company/sdk28 ```292. **Step 2: Initialize Client**:30 ```typescript31 import { Client } from "@company/sdk";32 const client = new Client({ apiKey: process.env.API_KEY });33 ```343. **Step 3: Execute Operation**:35 ```typescript36 const res = await client.resources.get("id_123");37 console.log(res.data);38 ```39### API Reference / Schema40- **Endpoint**: `POST /api/v1/resources`41- **Headers**: `Authorization: Bearer <token>`, `Content-Type: application/json`42- **Request Body**:43 ```json44 { "name": "sample", "tier": "standard" }45 ```46- **Response `201 Created`**:47 ```json48 { "id": "res_987", "status": "active" }49 ```50### Glossary & Terminology51| Term | Definition | Context / Scope |52|---|---|---|53| Idempotency Key | Unique header to prevent duplicate charge execution | All mutation endpoints |54| Tenant ID | UUID representing the client organization partition | Multi-tenant auth token |55## Audience-First Writing56Before writing: Who is reading this and what do they already know?57- **Developer docs**: Technical terms OK, code examples, values precision58- **End-user guides**: Minimal technical knowledge assumed, task-oriented, screenshots59- **Executive summaries**: No technical detail, focus on business outcomes60## Documentation Types (Divio System)61- **Tutorials**: Learning-oriented, hold reader's hand to first success62- **How-to Guides**: Goal-oriented, step-by-step for known goals63- **Reference**: Information-oriented, complete and accurate, dense64- **Explanations**: Understanding-oriented, background and context65## Style Rules66Active voice, one action per step, consistent terminology, test your own instructions.6768## Critical rules691. Prefer concrete, actionable steps over vague advice — the user needs executable output.702. Ask for missing context only when it blocks a correct answer; otherwise state assumptions.713. Do not invent personal identities, third-party credits, or external source claims.7273## Additional notes (merged)74- Write README files that make developers want to use a project within the first 30 seconds75- Create API reference docs that are complete, accurate, and include working code examples76- Build step-by-step tutorials that guide beginners from zero to working in under 15 minutes77- Write conceptual guides that explain *why*, not just *how*78- Set up documentation pipelines using Docusaurus, MkDocs, Sphinx, or VitePress79- Automate API reference generation from OpenAPI/Swagger specs, JSDoc, or docstrings80- Integrate docs builds into CI/CD so outdated docs fail the build81- Maintain versioned documentation alongside versioned software releases82- Audit existing docs for accuracy, gaps, and stale content83- Define documentation standards and templates for engineering teams84- Create contribution guides that make it easy for engineers to write good docs85- Measure documentation effectiveness with analytics, support ticket correlation, and user feedback86- **Code examples must run** — every snippet is tested before it ships87- **No assumption of context** — every doc stands alone or links to prerequisite context explicitly88- **Keep voice consistent** — second person ("you"), present tense, active voice throughout89- **Version everything** — docs must match the software version they describe90- **One concept per section** — do not combine installation, configuration, and usage into one wall of text91- Lead with the result the user asked for.92- Use clear headings and bullet lists where helpful.93- Call out assumptions and open questions at the end.94- Stay specific to the Technical Writer workflow; avoid generic filler.9596## Verification & Quality Checklist9798- [ ] Every factual claim and statistic traced to a citable source.99- [ ] Reading level and terminology matched to the stated audience.100- [ ] Length and formatting fit the destination channel's limits.101- [ ] One clear call to action, placed where the reader will still be reading.102103## Anti-Patterns & Constraints104105- NEVER invent statistics, quotes, or sources.106- NEVER present an unverified figure as sourced.107- NEVER bury the central point below preamble the reader will not reach.