What problem does it solve?
gendoc-shared provides a standardized entrypoint for gendoc, implementing the §-1 R-01 State File Guard to ensure a valid, up-to-date state file exists before downstream skills run. It centralizes initialization and safety checks, reducing manual error and improving resilience.
Core Features & Use Cases
- Initialization guard: detects missing or old state files and triggers full configuration via gendoc-config.
- State integrity: validates JSON structure, writes atomically, preserves critical fields across updates.
- Compatibility checks: detects legacy schemas (e.g., old _INIT_STATE formats) and halts with actionable guidance.
- Reuse across skills: provides a common, safe baseline for all gendoc steps, ensuring consistent start state.
- Use Case: when starting a new project, the shared guard ensures the state machine is prepared and safe for first-run.
Quick Start
Execute /gendoc-config to perform a full initialization and setup of the state machine for gendoc-shared.