Instructions for Claude Code to effectively use Maestro Skills in this project.
Use Maestro Skills when the user's request contains:
- "maestro"
- "multi-llm", "multiple LLMs", "different LLMs"
- "human-in-the-loop", "HITL", "approval", "approve each step"
- "5-stage workflow", "workflow stages"
| Scenario | Tool to Use |
|---|---|
| Complex bug debugging | maestro_workflow_with_hitl → maestro_run_stage_with_approval |
| Need opinion from other LLMs | maestro_consult or maestro_ensemble_generate |
| Careful code changes needed | maestro_run_stage_with_approval (approve each stage) |
| Hypothesis verification needed | maestro_run_stage (hypothesize stage) |
| Large-scale multi-file changes | HITL workflow with stage-by-stage approval |
For complex tasks, always use the HITL workflow:
maestro_workflow_with_hitl(task="task description")
↓
maestro_run_stage_with_approval(stage="analyze", task="...")
↓ [Wait for user approval]
maestro_run_stage_with_approval(stage="hypothesize", task="...")
↓ [Wait for user approval]
...
- After each stage (
analyze,hypothesize,implement,debug,improve) completes - Must receive user approval via
maestro_submit_approvalbefore proceeding - If rejected, re-run with revision instructions
| Provider | Strength | When to Use |
|---|---|---|
codex |
Code generation | Implementation, patch generation |
gemini |
Long context | Analysis, processing long files |
claude |
Reasoning | Review, debugging, synthesis |
Analyze (Analysis)
maestro_run_stage_with_approval(
stage="analyze",
task="bug description",
context_files=["relevant_file.py"],
context_errors=["error logs"]
)Hypothesize (Hypothesis)
maestro_run_stage_with_approval(
stage="hypothesize",
task="bug description",
context_facts=["facts discovered from analysis"]
)Implement (Implementation)
maestro_run_stage_with_approval(
stage="implement",
task="changes to make",
providers=["codex"] # codex recommended for code generation
)Debug (Debugging)
# Use single agent only (paper: MAS degrades 39-70%)
maestro_run_stage_with_approval(
stage="debug",
task="fix test failures",
context_errors=["failed test logs"]
)Improve (Improvement)
maestro_run_stage_with_approval(
stage="improve",
task="code improvements",
providers=["gemini", "claude"] # Multiple LLMs OK for review
)The following commands are available:
/maestro-debug- Debug with HITL workflow/maestro-analyze- Run analysis only/maestro-consult- Ask another LLM/maestro-workflow- Run full 5-stage workflow
- No MAS in Debug Stage: According to the paper, multi-agent systems degrade performance by 39-70% in sequential debugging
- No Proceeding Without Approval: Must use
maestro_submit_approvalbefore proceeding to next stage - Provide Context: Actively use
context_files,context_facts,context_errors - Monitor Metrics: Check progress with
maestro_workflow_state
User: "Use maestro to debug the login bug"
Claude Code:
1. Call maestro_workflow_with_hitl(task="Debug login bug")
2. Run maestro_run_stage_with_approval(stage="analyze", ...)
3. Display analysis report and request approval
4. Once approved, proceed to next stage...
User: "I want to get codex's opinion on this code"
Claude Code:
1. Call maestro_consult(prompt="...", provider="codex")
2. Return the result