2.6 KiB
2.6 KiB
name, allowed-tools, description, argument-hint, category, complexity, mcp-servers
| name | allowed-tools | description | argument-hint | category | complexity | mcp-servers | |||
|---|---|---|---|---|---|---|---|---|---|
| orchestrate |
|
Orchestrate complete Fabric pattern workflows |
|
utility | intermediate |
Usage
/orchestrate [user_prompt]
Arguments
user_prompt- Describe your complete workflow need
Execution
This command orchestrates the complete pattern workflow:
-
Get Pattern Suggestions: Use Task tool to call pattern-suggester with user prompt
-
Parse Pattern Sequence: Extract the recommended pattern sequence from the response
-
Execute Pattern Chain: For each pattern in the sequence:
- Use Task tool to call pattern-executor with the pattern name
- Pass the previous pattern's output as input to the next pattern
- Store each output for chaining
-
Return Final Result: Return the last pattern's output directly to the user
Detailed Workflow
Step 1: Get Suggestions
Call pattern-suggester agent with user prompt to get pattern sequence
Step 2: Parse Response
Extract the pattern sequence from suggester's response (e.g., analyze → extract → create_summary)
Step 3: Execute Each Pattern
For each pattern in the sequence, use Task tool with:
- description: "Execute [pattern_name] pattern"
- prompt: "Execute [pattern_name] pattern with this input: [previous_output or original_input]"
- subagent_type: "pattern-executor"
Step 4: Chain Outputs
- First pattern receives the original user input
- Each subsequent pattern receives the output from the previous pattern
- Continue until all patterns are executed
Step 5: Return Result
Return the final pattern's output directly without modification
Examples
Documentation Generation
/orchestrate "Document my codebase with clean, formatted output"
Workflow:
- pattern-suggester returns:
analyze_code → extract_structure → create_documentation - Execute analyze_code with original code
- Execute extract_structure with code analysis
- Execute create_documentation with structure data
- Return final documentation
Security Analysis
/orchestrate "Analyze security vulnerabilities and create a report"
Workflow:
- pattern-suggester returns:
analyze_security → extract_vulnerabilities → create_report - Execute analyze_security with codebase
- Execute extract_vulnerabilities with security analysis
- Execute create_report with vulnerability list
- Return security report
Important Notes
- The command handles all orchestration directly
- Each pattern's output becomes the next pattern's input
- No intermediate agents are involved
- Final output is returned unmodified