Write Docs Alongside Implementation
Write Docs alongside Implementation¶
A developer is implementing a feature or fix. Documentation must be produced in the same flow, without creating a separate “docs project”.
Goal¶
Create or update documentation and link it to code/tests using stable IDs, while keeping local checks aligned with CI.
Steps¶
- Read relevant docs (requirements, ADRs, handbook) and identify the target scope.
- Create new docs via templates (
doc new) instead of copy-paste. - Implement code changes.
- Write or update tests.
- Add trace markers (
arqix:implements,arqix:verifies) where appropriate. - Assemble preview pages if needed to validate narrative structure.
- Run the local verification loop before committing.
Outputs¶
- Updated docs and code/tests with traceable links
- Assembled pages for review (if applicable)
- Deterministic local checks prior to PR
Failure Modes¶
- Missing templates lead to inconsistent structure.
- Includes or assembling break due to incorrect paths.
- Trace markers are missing or inconsistent.
Related Commands¶
arqix doc new <kind>arqix assemble buildarqix fmtarqix lint runarqix trace scanarqix trace coverage
Automation (recommended)¶
- just:
just verify; CI runs the same gate on every PR