claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Frontmatter Parsing Error: Missing 'name' Field Despite Valid YAML

Open mylimoproject opened this issue 1 year ago • 4 comments

Bug Description

  • The persistent error: "Missing required 'name' field in frontmatter"
  • That it affects all agent files despite proper YAML formatting
  • The /doctor command continues to fail after multiple formatting attempts Here's a summary of what we attempted:

Troubleshooting Steps Completed

  1. YAML Format Testing: Tried both quoted and unquoted field values
  2. Character Encoding: Checked for hidden characters and encoding issues
  3. Schema Compliance: Added all required fields (name, description, tools) per official documentation
  4. Minimal Testing: Created test files to isolate the issue
  5. Documentation Research: Verified we're following the exact format specified in Claude Code docs

Current Status

All agent files now have proper frontmatter that should parse correctly:

name: agent-name description: Agent description tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.88
  • Feedback ID: a942567c-9da8-44af-a221-c31589b22d21

Errors

[{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/planning-agent.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5236\n    at Array.map (<anonymous>)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5166\n    at async file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2441:5084","timestamp":"2025-08-22T20:09:26.020Z"},{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/security-agent.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5236\n    at Array.map (<anonymous>)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5166\n    at async file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2441:5084","timestamp":"2025-08-22T20:09:26.025Z"},{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/agent-routing.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5236\n    at Array.map (<anonymous>)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5166\n    at async file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2441:5084","timestamp":"2025-08-22T20:09:26.026Z"},{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/repo-engineer.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5236\n    at Array.map (<anonymous>)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5166\n    at async file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2441:5084","timestamp":"2025-08-22T20:09:26.027Z"},{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/devops-agent.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5236\n    at Array.map (<anonymous>)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:5166\n    at async file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2441:5084","timestamp":"2025-08-22T20:09:26.028Z"},{"error":"Error: Agent file /home/jose-a-pichardo/taprideit_enterprise/.claude/agents/frontend-agent.md is missing required 'name' in frontmatter\n    at IJ5 (file:///home/jose-a-pichardo/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2401:6763)\n    at file:///home/jose-a-pichardo/.nvm/versions/node/v22.

Note: Error logs were truncated.

mylimoproject avatar Aug 22 '25 23:08 mylimoproject

Anyone found a solution to this? I'm having the same exact issue using Claude-Flow framework:

Image

edxeth avatar Aug 26 '25 12:08 edxeth

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 04 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 11 '26 14:01 github-actions[bot]