Skip to main content
command CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resources
Open on GitHub

What 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.md for 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-resources

2Manually: put the files in place

.claude/commands/audit-subagent.md

Call it with /audit-subagent. For all projects use ~/.claude/commands/

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

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set48

The whole set →
create-agent-skills create-agent-skills — a mentoring skill for writing and refining agent skills: SKILL.md structure, router pattern, progressive disclosure. CX Codex +1 508installs debug debug is a Claude Code command that sends an issue description to the debug-like-expert skill for investigation. It applies a methodical debugging process to a specific problem. CX Codex +1 ★ 1,988repo stars audit-slash-command Invokes a subagent to audit slash command files for compliance. Checks YAML syntax, arguments, dynamic context, tool restrictions, and content quality. CX Codex +1 ★ 1,988repo stars audit-skill audit-skill is a Claude Code command that checks a skill against YAML, XML, and progressive disclosure requirements before structural changes or publication. CX Codex +1 ★ 1,988repo stars 5-whys 5-whys runs the five whys technique on the problem you hand it and returns a root cause with one action to take. Useful when a bug keeps coming back after a fix. CX Codex +1 ★ 1,988repo stars first-principles first-principles deconstructs problems down to irreducible truths, removes conventions, and designs solutions from the ground up. CX Codex +1 ★ 1,988repo stars one-thing one-thing is a Claude Code command that picks one action with the greatest effect on the rest of a goal. Run it with a goal or let it use the current discussion. CX Codex +1 ★ 1,988repo stars inversion Applies inversion thinking: instead of asking “how do I succeed”, it asks “what guarantees failure” and builds a plan by avoiding those traps. Surfaces risks that optimistic planning misses. CX Codex +1 ★ 1,988repo stars

Project sponsors

Companies that keep this analytics open