How to write engineering documentation - architecture docs with C4/Mermaid, ADRs, data-format and protocol specifications, API/module reference, contributor guides, runbooks - and how to keep it verifiable. Use when documenting design, formats, internals or process for engineers and contributors.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Engineering Documentation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/afri-bit-engineering-documentation)
---
name: engineering-documentation
description: How to write engineering documentation - architecture docs with C4/Mermaid, ADRs, data-format and protocol specifications, API/module reference, contributor guides, runbooks - and how to keep it verifiable. Use when documenting design, formats, internals or process for engineers and contributors.
---
# Engineering documentation
**Audience**: contributors, integrators, safety/security assessors. They need precision and traceability.
## Where things live
| Need | Location |
|------|----------|
| Why a hard-to-reverse choice was made | `docs/adr/NNNN-title.md` |
| System structure and flows | `docs/ARCHITECTURE.md`, `docs/architecture/` |
| Binary/text format specs (BLF subset, recording format, DBC dialect notes) | `docs/engineering/formats/` |
| Protocols between host, webview, helpers | `docs/engineering/protocols/` |
| Quality and tool-qualification material | `docs/quality/` |
| Threat models | `docs/security/` |
| Process | `docs/workflow/`, `CONTRIBUTING.md` |
| Behaviour (normative) | `openspec/specs/` |
## Format specification template
Purpose and scope - Status (implemented / draft / verified against which files) - Terminology - Byte/field table (offset, size, type, endianness, meaning, valid values) - Worked example with hex bytes - Edge cases and error behaviour - Compatibility and versioning - Test fixtures that exercise it.
## Architecture doc rules
Diagram first (Mermaid C4 or sequence), then prose. Name real files and types with paths. State invariants ("core never imports vscode") and where they are enforced. Date or version stamp for anything performance-related.
## API/module reference
Exported symbols have JSDoc (Google style: summary, `@param`, `@returns`, side effects). Do not duplicate signatures in prose; link to code.
## Verification of docs
- Every path and command mentioned exists: run `.claude/skills/engineering-documentation/check-docs.sh` (checks relative links and backticked repo paths).
- Commands are copy-pasted from a successful run.
- Planned vs implemented is explicit.
- Diagrams updated in the same PR as the code they depict.
## Writing style
Precise, neutral, present tense; define terms once; tables for structured facts; avoid marketing language; use RFC 2119 words only in normative specs.