Initialize or update project documentation. Use when setting up docs for a new project (`--init`) or syncing docs to current codebase and architecture changes (`--update`).
Create and maintain project documentation in docs/ with a consistent, lightweight workflow.
--init: Create documentation for the first time.--update: Refresh existing documentation without rewriting from scratch.Always maintain these files:
docs/project-pdr.md — product goals, users, requirementsdocs/code-standard.md — stack, conventions, development rulesdocs/codebase.md — codebase map and key filesdocs/architecture.md — components, interactions, data flowAlso keep README.md aligned with current docs links and project summary.
Load project context per the shared Context Loading Protocol. Also read and key source/config files as needed.
README.mdFocus on facts that changed: features, architecture, stack, structure, and workflows.
--init behavior.--update behavior.--initdocs/ if missing.--updateEnsure README.md includes:
Before finishing, verify:
project-pdr.mdInclude:
code-standard.mdInclude:
codebase.mdInclude:
architecture.mdInclude:
docs/code-standard.md.