Create a new Claude Code component (agent, skill, command, or hook). For plugins, use `/agent-builder:plugin create` instead.
Creates a new Claude Code component by delegating to specialized builder agents.
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install agent-builder@claude-code-plugin-automations[type] [name]claude-sonnet-4-5Create a new Claude Code component by delegating to the appropriate specialized builder agent.
Arguments:
$1 (required): Component type - agent, skill, command, hook$2 (required): Component name (lowercase-hyphens, max 64 chars)Full arguments: $ARGUMENTS
For creating plugins (multi-component packages), use the dedicated plugin command:
/agent-builder:plugin create my-plugin
The plugin command provides full orchestration including:
agent, skill, command, hookplugin, redirect user to /agent-builder:plugin createUse the Task tool to invoke the appropriate builder agent:
| Type | Builder Agent | Example Prompt |
|---|---|---|
| agent | agent-builder | "Create agent 'code-reviewer' for [purpose]" |
| skill | skill-builder | "Create skill 'analyzing-code' for [purpose]" |
| command | command-builder | "Create command 'run-tests' for [purpose]" |
| hook | hook-builder | "Create hook 'validate-write' for [purpose]" |
Show:
/agent-builder:new agent code-reviewer
↓
Validate: type=agent, name=code-reviewer ✓
↓
Task → agent-builder
Prompt: "Create agent 'code-reviewer' for reviewing code quality"
↓
Created: .claude/agents/code-reviewer.md
/agent-builder:new agent code-reviewer
Delegates to agent-builder agent.
/agent-builder:new skill analyzing-code
Delegates to skill-builder agent.
/agent-builder:new command run-tests
Delegates to command-builder agent.
/agent-builder:new hook validate-write
Delegates to hook-builder agent.
| Type | Builder | Key Consideration |
|---|---|---|
| agent | agent-builder | Action-oriented naming (e.g., code-reviewer) |
| skill | skill-builder | Gerund naming (e.g., analyzing-code), NO model field |
| command | command-builder | Model must use version alias (e.g., claude-sonnet-4-5) |
| hook | hook-builder | Security review required for all hooks |
ℹ️ For plugins, use the dedicated plugin command:
/agent-builder:plugin create $2
This provides full orchestration including template selection,
parallel component creation, and marketplace registration.
❌ Invalid type: "$1"
Valid types: agent, skill, command, hook
For plugins, use: /agent-builder:plugin create [name]
❌ Invalid name: "$2"
Names must be:
- Lowercase letters, numbers, and hyphens only
- Maximum 64 characters
- No underscores or special characters
Examples: code-reviewer, analyzing-code, run-tests
⚠️ Component creation failed
Error from $1-builder: [error details]
Options:
1. Fix the issue and retry
2. Check validation: /agent-builder:validate [path]
When invoked:
$1 as type, $2 as name/agent-builder:plugin create