Logo di Maestro Workflow

Maestro Workflow

Organizzazione
sionic-ai
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.

Panoramica

Autoresionic-ai
Repositorysionic-maestro-skills
Nome della skillmaestro-workflow
Stelle
48
Fork
4
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da sionic-ai su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Maestro Workflow in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/sionic-ai/sionic-maestro-skills/tree/main/.claude/skills/maestro-workflow
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sionic-ai/sionic-maestro-skills.git /tmp/sionic-maestro-skills
mkdir -p .claude/skills
cp -r /tmp/sionic-maestro-skills/.claude/skills/maestro-workflow .claude/skills/maestro-workflow
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Maestro Workflow in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Maestro Workflow non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Maestro Workflow non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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_best with tests_first mode (not voting!)

Available Tools

ToolPurposeWhen to Use
maestro_consultSingle model consultationAnalysis, code review, specific questions
maestro_ensemble_generateMultiple candidatesHypothesis generation, solution exploration
maestro_select_bestPick best candidateAfter ensemble, with test/lint results
maestro_pack_contextSmart context packingBefore any consultation
maestro_run_stageExecute workflow stageStructured 5-stage execution
maestro_workflow_stateCheck progressMonitor budget, see history
maestro_get_metricsPaper-aligned metricsPerformance analysis

The 5-Stage Workflow

Stage 1: Example Analysis (analyze)

Goal: Freeze facts before guessing.

Process:

  1. Gather context with file reads, grep, ls
  2. Optionally use maestro_consult(provider="gemini") for large file summarization
  3. Document observations, repro steps, affected modules

Output (JSON):

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:

  1. Use maestro_ensemble_generate(task="Top 3 root causes...", providers=["codex", "gemini"])
  2. Each hypothesis must have a VERIFICATION TEST
  3. Use maestro_select_best to pick most testable hypothesis

Output (JSON):

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:

  1. Claude Code (orchestrator) edits the file directly
  2. Optionally consult maestro_consult(provider="codex") for diff suggestions
  3. 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:

  1. Analyze the NEW error (what changed?)
  2. Update hypothesis confidence
  3. Make SINGLE smallest change
  4. 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:

  1. Review for code quality (but don't over-engineer!)
  2. Identify edge cases
  3. Add regression tests
  4. 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, iterate
   Single agent mode, minimal changes

6. [IMPROVE] After tests pass
   Add edge case tests, review for safety

Pattern 2: Code Review with Diverse Perspectives

User: "Review this PR for security issues"

1. maestro_pack_context(files=[changed_files], stage="analyze")

2. maestro_ensemble_generate(
     task="Security review: identify vulnerabilities in...",
     providers=["codex", "gemini", "claude"]
   )

3. maestro_select_best(candidates=..., mode="llm_judge", criteria=["security", "severity"])

Pattern 3: Checking Metrics Mid-Workflow

User: "How much coordination overhead have we used?"

maestro_workflow_state()
# Returns: consults used, budget remaining, efficiency score

Coordination Budget

Per Workflow Limits (configurable):

  • Max consults per stage: 2
  • Max total consults: 6
  • Capability threshold: 45%

When to SKIP ensemble:

  • You're confident in the solution
  • It's a tool-heavy stage (implement, debug)
  • Budget is exhausted

Error Handling

If a sub-agent fails:

  1. Check stderr in the response
  2. Try a different provider
  3. Fall back to single-agent mode
  4. Document the failure in tracing

Metrics (Paper-Aligned)

After any workflow, check:

maestro_get_metrics()

Key metrics:

  • Coordination Overhead (O%): Extra calls vs single-agent
  • Efficiency Score (Ec): Success / overhead ratio
  • Test Coverage Rate: Selections that had test signals

Target: O% < 300%, Ec > 0.4, Test Coverage > 80%

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Maestro Workflow su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Maestro Workflow è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Maestro Workflow in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/sionic-ai/sionic-maestro-skills/tree/main/.claude/skills/maestro-workflow. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Maestro Workflow?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Maestro Workflow?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Maestro Workflow: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Maestro Workflow è gratuita?

È pubblicata su GitHub da sionic-ai. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇