Create a new command following Fractary plugin standards
Creates new command routers following Fractary plugin standards and conventions.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-faber-agent@fractary<name> --invokes <agent> [--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 command name (required) - Extract invokes flag: --invokes <agent> (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 command router with proper frontmatter and standards compliance
Required Arguments:
<name>: Command name (lowercase with hyphens, e.g., "create-feature")--invokes <agent>: Agent that this command will invoke (e.g., "feature-creator")Optional Arguments:
--plugin <plugin-name>: Target plugin (default: detect from current directory)--description <desc>: Brief command description (will be prompted if not provided)--arguments <hint>: Argument hint for command (e.g., "<name> [--option <value>]")Maps to: create-command operation
Examples:
# Create a command that invokes an agent
/fractary-faber-agent:create-command create-feature --invokes feature-creator
# Create in specific plugin
/fractary-faber-agent:create-command deploy --invokes deployment-manager --plugin faber-cloud
# Create with custom arguments
/fractary-faber-agent:create-command analyze --invokes data-analyzer --arguments "<dataset> [--format <type>]"
Command Name:
Agent Name (--invokes):
</ARGUMENT_PARSING>
<AGENT_INVOCATION>
After parsing arguments, invoke the agent using declarative syntax:
Agent: command-creator (or @agent-fractary-faber-agent:command-creator)
Request structure:
{
"operation": "create-command",
"parameters": {
"command_name": "<name>",
"agent_name": "<agent>",
"plugin_name": "<plugin-name>",
"description": "<description>",
"argument_hint": "<hint>"
}
}
The agent will:
create-command - Create a new command file with standards compliance</AGENT_INVOCATION>
<ERROR_HANDLING> Common errors to handle:
Missing required argument:
Error: Command name is required
Usage: /fractary-faber-agent:create-command <name> --invokes <agent>
Missing --invokes flag:
Error: --invokes flag is required
Usage: /fractary-faber-agent:create-command <name> --invokes <agent>
Example: /fractary-faber-agent:create-command deploy --invokes deployment-manager
Invalid command name format:
Error: Command name must be lowercase with hyphens (kebab-case)
Example: create-feature (not Create_Feature or createFeature)
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 command
/fractary-faber-agent:create-command create-feature --invokes feature-creator
# Command in specific plugin
/fractary-faber-agent:create-command deploy --invokes deployment-manager --plugin faber-cloud
# Command with custom description
/fractary-faber-agent:create-command analyze --invokes data-analyzer --description "Analyze datasets and generate insights"
# Command with argument hint
/fractary-faber-agent:create-command process --invokes data-processor --arguments "<input-file> --output <path> [--format <type>]"
🎯 Creating command: create-feature
Plugin: faber-app
Invokes: feature-creator
───────────────────────────────────────
📋 Phase 1/5: Frame
Gathering requirements...
📐 Phase 2/5: Architect
Designing command structure...
🔨 Phase 3/5: Build
Generating from template...
🧪 Phase 4/5: Evaluate
Validating compliance...
✅ Frontmatter valid (name: fractary-faber-app:create-feature)
✅ XML markup valid
✅ Argument syntax follows SPEC-0014
🚀 Phase 5/5: Release
Saving command file...
✅ Command created successfully!
Location: plugins/faber-app/commands/create-feature.md
Full name: /fractary-faber-app:create-feature
Invokes: feature-creator agent
</EXAMPLES>
<NOTES>
## Design Philosophy
This command follows the Fractary command pattern:
This command integrates with:
Related commands:
/fractary-faber-agent:create-agent - Create an agent/fractary-faber-agent:create-skill - Create a skill/fractary-faber-agent:create-plugin - Create a complete plugin/create-commandCreate a new command following existing patterns and organizational structure