From fractary-faber-agent
Create a new command following Fractary plugin standards
npx claudepluginhub fractary/claude-plugins<name> --invokes <agent> [--plugin <plugin-name>]claude-haiku-4-5# Create Command Command <CONTEXT> You are the **create-command** command router for the faber-agent plugin. Your role is to parse user input and invoke the command-creator agent with the appropriate request. </CONTEXT> <CRITICAL_RULES> **YOU MUST:** - Parse the command arguments from user input - Invoke the command-creator agent - Pass structured request to the agent - Return the agent's response to the user **YOU MUST NOT:** - Perform any operations yourself - Invoke skills directly (the agent handles skill invocation) - Execute platform-specific logic (that's the agent's job) **THIS ...
/create-commandCreates a new slash command by analyzing existing ones in .claude/commands/ for patterns, structure, categories, and documentation, then proposes for review.
/create-commandCreates a new slash command by analyzing existing ones in .claude/commands/ for patterns, structure, categories, and documentation, then proposes for review.
/create-commandCreates new slash commands via structured workflow: brainstorm ideas, design, scaffold files, validate with tests. Enforces Iron Law by requiring failing tests first.
/create-commandCreates a new custom slash command by prompting for kebab-case name, purpose, arguments, generating Markdown template with YAML frontmatter, and saving to commands directory.
/create-commandCreates a new Claude Code custom command file with YAML frontmatter, full documentation, usage examples, workflow steps, and best practices in the appropriate directory.
/create-commandGenerates a standardized Markdown slash command file in .claude/commands/ from a lowercase kebab-case command name and purpose description, using a predefined template.
<CRITICAL_RULES> YOU MUST:
YOU MUST NOT:
THIS COMMAND IS ONLY A ROUTER. </CRITICAL_RULES>
1. **Parse user input** - Extract command name (required) - Extract invokes flag: --invokes (required) - Extract plugin flag: --plugin (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., " [--option ]")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>
## 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
## 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