Skip to content

Fix YAML frontmatter parsing error in check-modern-code agent - #4

Open
jrcrittenden wants to merge 1 commit into
FlineDev:mainfrom
jrcrittenden:fix/yaml-frontmatter-check-modern-code
Open

Fix YAML frontmatter parsing error in check-modern-code agent#4
jrcrittenden wants to merge 1 commit into
FlineDev:mainfrom
jrcrittenden:fix/yaml-frontmatter-check-modern-code

Conversation

@jrcrittenden

Copy link
Copy Markdown

Summary

Fix invalid YAML frontmatter in check-modern-code.md agent that prevents proper loading in Claude Code.

Problem

The tools field on line 5 was using an unquoted comma-separated list:

tools: Read, Edit, MultiEdit, Grep, Glob, Bash, Task

This causes YAML parsing errors because unquoted comma-separated values are interpreted as multiline keys, breaking Claude Code's ability to parse the agent's frontmatter metadata.

Solution

Convert to proper YAML array format:

tools: [Read, Edit, MultiEdit, Grep, Glob, Bash, Task]

Why This Matters

  • Claude Code Functionality: Claude Code parses YAML frontmatter to determine which tools an agent can use
  • Agent Loading: Invalid YAML prevents the agent from loading correctly, breaking tool detection
  • User Experience: Users attempting to use this agent template get parsing errors instead of functional behavior
  • Easy Fix: Simple syntax correction that ensures proper agent functionality

Changes Made

  • ✅ Convert tools field to proper YAML array format
  • ✅ Increment Template Version from 6 to 7 (per contribution guidelines)
  • ✅ Update date to 2024-11-05 (per contribution guidelines)

🤖 Generated with Claude Code

The `tools` field on line 5 was using an unquoted comma-separated list which
caused YAML parsing errors. This breaks Claude Code's ability to properly
load the agent's frontmatter metadata, preventing tool detection and agent
functionality.

Changes:
- Convert tools field to proper YAML array format
- Increment Template Version from 6 to 7
- Update date to 2024-11-05 per contribution guidelines

Why this matters:
- Claude Code parses YAML frontmatter to determine available tools
- Invalid YAML prevents agent from loading correctly
- Easy fix prevents degraded UX for users of this template

Fixes invalid YAML syntax and ensures agent loads properly in Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant