Skip to content
Crafthall HQ

Each agent and skill fileError

Claude Code subagent points to a file that does not exist

Broken file reference: An agent or skill points to a repo path that does not exist.

Why it matters

Agent files often say "follow docs/…" instead of repeating the rules. When that file is renamed or moved, nothing fails: the agent simply cannot find its instructions and falls back on its own guess.

An agent that cannot find the file it is told to read improvises instead of following the instructions.

An example that triggers it

A small Claude Code project. The marked lines are the ones the check cites.

Before.claude/agents/backend-developer.md
---name: backend-developerdescription: Builds API endpoints. Use when a task needs server code.tools: Read, Write, Edit, Bashpersona: Sam---You are Sam. Follow `docs/api/conventions.md` for every endpoint.Run the tests before you hand back; never change the database schema yourself.

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.

claude › /crafthall-hq:open --report
1. [medium] Broken file reference – .claude/agents/backend-developer.md:7
Sam is pointed to `docs/api/conventions.md`, which does not exist in the repo.
Fix: Fix the path or remove the reference; an agent that cannot find its instructions improvises.
Real output on the example above.

How to fix it

Point to the path that exists now (here the file moved to docs/api-conventions.md), or remove the line if the document is gone.

After.claude/agents/backend-developer.md
---name: backend-developerdescription: Builds API endpoints. Use when a task needs server code.tools: Read, Write, Edit, Bashpersona: Sam---You are Sam. Follow `docs/api-conventions.md` for every endpoint.Run the tests before you hand back; never change the database schema yourself.

Run on the fixed project, the check reports nothing for this rule.

How the check works

Each repo path in the file was checked against the repo file list. 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

All 15 checks