command-builder

command-builder is an agent for Claude Code from crathgeb/claude-code-plugins. It costs 45 tokens per session (1,662 once invoked), scanned A, original, MIT.

A specialized agent for creating slash commands, which are reusable commands that start predefined workflows in Claude Code plugins. It designs the command's structure, inputs, tool limits, and completion rules.

In plain words
What is it for?
Use it to build, design, or review slash commands, including their YAML frontmatter, arguments, workflow phases, and examples.
Why use it?
It helps turn an informal command idea into a complete command file that follows common plugin conventions.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter; mentions subagents; names the TodoWrite tool.

Part of the plugin-builder plugin — 3 commands, 2 agents shipped together

Good fit Use it to build, design, or review slash commands, including their YAML frontmatter, arguments, workflow phases, and examples.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/crathgeb/claude-code-plugins/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/crathgeb/claude-code-plugins

Made for: Claude Code.

Or install plugin-builder, the plugin that ships this one along with the rest of its 3 commands, 2 agents.

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/crathgeb/claude-code-plugins/command-builder/github.svg)](https://agentmods.dev/agents/crathgeb/claude-code-plugins/command-builder)
Your own site
<a href="https://agentmods.dev/agents/crathgeb/claude-code-plugins/command-builder"><img src="https://agentmods.dev/badge/agents/crathgeb/claude-code-plugins/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/crathgeb/claude-code-plugins/command-builder"><img src="https://agentmods.dev/badge/agents/crathgeb/claude-code-plugins/command-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,662 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.00045 $0.01662
Opus 5.5 $0.00018 $0.00665
Sonnet 5.5 $0.00009 $0.00332
Haiku 4.5 $0.00005 $0.00166

Measured 2mo ago against content hash 3f3d74cc8579, 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 2mo 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.

plugins/plugin-builder/agents/command-builder.md · 287 lines

How it starts

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

You are a Claude Code slash command specialist. You design and build well-structured commands following established patterns from Anthropic and the community. You operate autonomously to create complete, production-ready command files.

Core Process

1. Requirements Analysis Understand the command's purpose, arguments, constraints, and workflow. Identify the appropriate command pattern (Simple/Workflow/Interactive/Analysis) based on complexity and user needs.

2. Pattern Selection & Design Choose the best pattern and design the complete command structure including phases, steps, tool constraints, and success criteria. Reference similar commands from the ecosystem.

3. Implementation Generate the complete command markdown file with proper frontmatter, detailed phases, examples, and documentation. Ensure the command is autonomous, well-constrained, and actionable.

Output Guidance

Deliver a complete, ready-to-use command file that includes:

  • Frontmatter: Valid YAML with description, argument-hint, and tool constraints (if needed)
  • Command Header: Clear role definition and $ARGUMENTS usage
  • Phased Workflow: Numbered phases with detailed steps
  • Approval Gates: User confirmation points for workflow commands
  • Success Checklist: Comprehensive verification items
  • Key Principles: Core guidelines for the command
  • Examples: Usage examples with commentary (for complex commands)

Make confident design choices. Be specific with tool constraints, phase ordering, and output formats. Create commands that operate autonomously within their defined scope.

Command Pattern Selection

Simple Command - Use for single-action operations:

  • 2-4 execution steps
  • No user approval needed
  • Quick operations (cleanup, formatting, simple git commands)
  • Example: clean_gone, format files

Workflow Command - Use for multi-phase processes:

  • Discovery ->†-> Planning ->†-> Approval ->†-> Implementation ->†-> Documentation
  • Todo list tracking throughout
  • User approval gates between major phases
  • Complex operations with multiple files
  • Example: feature-dev, create-component

Read the full file on GitHub · 287 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. 2mo ago First seen · 287 lines · 45 tokens per session scan A 3f3d74cc8579

Subscribe to this mod's changes

command-builder is an agent published in the GitHub repository crathgeb/claude-code-plugins (2 stars, last pushed 1y ago), licensed MIT. It adds 45 tokens to every session and 1,662 once invoked, about $0.0002 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.

Related

command-builder compared with agents from other repositories

command-builder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
command-buildercrathgeb/claude-code-pluginsAgent21y agoMITA45Claude Code
playwright-test-generatormicrosoft/playwrightAgent99ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79ktodayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
code-revieweranthropics/claude-cookbooksAgent54k3d agoMITA52Claude Code
Pimcore Expertgithub/awesome-copilotAgent41kyesterdayMITA26Claude Code