CLIPlaybook
How to
Validate docs
Catch frontmatter and structure issues before sync.
What changes
validate loads configured docs sources, checks required frontmatter and Playbook structure, and reports errors before sync writes AI Channel output.
When this helps
- You created or edited a Playbook Markdown file.
- A generated AI Channel file looks wrong and the source needs checking.
- CI or a reviewer needs a no-write quality gate.
Run this command
sumr playbook validate --source docs# check source docssumr playbook validate --verbose# show checked filessumr playbook validate --json# CI outputFlags you can use
--source <path>Validate one docs folder instead of reading sources from sumr.yaml.
--verboseOn success, list every source that was checked.
--jsonReturn a structured JSON envelope for scripts, CI jobs, and AI assistants.
--help, -hShow the command syntax, supported flags, and examples without changing files.
Keep in mind
- Run this before
syncwhen source docs changed. - Fix validation errors in the source Markdown, not in generated channel files.