How to diagnose, validate, and auto-fix YAML frontmatter issues in docmgr.
This page explains how to diagnose and fix YAML/frontmatter issues in docmgr using the built-in tools. It also links to the validation and auto-fix workflows.
If a command reports yaml_syntax or frontmatter parse errors:
docmgr doctor --ticket <TICKET> --fix applies safe auto-fixes across all docs in the ticket (creating <path>.bak backups), migrates legacy RelatedFiles paths to explicit anchors, and re-validates.docmgr validate frontmatter --doc <path> to see line/col, snippet, and suggestions.docmgr validate frontmatter --doc <path> --suggest-fixesdocmgr validate frontmatter --doc <path> --auto-fix (creates <path>.bak)---: add a closing delimiter or let doctor --fix / --auto-fix rewrite it.'text: with colon') or use block scalars.--- lines; auto-fix will scrub them.:): move it into the body or let auto-fix peel trailing non-key lines.RelatedFiles paths: run docmgr doctor --fix-anchors to migrate them to anchored paths (repo://, ws://, docs://, abs://); see docmgr help path-anchors.docmgr doctor --ticket <TICKET> --fixdocmgr doctor --ticket <TICKET> --fix-anchorsdocmgr validate frontmatter --doc <file>docmgr validate frontmatter --doc <file> --suggest-fixesdocmgr validate frontmatter --doc <file> --auto-fixdocmgr doctor --ticket <TICKET> (checks all docs in the ticket and points to validation; multi-ticket runs print a per-ticket rollup, add --details for everything)docmgr help yaml-frontmatter-validation-referenceinternal/documents/frontmatter.gopkg/commands/validate_frontmatter.gopkg/diagnostics/docmgrrules/frontmatter_rules.gopkg/frontmatter/frontmatter.gottmp/2025/11/29/DOCMGR-YAML-001.../reference/02-frontmatter-healing-and-validation-guide.md