Docs Architect
Documentation architecture workflow that discovers source truth, designs information architecture, authors living documentation, embeds diagrams, validates links, and gates publication.
Use the docs-architect skill to [describe your task].Install: npx skills add Reactive-Skills/skills --skill docs-architect
- States
- 11
- Hierarchical nodes
- Initial State
- INTAKE
- Bootstrap entrypoint
- Allowed Tools
- 5
- Whitelisted for safety
- Deliverables
- 3
- Automated projections
Statechart (optional)
Visual state machine topology parsed directly from the official STATECHART.md in Reactive-Skills/skills:
States & Deterministic Guards
Each state is an isolated operational slice. Transitions occur only when typed signals satisfy programmatic guard conditions.
- INTAKEINITIALview_filefind_by_namegrep_search
Collect source paths, audience, outcomes, and documentation scope
Outgoing Transitions
- INTAKE_READYDISCOVERguard:
Array.isArray(event.payload.source_paths) && event.payload.source_paths.length > 0 && event.payload.audience != null && Array.isArray(event.payload.outcomes) - INTAKE_INVALIDERRORguard:
!(Array.isArray(event.payload.source_paths) && event.payload.source_paths.length > 0 && event.payload.audience != null && Array.isArray(event.payload.outcomes))
- INTAKE_READYDISCOVERguard:
- DISCOVERfind_by_namegrep_searchview_file
Inventory source files and identify authoritative documentation inputs
Outgoing Transitions
- DISCOVERY_COMPLETEEXTRACTguard:
event.payload.exit_code === 0 - DISCOVERY_FAILEDERRORguard:
event.payload.exit_code !== 0
- DISCOVERY_COMPLETEEXTRACTguard:
- EXTRACTtier: reasoningview_filegrep_searchrun_command
Extract facts, APIs, decisions, interfaces, and operational constraints
Outgoing Transitions
- FACTS_EXTRACTEDDESIGNguard:
Array.isArray(event.payload.extracted_facts) && event.payload.extracted_facts.length > 0 - EXTRACTION_FAILEDERRORguard:
!Array.isArray(event.payload.extracted_facts) || event.payload.extracted_facts.length === 0
- FACTS_EXTRACTEDDESIGNguard:
- DESIGNtier: reasoningview_filewrite_to_file
Choose information architecture and map content to audience outcomes
Outgoing Transitions
- ARCHITECTURE_DESIGNEDAUTHORguard:
event.payload.architecture_decision != null && Array.isArray(event.payload.documentation_outline) && event.payload.documentation_outline.length > 0 - DESIGN_FAILEDERRORguard:
event.payload.architecture_decision == null || !Array.isArray(event.payload.documentation_outline) || event.payload.documentation_outline.length === 0
- ARCHITECTURE_DESIGNEDAUTHORguard:
- AUTHORtier: balancedview_filewrite_to_filegrep_search
Draft concise, source-linked documentation from the approved outline
Outgoing Transitions
- DRAFT_WRITTENDIAGRAMguard:
event.payload.draft_path != null && event.payload.draft_path.length > 0 - AUTHORING_FAILEDERRORguard:
event.payload.draft_path == null || event.payload.draft_path.length === 0
- DRAFT_WRITTENDIAGRAMguard:
- DIAGRAMview_filewrite_to_filerun_command
Create embedded diagrams from documented relationships and decisions
Outgoing Transitions
- DIAGRAMS_EMBEDDEDVALIDATEguard:
Array.isArray(event.payload.diagram_inventory) && event.payload.diagram_inventory.length > 0 - DIAGRAM_FAILEDERRORguard:
!Array.isArray(event.payload.diagram_inventory) || event.payload.diagram_inventory.length === 0
- DIAGRAMS_EMBEDDEDVALIDATEguard:
- VALIDATEtier: fastrun_commandview_filegrep_search
Check links, terminology, source traceability, diagram integrity, and readability
Outgoing Transitions
- VALIDATION_PASSEDREVIEWguard:
event.payload.validation_exit_code === 0judgment:predicate(min 90%) → fallback: ERROR - VALIDATION_FAILEDERRORguard:
event.payload.validation_exit_code !== 0
- VALIDATION_PASSEDREVIEWguard:
- REVIEWview_file
Human review gate for accuracy, usefulness, and publication readiness
Outgoing Transitions
- USER_APPROVEDSUCCESSguard:
event.payload.approved === true - USER_REQUEST_REVISIONSAUTHORguard:
event.payload.revisions_requested === true - USER_REJECTEDBLOCKEDguard:
event.payload.rejected === true
- USER_APPROVEDSUCCESSguard:
- SUCCESSTERMINAL
Terminal state: validated documentation architecture is published
- BLOCKEDTERMINAL
Terminal state: publication rejected or blocked by review
- ERRORTERMINAL
Terminal state: documentation workflow failed