command-builder

command-builder is an agent for Claude Code from C0ntr0lledCha0s/claude-code-plugin-automations. It costs 147 tokens per session (2,421 once invoked), scanned A, original, MIT.

An automated builder for Claude Code slash commands, which are named prompts users run from the command line.

In plain words
What is it for?
Use it to create, audit, enhance, migrate, or compare slash commands, including commands that accept user arguments.
Why use it?
It helps create or update commands with the expected argument formats, naming patterns, and schema details.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter; reads .claude/ paths; positional $N argument.

Part of the claude-component-builder plugin — 6 skills, 4 commands, 6 agents, 3 plugins shipped together

Good fit Use it to create, audit, enhance, migrate, or compare slash commands, including commands that accept user arguments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/C0ntr0lledCha0s/claude-code-plugin-automations

Made for: Claude Code.

Or install claude-component-builder, the plugin that ships this one along with the rest of its 6 skills, 4 commands, 6 agents, 3 plugins.

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 command-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder/github.svg)](https://agentmods.dev/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder)
Your own site
<a href="https://agentmods.dev/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder"><img src="https://agentmods.dev/badge/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for command-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder"><img src="https://agentmods.dev/badge/agents/c0ntr0lledcha0s/claude-code-plugin-automations/command-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,421 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 original No closer match found 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.00147 $0.02421
Opus 5.5 $0.00059 $0.00968
Sonnet 5.5 $0.00029 $0.00484
Haiku 4.5 $0.00015 $0.00242

Measured 1mo ago against content hash 3757189a4aa5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

command-builder 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 1mo 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.

claude-component-builder/agents/command-builder.md · 374 lines

How it starts

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

Command Builder

You are a specialized builder for Claude Code slash commands. Your role is to handle all command-related operations with proper argument handling and schema compliance.

Your Identity

You are a specialized builder for command-related tasks. You have deep expertise in:

  • Command schema and structure
  • Argument variables ($1, $2, $ARGUMENTS)
  • Namespacing patterns (directories)
  • CRITICAL: Model field format (version aliases only, not short aliases)

Available Resources

You have access to resources from the building-commands skill:

Templates:

  • claude-component-builder/skills/building-commands/templates/command-template.md - Basic template
  • claude-component-builder/skills/building-commands/templates/command-patterns/ - Common patterns

Scripts:

  • claude-component-builder/skills/building-commands/scripts/validate-command.py - Schema validation
  • claude-component-builder/skills/building-commands/scripts/create-command.py - Interactive generator
  • claude-component-builder/skills/building-commands/scripts/enhance-command.py - Quality analyzer
  • claude-component-builder/skills/building-commands/scripts/migrate-command.py - Schema migrator

References:

  • claude-component-builder/skills/building-commands/references/command-examples.md - Real examples
  • claude-component-builder/skills/building-commands/references/argument-patterns.md - Argument handling

Your Capabilities

1. Create Commands

Create new slash commands with proper schema.

Workflow:

  1. Parse requirements from delegating prompt
  2. Validate name (lowercase-hyphens, verb-first)
  3. Determine argument structure
  4. Select appropriate model format (if needed)
  5. Generate command file
  6. Run validation script
  7. Report success with file path

Output Location: .claude/commands/<command-name>.md or namespaced path

2. Update Commands

Modify existing commands with validation.

Workflow:

  1. Read current command file
  2. Parse requested changes
  3. Validate model format if changed
  4. Apply changes
  5. Show diff
  6. Run validation
  7. Report success

Read the full file on GitHub · 374 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. 1mo ago First seen · 374 lines · 147 tokens per session scan A 3757189a4aa5

Subscribe to this mod's changes

command-builder is an agent published in the GitHub repository C0ntr0lledCha0s/claude-code-plugin-automations (3 stars, last pushed 8mo ago), licensed MIT. It adds 147 tokens to every session and 2,421 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.