Create a new agent following Fractary plugin standards
Creates new agent files following Fractary plugin standards and FABER workflow.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-faber-agent@fractary<name> --type <manager|handler> [--plugin <plugin-name>]claude-haiku-4-5<CRITICAL_RULES> YOU MUST:
YOU MUST NOT:
THIS COMMAND IS ONLY A ROUTER. </CRITICAL_RULES>
<WORKFLOW> 1. **Parse user input** - Extract agent name (required) - Extract type flag: --type <manager|handler> (required) - Extract plugin flag: --plugin <plugin-name> (optional, defaults to current plugin)Validate arguments
Build structured request
Invoke agent
Return response
<ARGUMENT_PARSING>
Purpose: Create a new agent file with proper XML structure and standards compliance
Required Arguments:
<name>: Agent name (lowercase with hyphens, e.g., "data-analyzer")--type <type>: Agent type, either "manager" or "handler"Optional Arguments:
--plugin <plugin-name>: Target plugin (default: detect from current directory)--tools <tools>: Comma-separated tool list (default: "Bash, Skill")--description <desc>: Brief agent description (will be prompted if not provided)Maps to: create-agent operation
Examples:
# Create a manager agent in current plugin
/fractary-faber-agent:create-agent data-analyzer --type manager
# Create a handler agent in specific plugin
/fractary-faber-agent:create-agent terraform-deployer --type handler --plugin faber-cloud
# Create with custom tools
/fractary-faber-agent:create-agent api-client --type manager --tools "Bash, Skill, WebFetch"
Agent Name:
Type:
</ARGUMENT_PARSING>
<AGENT_INVOCATION>
After parsing arguments, invoke the agent using declarative syntax:
Agent: agent-creator (or @agent-fractary-faber-agent:agent-creator)
Request structure:
{
"operation": "create-agent",
"parameters": {
"agent_name": "<name>",
"agent_type": "<manager|handler>",
"plugin_name": "<plugin-name>",
"tools": "<tool-list>",
"description": "<description>"
}
}
The agent will:
create-agent - Create a new agent file with standards compliance</AGENT_INVOCATION>
<ERROR_HANDLING> Common errors to handle:
Missing required argument:
Error: Agent name is required
Usage: /fractary-faber-agent:create-agent <name> --type <manager|handler>
Missing type flag:
Error: --type flag is required
Usage: /fractary-faber-agent:create-agent <name> --type <manager|handler>
Valid types: manager, handler
Invalid agent name format:
Error: Agent name must be lowercase with hyphens (kebab-case)
Example: data-analyzer (not Data_Analyzer or dataAnalyzer)
Invalid type value:
Error: Invalid type: <value>
Valid types: manager, handler
Plugin not found:
Error: Plugin not found: <plugin-name>
Please ensure you're in a valid plugin directory or specify --plugin
</ERROR_HANDLING>
<EXAMPLES> ## Usage Examples# Simple manager agent
/fractary-faber-agent:create-agent data-analyzer --type manager
# Handler agent for cloud infrastructure
/fractary-faber-agent:create-agent terraform-deployer --type handler --plugin faber-cloud
# Agent with custom description
/fractary-faber-agent:create-agent workflow-manager --type manager --description "Orchestrates complete FABER workflows"
# Agent with custom tools
/fractary-faber-agent:create-agent api-client --type manager --tools "Bash, Skill, WebFetch"
🎯 Creating agent: data-analyzer (manager)
Plugin: faber-data
───────────────────────────────────────
📋 Phase 1/5: Frame
Gathering requirements...
📐 Phase 2/5: Architect
Designing agent structure...
🔨 Phase 3/5: Build
Generating from template...
🧪 Phase 4/5: Evaluate
Validating compliance...
✅ XML markup valid
✅ Frontmatter valid
✅ Naming conventions followed
🚀 Phase 5/5: Release
Saving agent file...
✅ Agent created successfully!
Location: plugins/faber-data/agents/data-analyzer.md
Documentation: plugins/faber-data/docs/agents/data-analyzer.md
</EXAMPLES>
<NOTES>
## Design Philosophy
This command follows the Fractary command pattern:
This command integrates with:
For detailed documentation, see:
/specs/SPEC-00015-faber-agent-plugin-specification.md/docs/standards/FRACTARY-PLUGIN-STANDARDS.mdRelated commands:
/fractary-faber-agent:create-skill - Create a skill/fractary-faber-agent:create-command - Create a command/fractary-faber-agent:create-plugin - Create a complete plugin