validate-cross-refs
Installation
SKILL.md
Validate Cross-References
"An orphaned skill is dead code. A broken reference is a runtime error waiting to happen."
Validates that all internal references between plugin components (agents referencing skills, commands referencing agents, aliases pointing to canonical commands, settings.json declaring agents) are valid and resolvable. Detects orphaned components that no other file references.
Procedure
Step 1 -- Build Component Inventory
- Enumerate all skills: glob
skills/*/SKILL.md, extract thenamefrom frontmatter. Build map:skill-name -> file-path. - Enumerate all agents: glob
agents/*.md, extract thenamefrom frontmatter. Build map:agent-name -> file-path. - Enumerate all commands: glob
commands/*.md, extract filename (without.md) as command name. Build map:command-name -> file-path. - Report total counts per type.