audit-subagent — Claude Code command: subagent configuration audit
audit-subagent — a Claude Code command that runs a configuration audit for subagents: checks XML structure, settings, tool selection, and compliance with standards. Takes a path to the subagent .md file as argument.
MIT ★ 1,988 updated 2026-04-01
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resourcesWhat audit-subagent does
The command invokes the subagent-auditor subagent, passes the path to the subagent file being checked, and returns a detailed report: compliance scores, a list of issues with file and line references, and recommendations for fixes. It evaluates role definition, prompt quality, XML markup correctness, tool selection, and overall configuration effectiveness.
Installed via the Claude Code marketplace — two commands: add the repository with /plugin marketplace add glittercowboy/taches-cc-resources, then install the plugin with /plugin install taches-cc-resources@taches-cc-resources. The command file is located at .claude/commands/audit-subagent.md. The argument is a path to the subagent, such as .claude/subagents/my-agent.md.
The command does not analyze project code, only subagent configuration. It does not work without an argument.
What it helps with
- check a subagent against best practices
- find errors in subagent XML structure
- get a prompt quality score for a subagent
- identify incorrect tool selection in a subagent
Example prompts for the agent
- Check
.claude/subagents/code-reviewer.mdfor compliance with standards - Run an audit on
.claude/subagents/test-generator.md - Evaluate the configuration quality of
.claude/subagents/docs-writer.md
How to install audit-subagent
1Plugin marketplace
/plugin marketplace add glittercowboy/taches-cc-resources/plugin install taches-cc-resources@taches-cc-resources2Manually: put the files in place
.claude/commands/audit-subagent.mdCall it with /audit-subagent. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/audit-subagent.mdCall it with /prompts:audit-subagent. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/audit-subagent.prompt.mdManually: put the files in place
.gemini/commands/audit-subagent.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about audit-subagent
How to install audit-subagent in Claude Code?
First run /plugin marketplace add glittercowboy/taches-cc-resources, then /plugin install taches-cc-resources@taches-cc-resources. The command will appear at .claude/commands/audit-subagent.md.
What does audit-subagent do?
It invokes the subagent-auditor subagent, which checks another subagent's configuration: XML structure, settings, prompt, and tool selection. Returns a detailed report with scores and recommendations.
What argument does audit-subagent require?
A path to the subagent file, such as .claude/subagents/my-agent.md. The command does not work without an argument.
Source text
audit-subagent.md · MIT
--- description: Audit subagent configuration for role definition, prompt quality, tool selection, XML structure compliance, and effectiveness argument-hint: <subagent-path> --- <objective> Invoke the subagent-auditor subagent to audit the subagent at $ARGUMENTS for compliance with best practices, including pure XML structure standards. This ensures subagents follow proper structure, configuration, pure XML formatting, and implementation patterns. </objective> <process> 1. Invoke subagent-auditor subagent 2. Pass subagent path: $ARGUMENTS 3. Subagent will read best practices and evaluate the configuration 4. Review detailed findings with file:line locations, compliance scores, and recommendations </process> <success_criteria> - Subagent invoked successfully - Arguments passed correctly to subagent </success_criteria>
© Lex Christopherson · MIT · glittercowboy/taches-cc-resources