Each agent and skill fileError
Broken frontmatter in a Claude Code subagent file
Broken frontmatter: The frontmatter block of an agent file is not closed, or has a line that is not valid YAML, so Claude Code reads no fields from it.
Why it matters
Claude Code reads name, description and tools from the block between the two --- lines. If the closing line is missing, or a line is not valid YAML, the whole block is lost – the agent loses its name, its description and its tool limit at once.
Claude Code reads no fields from this file, so the agent loses its name, description and tool limit.
An example that triggers it
A small Claude Code project. The marked lines are the ones the check cites.
.claude/agents/test-runner.md---name: test-runnerdescription: Runs the test suite and reports failures. Use after code changes.tools: Read, Bashpersona: KaiYou are Kai. Run the tests and report each failure with file and line.Never edit code.What Crafthall HQ reports
The output of /crafthall-hq:open --report on this example, generated by the plugin's own check when this page was built.
1. [high] Broken frontmatter – .claude/agents/test-runner.md:1 .claude/agents/test-runner.md opens a frontmatter block with `---` but never closes it, so Claude Code reads none of its fields. Fix: Add a line with only `---` after the last frontmatter field.
How to fix it
Close the block with a --- line before the instructions start. Quote a description that contains a colon, so YAML reads it as one value.
.claude/agents/test-runner.md---name: test-runnerdescription: Runs the test suite and reports failures. Use after code changes.tools: Read, Bashpersona: Kai---You are Kai. Run the tests and report each failure with file and line.Never edit code.Run on the fixed project, the check reports nothing for this rule.
How the check works
The frontmatter block was checked for a closing line and for lines that are not valid YAML. It reads your files with text patterns, on your machine – no model, so the same files give the same result every run.
Check your own team
Install the free plugin, then run /crafthall-hq:open in your project. It runs all checks, not only this one.
claude plugin install crafthall-hq --marketplace crafthall/plugins