Docs Init
When to Use This Skill
Use this skill once per repository, from the root session, to create
docs/documentation-estate/docs-profile.json and the empty estate artifacts it
names, or to validate an existing profile. No documentation role runs it.
Prerequisites
Root steps run the docs helper library at .claude/lib/docs/ under PowerShell 7.4 or later.
Steps
- Preview the initialization as a dry run.
Root step:
pwsh -NoProfile -File .claude/lib/docs/Invoke-DocsCommand.ps1 -Command init -RepositoryId <repository-id> -Profile docs/documentation-estate/docs-profile.json - Review the planned files, then apply the initialization.
Root step:
pwsh -NoProfile -File .claude/lib/docs/Invoke-DocsCommand.ps1 -Command init -RepositoryId <repository-id> -Profile docs/documentation-estate/docs-profile.json -Write - Replace existing estate files only when the operator asks for it explicitly; add
-Forceto the step 2 command in that case and in no other. - Validate the profile.
Root step:
pwsh -NoProfile -File .claude/lib/docs/Invoke-DocsCommand.ps1 -Command validate-profile -Profile docs/documentation-estate/docs-profile.json -Json
Result
Report the profile path, the exit code of each step and, on failure, the findings
the command returned. Use -Help with any subcommand to list its options.