maestro-workflow
БесплатноБез исполняемых скриптовНе проверенMulti-LLM orchestration implementing the 5-stage coding workflow: Example Analysis → Hypothesis → Implementation → Debug Loop → Recursive Improvement. Based…
Об этом скилле
Maestro Workflow: Multi-LLM Orchestration with Measured Coordination
Core Philosophy (Paper-Based)
This workflow implements findings from "Towards a Science of Scaling Agent Systems":
1. Tool-Coordination Trade-off
- Paper finding: Tool-heavy tasks suffer from multi-agent coordination overhead
- Our rule: Only Claude Code (orchestrator) runs tools (edit files, run tests)
- Sub-agents (Codex/Gemini) provide TEXT ADVICE ONLY
2. Capability Saturation (~45% threshold)
- Paper finding: When single-agent baseline exceeds ~45%, MAS returns diminish
- Our rule: If you're confident about the solution, SKIP ensemble generation
- Ask yourself: "Am I stuck, or do I just want confirmation?"
3. Error Amplification Prevention
- Paper finding: Independent agents amplify errors 17.2x without verification
- Our rule: ALWAYS verify with tests before accepting any candidate
- Use
maestro_select_bestwithtests_firstmode (not voting!)
Available Tools
| Tool | Purpose | When to Use |
|---|---|---|
maestro_consult |
Single model consultation | Analysis, code review, specific questions |
maestro_ensemble_generate |
Multiple candidates | Hypothesis generation, solution exploration |
maestro_select_best |
Pick best candidate | After ensemble, with test/lint results |
maestro_pack_context |
Smart context packing | Before any consultation |
maestro_run_stage |
Execute workflow stage | Structured 5-stage execution |
maestro_workflow_state |
Check progress | Monitor budget, see history |
maestro_get_metrics |
Paper-aligned metrics | Performance analysis |
The 5-Stage Workflow
Stage 1: Example Analysis (analyze)
Goal: Freeze facts before guessing.
Process:
- Gather context with file reads,
grep,ls - Optionally use
maestro_consult(provider="gemini")for large file summarization - Document observations, repro steps, affected modules
Output (JSON):
{
"observations": ["Test fails with IndexError on line 42"],
"repro_steps": ["Run pytest test_auth.py::test_login"],
"affected_modules": ["src/auth.py", "src/db.py"],
"invariants": ["Must not break existing login flow"]
}
Coordination Policy: Low overhead allowed (2 consults max)
Stage 2: Hypothesis Formulation (hypothesize)
Goal: Generate competing explanations with testable predictions.
Process:
- Use
maestro_ensemble_generate(task="Top 3 root causes...", providers=["codex", "gemini"]) - Each hypothesis must have a VERIFICATION TEST
- Use
maestro_select_bestto pick most testable hypothesis
Output (JSON):
{
"hypotheses": [
{
"id": "H1",
"claim": "Off-by-one error in array indexing",
"verification_test": "Add edge case test with empty array",
"confidence": 0.7
}
],
"selected": "H1",
"test_command": "pytest test_auth.py::test_empty_users -v"
}
Coordination Policy: Ensemble ENCOURAGED (best stage for MAS)
Stage 3: Code Implementation (implement)
Goal: Apply minimal, testable changes.
Process:
- Claude Code (orchestrator) edits the file directly
- Optionally consult
maestro_consult(provider="codex")for diff suggestions - Run tests IMMEDIATELY after edit
Key Rules:
- NO parallel implementations (creates conflicts)
- ONE change at a time
- Test after EVERY change
Coordination Policy: Single agent PREFERRED (tool-heavy = bad for MAS)
Stage 4: Iterative Debugging (debug)
Goal: Fix without divergence.
Process:
- Analyze the NEW error (what changed?)
- Update hypothesis confidence
- Make SINGLE smallest change
- Test again
WARNING: Paper shows sequential debugging DEGRADES with multi-agent!
Coordination Policy:
- Single agent ONLY for first 2 iterations
- Consult external ONLY if stuck for 3+ iterations
- Feed error logs into context
Iteration Limit: 5 (escalate if exceeded)
Stage 5: Recursive Improvement (improve)
Goal: Refactor and stabilize after tests pass.
Process:
- Review for code quality (but don't over-engineer!)
- Identify edge cases
- Add regression tests
- Optional:
maestro_consult(provider="claude")for safety review
Entry Condition: ALL TESTS MUST PASS
Coordination Policy: Ensemble OK for review/suggestions
Example Usage Patterns
Pattern 1: Bug Investigation
User: "The login test is failing, can you debug it?"
1. [ANALYZE] Read test file, error logs
maestro_pack_context(files=["tests/test_auth.py"], errors=[error_log], stage="analyze")
2. [HYPOTHESIZE] Generate root cause theories
maestro_ensemble_generate(task="Top 3 causes for IndexError in auth...", providers=["codex", "gemini"])
3. [SELECT] Pick most testable hypothesis
maestro_select_best(candidates=..., mode="tests_first", test_results=[...])
4. [IMPLEMENT] Fix (Claude edits directly)
Edit file, run pytest
5. [DEBUG] If test still fails,
Установить maestro-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл maestro-workflow?
Multi-LLM orchestration implementing the 5-stage coding workflow: Example Analysis → Hypothesis → Implementation → Debug Loop → Recursive Improvement. Based on "Towards a Science of Scaling Agent Systems" (Kim et al., 2025): - Centralized Consult architecture (Claude orchestrates, others advise) - Measured coordination (avoid MAS overhead in tool-heavy stages) - Tests-first selection (Poetiq pattern, not voting) Use when: Debugging complex issues, analyzing unfamiliar code, refactoring, or any task that benefits from diverse LLM perspectives with verification.
Как установить скилл maestro-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл maestro-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic