agent-auditor: Command for Claude Code

.claude/commands/convert-to-slash.md

convert-to-slash is a command for Claude Code from basher83/agent-auditor. It costs 11 tokens per session (1,565 once invoked), scanned A, a copy of convert-to-slash, MIT.

A command that converts a subagent definition into a slash command when the task no longer needs parallel work or isolated context.

In plain words
What is it for?
Use it to review a subagent file and convert it when it is a one-off or repeatable command rather than a parallel workflow.
Why use it?
It helps remove unnecessary complexity from a task that has become a simple, sequential action.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

This is basher83/agent-auditor's own configuration. It tells Claude Code how to work on agent-auditor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-auditor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to basher83/agent-auditor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/basher83/agent-auditor/main/.claude/commands/convert-to-slash.md
Clone the repo
git clone --depth 1 https://github.com/basher83/agent-auditor

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for convert-to-slash

README.md
[![agentmods](https://agentmods.dev/badge/commands/basher83/agent-auditor/convert-to-slash.svg)](https://agentmods.dev/commands/basher83/agent-auditor/convert-to-slash)
Your own site
<a href="https://agentmods.dev/commands/basher83/agent-auditor/convert-to-slash"><img src="https://agentmods.dev/badge/commands/basher83/agent-auditor/convert-to-slash.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.01565
Opus 5 $0.00005 $0.00783
Sonnet 5 $0.00002 $0.00313
Haiku 4.5 $0.00001 $0.00156

Measured 6d ago against content hash 52f26dbf7c8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

convert-to-slash scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to convert-to-slash — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/convert-to-slash.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Convert Sub-Agent to Slash Command

You are tasked with converting a sub-agent definition back to a slash command. This conversion should happen when parallelization or context isolation is no longer needed.

Input

You will receive a file path to a sub-agent file via $ARGUMENTS.

Decision Criteria - MUST VALIDATE FIRST

Before converting, you MUST validate that conversion is appropriate. A sub-agent should become a slash command when:

Convert when:

  • No parallelization needed - Task runs once, not in parallel batches
  • Context isolation not required - Results can stay in main conversation
  • Simple repeatable action - One-off or simple recurring task
  • Sequential operation - Not part of batch/parallel workflow
  • Realized it was over-engineered - Fell into the "converting all commands to agents" anti-pattern

Do NOT convert when:

  • Parallelization is still needed - Multiple instances running simultaneously
  • Context isolation is required - Need to protect main context window
  • Batch operations at scale - Processing multiple items in parallel
  • Complex multi-step workflows - Might actually need a skill instead

Recovery Strategy

This command helps recover from the anti-pattern of converting all slash commands to sub-agents. From official guidance:

"There are a lot of engineers right now that are going all in on skills. They're converting all their slash commands to skills. I think that's a huge mistake."

The same applies to sub-agents. Many tasks work better as simple slash commands.

Conversion Process

Step 1: Read the sub-agent file

Read the file at $ARGUMENTS

Step 2: Analyze and validate

Ask the user these questions to validate conversion is appropriate:

  1. Do you no longer need parallelization (running multiple instances)?
  2. Do you no longer need context isolation (results can stay in main conversation)?
  3. Is this actually a simple repeatable task (not complex orchestration)?
  4. Would this work better as a slash command?

Read the full file on GitHub · 220 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 220 lines · 11 tokens per session scan A 52f26dbf7c8d

Subscribe to this mod's changes

convert-to-slash is a command published in the GitHub repository basher83/agent-auditor (5 stars, last pushed 6mo ago), licensed MIT. It adds 11 tokens to every session and 1,565 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to convert-to-slash, differing in 0 lines, and is treated as a copy.