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 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 --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.docmgr validate frontmatter --doc <file>docmgr validate frontmatter --doc <file> --suggest-fixesdocmgr validate frontmatter --doc <file> --auto-fixdocmgr doctor --ticket <TICKET> (will report invalid frontmatter and point to validation)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