Fix YAML syntax errors in all agent files by quoting descriptions - #20
Fix YAML syntax errors in all agent files by quoting descriptions#20galezra wants to merge 1 commit into
Conversation
|
Confirmed and expanding on the diagnosis above. I cross-checked this against the currently-shipped Claude Code binary (v2.1.215): when frontmatter YAML fails to parse and I verified this independently with two YAML parsers (Python's PyYAML and Node's js-yaml) — both fail on the same 7 files for the reason already diagnosed here (unescaped Given the README's Quick Start explicitly promotes these as "8 production-tested agents ... Standalone - just copy and use!", and this issue has been open since 2025-11-12 with a ready-to-apply fix already written out in the description, wanted to flag that this currently makes that specific README claim inaccurate for most users following the setup wizard path. Happy to open a PR with the quoting fix if that's useful — it looks like a mechanical change (wrap the |
Fix YAML syntax errors in agent description fields
Problem
Agent files were experiencing YAML parsing errors due to unescaped colons in the
descriptionfield. The error message was:This occurred because the description fields contained example dialogues with
user:andassistant:labels, which YAML interpreted as mapping key-value pairs rather than string content.Solution
Wrapped all
descriptionfield values in double quotes to properly escape the content and treat it as a single string value. This allows YAML to correctly parse the colons within the descriptions as part of the string content rather than as mapping separators.Changes
Fixed YAML syntax in the following agent files:
refactor-planner.mdweb-research-specialist.mddocumentation-architect.mdfrontend-error-fixer.mdauth-route-tester.mdcode-architecture-reviewer.mdcode-refactor-master.mdauth-route-debugger.mdplan-reviewer.md(fixed earlier)Technical Details
Changed from:
To:
The quotes ensure YAML treats the entire description as a string literal, and internal quotes are properly escaped with
\nfor newlines.Testing
All agent files now parse correctly without YAML syntax errors.