xiaohongshu
xiaohongshu
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)...
Full skill instructions
This workflow implements findings from "Towards a Science of Scaling Agent Systems":
maestro_select_best with tests_first mode (not voting!)| 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 |
Goal: Freeze facts before guessing.
Process:
grep, lsmaestro_consult(provider="gemini") for large file summarizationOutput (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)
Goal: Generate competing explanations with testable predictions.
Process:
maestro_ensemble_generate(task="Top 3 root causes...", providers=["codex", "gemini"])maestro_select_best to pick most testable hypothesisOutput (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)
Goal: Apply minimal, testable changes.
Process:
maestro_consult(provider="codex") for diff suggestionsKey Rules:
Coordination Policy: Single agent PREFERRED (tool-heavy = bad for MAS)
Goal: Fix without divergence.
Process:
WARNING: Paper shows sequential debugging DEGRADES with multi-agent!
Coordination Policy:
Iteration Limit: 5 (escalate if exceeded)
Goal: Refactor and stabilize after tests pass.
Process:
maestro_consult(provider="claude") for safety reviewEntry Condition: ALL TESTS MUST PASS
Coordination Policy: Ensemble OK for review/suggestions
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
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"])
User: "How much coordination overhead have we used?"
maestro_workflow_state()
# Returns: consults used, budget remaining, efficiency score
Per Workflow Limits (configurable):
When to SKIP ensemble:
If a sub-agent fails:
stderr in the responseAfter any workflow, check:
maestro_get_metrics()
Key metrics:
Target: O% < 300%, Ec > 0.4, Test Coverage > 80%
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience