How to
Sync AI Channel output
Write managed files for each configured AI Channel.
What changes
sync reads Playbook source docs, formats them for each enabled AI Channel, and writes generated files for tools such as Codex, Claude, Cursor, Copilot, Gemini, and OpenCode.
When this helps
- You changed Playbook source docs and need generated AI resources updated.
- You want to preview AI Channel output before committing generated files.
- A channel-specific generated file is stale after a doc change.
Run this command
sumr playbook sync --dry-run# preview outputsumr playbook sync --check# check drift in CIsumr playbook sync --source docs --channel codex# write Codexsumr playbook sync --json# automation outputFlags you can use
--source <path>Read one source folder containing Playbook Markdown. Repeat the flag for multiple source folders.
--channel <id>Write only one AI Channel. Supported ids are claude, codex, cursor, copilot, gemini, and opencode.
--dry-runPreview writes and warnings without changing files.
--checkCompare generated output without writing files. Exits with a nonzero status when files need to be added, updated, or removed.
--jsonReturn a structured JSON envelope for scripts, CI jobs, and AI assistants.
--verbosePrint detailed sources, warnings, and generated output paths.
--help, -hShow the command syntax, supported flags, and examples without changing files.
Keep in mind
- Edit source docs first. Generated AI Channel files are outputs, not the place to author durable guidance.
- Use
--dry-runto preview drift while returning success when managed output differs. Use--checkwhen drift should return a nonzero status in CI. - Do not combine
--dry-runand--check. - Invalid configuration stops sync without changing generated files; JSON output reports
INVALID_CONFIGfor sync andCONFIG_SCHEMA_INVALIDfor validate.