PowerForge Docs Builder
Use this skill when work is primarily documentation-pipeline related (not website theming).
Golden Path (Do This In Order)
- Confirm docs scope first.
- Module command docs/help (
Module/Docs,Module/en-US/*-help.xml) vs authored source docs (Docs/*.md, code XML comments,Help/About/about_*).
- Module command docs/help (
- Validate pipeline configuration.
- Check
New-ConfigurationDocumentationin build settings (Path,PathReadme,AboutTopicsSourcePath,StartClean,UpdateWhenNew).
- Check
- Edit source, not generated output.
- Cmdlet docs: C# XML comments/examples.
- About docs:
Help/About/about_*.help.txt|.txt|.md|.markdown. - Narrative docs:
Docs/*.md.
- Regenerate docs through the documentation gate.
- Prefer
.\Module\Build\Build-Module.ps1 -RunMode Documentation -NoInteractive -NoExitCode -NoSign. - Do not use stock
platyPSor hand-authored MAML as the normal path; PSPublishModule owns Markdown and external-help generation.
- Prefer
- Validate generated outputs.
Module/Docspages present and updated.Module/en-US/PSPublishModule-help.xmlupdated.- Confirm the build reported documentation parity between exported commands, generated Markdown pages, and MAML command entries.
- Keep naming and discoverability consistent.
- Prefer explicit entrypoint docs for
New-*(scaffold),New-Configuration*(DSL object),Invoke-*(execute).
- Prefer explicit entrypoint docs for
- Commit generated docs only when source changes require them.
High-Value Commands
# Regenerate docs/help without signing, artefacts, publish, or install
.\Module\Build\Build-Module.ps1 -RunMode Documentation -NoInteractive -NoExitCode -NoSign
# Scaffold about-topic source
New-ModuleAboutTopic -TopicName 'Troubleshooting' -OutputPath '.\Help\About'
Decision Rules
- Treat
Module/Docsas generated output that can be overwritten. - Treat
Module/en-US/*-help.xmlas generated output from the same documentation gate, not as a hand-edit target. - Keep durable guidance under
Docs/*.md. - When adding cmdlets/parameters, update XML docs comments first, then regenerate help.
- If documentation parity fails, fix the source export/help metadata or the generator; do not paper over it with generated-name substitutions.
- Add cross-links between docs so quickstart and deep reference docs stay connected.
Reference Files (Read As Needed)
references/checklist.mdfor preflight and validation sequence.Docs/PSPublishModule.ModuleDocumentation.mdfor authored-vs-generated rules.Docs/PSPublishModule.DotNetPublish.Quickstart.mdfor dotnet publish command usage patterns.Module/Docs/New-ConfigurationDocumentation.mdfor documentation segment parameters.