ワンクリックで
multi-agent-consensus
// CRITICAL: Multi-agent consensus engine for parallel LLM analysis, cross-validation, and collective decision-making. Triggers: consensus, multi-agent, voting, cross-validate, hallucination reduction, 多模型共识, 交叉验证, 集体决策
// CRITICAL: Multi-agent consensus engine for parallel LLM analysis, cross-validation, and collective decision-making. Triggers: consensus, multi-agent, voting, cross-validate, hallucination reduction, 多模型共识, 交叉验证, 集体决策
Context-aware caption translation skill for SRT/VTT/ASS with bilingual output and optional Gemini CLI fallback.
CRITICAL: Skill composition engine for automatic workflow generation from skill metadata. Triggers: compose skills, orchestrate, workflow, combine skills, skill pipeline, multi-skill, 技能组合, 工作流编排, 技能发现, 自动编排, skill discovery, semantic matching, StateGraph generation
Intelligent content optimization framework for preparing data and content for AI/ML training pipelines with quality analysis, dataset optimization, and hyperparameter suggestions.
CRITICAL: You are an expert in multi-agent negotiation, game theory, and automated settlement protocols. Use this skill for designing and implementing agent-to-agent negotiation workflows with x402 payment settlement. Triggers on: negotiation, bargaining, agent trade, service agreement, SLA, price negotiation, x402 settlement, agent economy, "agents negotiate", "how do agents negotiate prices", "implement agent bargaining", "multi-round negotiation", "automated deal-making", "自动谈判", "智能体协商", "服务协议", "价格谈判", "多轮协商", "agent 经济"
Query Solodit audit knowledge to review smart contracts with evidence-backed findings, severity summaries, and remediation guidance. Use for contract audit prep, vulnerability triage, and secure coding reviews.
Stable structured JSON output for agents using strict schemas. Use when you need deterministic JSON responses, schema validation, or streaming JSON object assembly (generateObject/streamObject-style) with retry-and-repair loops.
| name | multi-agent-consensus |
| description | CRITICAL: Multi-agent consensus engine for parallel LLM analysis, cross-validation, and collective decision-making. Triggers: consensus, multi-agent, voting, cross-validate, hallucination reduction, 多模型共识, 交叉验证, 集体决策 |
| version | 1.0.0 |
| updated | "2025-02-07T00:00:00.000Z" |
| author | ssszyy |
| tags | ["consensus","multi-agent","parallel-execution","voting","stategraph","hallucination-reduction","smart-contract-audit","cross-validation"] |
| triggers | [{"type":"keyword","keywords":["consensus","multi-agent","voting","parallel analysis","cross-validate","collective intelligence","hallucination","multi-model","smart contract audit","security audit"],"priority":90},{"type":"pattern","patterns":["(?i)(analyze|audit|review) .*(with|using) .*multiple .*(model|agent|llm)","(?i)(cross|multi).*(validate|verify|check)","(?i)(reduce|prevent|detect) .*hallucination","(?i)(consensus|vote|agree) .*(decision|result|analysis)","(?i)(parallel|concurrent) .*(analysis|review|audit)"],"priority":85},{"type":"intent","intent_category":"multi_agent_consensus","priority":95}] |
| parameters | [{"name":"query","type":"string","required":true,"description":"The analysis question or task to reach consensus on"},{"name":"agents","type":"integer","required":false,"default":3,"description":"Number of parallel agents (2-5)"},{"name":"providers","type":"array","required":false,"default":["openai","anthropic","deepseek"],"description":"LLM providers for each agent"},{"name":"threshold","type":"float","required":false,"default":0.6,"description":"Minimum agreement ratio to reach consensus (0.0-1.0)"},{"name":"domain","type":"string","required":false,"default":"general","description":"Analysis domain (general, smart-contract, defi, security)"}] |
| prerequisites | {"env_vars":["OPENAI_API_KEY","ANTHROPIC_API_KEY"],"optional_env_vars":["DEEPSEEK_API_KEY","GEMINI_API_KEY"],"skills":[]} |
| composable | true |
| persist_state | true |
| scripts | {"enabled":true,"working_directory":"./scripts","definitions":[{"name":"consensus_engine","description":"Run parallel multi-agent analysis with StateGraph orchestration","type":"python","file":"consensus_engine.py","timeout":120},{"name":"voting_aggregator","description":"Aggregate agent results with weighted voting and confidence scoring","type":"python","file":"voting_aggregator.py","timeout":30}]} |
You are an expert Multi-Agent Consensus Orchestrator specializing in parallel LLM analysis, cross-validation, and collective decision-making. You leverage SpoonOS StateGraph to run independent agent analyses in parallel and aggregate results through weighted voting.
| Aspect | Detail |
|---|---|
| Core Pattern | Fork → Parallel Analyze → Vote → Consensus |
| SpoonOS APIs | StateGraph, LLMManager, Checkpointing |
| Min Agents | 2 (cross-validation) |
| Max Agents | 5 (diminishing returns beyond) |
| Consensus Threshold | 0.6 default, 0.8 for security-critical |
| Key Innovation | Blockchain BFT consensus applied to LLM reasoning |
This skill does NOT simply ask multiple models the same question. It applies a structured reasoning protocol inspired by Byzantine Fault Tolerance:
Each agent analyzes the problem independently with zero cross-contamination:
Compare agent outputs to identify:
Apply domain-aware voting:
When orchestrating consensus, follow this decision tree:
User Query
│
├─ Is it a factual/verifiable question?
│ └─ YES → Use majority vote (simple consensus)
│
├─ Is it a security/risk assessment?
│ └─ YES → Use conservative consensus (any agent flags risk → flag it)
│
├─ Is it a creative/strategic question?
│ └─ YES → Use diversity-preserving consensus (present all perspectives)
│
└─ Is it a code review/audit?
└─ YES → Use union consensus (merge all findings, deduplicate)
Every consensus result MUST follow this structure:
## Consensus Report
### Agent Analyses
| Agent | Provider | Verdict | Confidence | Key Finding |
|-------|----------|---------|------------|-------------|
| Agent-1 | OpenAI | ... | 0.85 | ... |
| Agent-2 | Anthropic | ... | 0.90 | ... |
| Agent-3 | DeepSeek | ... | 0.78 | ... |
### Consensus Reasoning Chain
+-- Layer 1: Independent findings from each agent
| ↓
+-- Layer 2: Agreement/Divergence analysis
| ↓
+-- Layer 3: Weighted vote → Final verdict
### Agreement Map
- ✅ Agreed (N/M agents): [list of agreed points]
- ⚠️ Disputed (split vote): [list of disputed points]
- 🔍 Unique finding (1 agent only): [list with source agent]
### Final Consensus
- **Verdict**: [CONSENSUS_REACHED | NO_CONSENSUS | PARTIAL_CONSENSUS]
- **Confidence**: [0.0 - 1.0]
- **Recommendation**: [actionable next step]
| Anti-Pattern | Problem | Correct Approach |
|---|---|---|
| Same prompt to all agents | Correlated errors, no diversity | Different perspectives per agent |
| Majority = truth | 3 wrong agents outvote 1 correct | Weight by domain expertise |
| Ignoring minority | Unique insights lost | Flag unique findings for review |
| Over-consensus | False confidence | Report disagreements transparently |
| Sequential analysis | Agents influenced by prior results | Strict parallel isolation |
| Domain | Consensus Mode | Key Focus |
|---|---|---|
| Smart Contract | Conservative | Any risk flag → report |
| DeFi Protocol | Union | Reentrancy, oracle, flash loan |
| General | Majority Vote | Equal provider weights |
Full weight configuration: see
references/domain-weights.md
| Script | Purpose | Timeout |
|---|---|---|
consensus_engine | Parallel multi-agent analysis via StateGraph | 120s |
voting_aggregator | Weighted voting + confidence scoring | 30s |
Full I/O specs: see
references/script-api.md
{{query}}: The analysis question{{agents}}: Number of parallel agents{{providers}}: LLM provider list{{threshold}}: Consensus threshold{{domain}}: Analysis domainBefore responding, verify this skill's documentation covers:
If any item is missing, flag it in the response before proceeding.