audit-slash-command — Claude Code command: validate slash commands
Invokes a subagent to audit slash command files for compliance. Checks YAML syntax, arguments, dynamic context, tool restrictions, and content quality.
MIT ★ 1,988 updated 2026-04-01
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resourcesWhat audit-slash-command does
audit-slash-command calls the slash-command-auditor subagent to analyze a slash command at the path you provide. The subagent validates YAML structure, argument declarations, dynamic context handling, tool restrictions, and overall description quality.
The audit report includes detailed findings with file line numbers, compliance scores, and actionable recommendations. Use this when building custom slash commands to ensure they follow security and usability standards.
Works in Claude Code only; requires a valid command file path as the argument.
What it helps with
- validate YAML structure in a slash command file
- check argument and context declarations for correctness
- identify issues with tool restrictions
- assess command description clarity and quality
Example prompts for the agent
- /audit-slash-command .claude/commands/deploy.md
- /audit-slash-command path/to/my-custom-command.md
- /audit-slash-command ./commands/review-pr.md
How to install audit-slash-command
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-slash-command.mdCall it with /audit-slash-command. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/audit-slash-command.mdCall it with /prompts:audit-slash-command. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/audit-slash-command.prompt.mdManually: put the files in place
.gemini/commands/audit-slash-command.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about audit-slash-command
How do I install audit-slash-command in Claude Code?
Run /plugin marketplace add glittercowboy/taches-cc-resources and then /plugin install taches-cc-resources@taches-cc-resources. The command will be available at .claude/commands/audit-slash-command.md.
What does audit-slash-command check?
It validates YAML syntax, argument declarations, dynamic context behavior, tool restrictions, and content quality of a slash command file.
What argument should I pass?
Provide the path to your slash command file, such as .claude/commands/my-command.md or path/to/command.md. The subagent reads and audits it.
Source text
audit-slash-command.md · MIT
--- description: Audit slash command file for YAML, arguments, dynamic context, tool restrictions, and content quality argument-hint: <command-path> --- <objective> Invoke the slash-command-auditor subagent to audit the slash command at $ARGUMENTS for compliance with best practices. This ensures commands follow security, clarity, and effectiveness standards. </objective> <process> 1. Invoke slash-command-auditor subagent 2. Pass command path: $ARGUMENTS 3. Subagent will read best practices and evaluate the command 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