界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

multi-ai-review

multi-ai-review

【数据与研究】Claude + Gemini CLI + Codex CLI multi-AI consensus engine. 3-Stage Pipeline (opinions → rebuttal → synthesis) drives consensus across domains: code review, market analysis, investment diligence, risk assessment, and more. Automatically detects domain from natural language and applies appropriate preset. Triggers: - "review this", "convene a council…

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: multi-ai-review description: | Claude + Gemini CLI + Codex CLI multi-AI consensus engine. 3-Stage Pipeline (opinions → rebuttal → synthesis) drives consensus across domains: code review, market analysis, investment diligence, risk assessment, and more.

Automatically detects domain from natural language and applies appropriate preset.

Triggers:

  • "review this", "convene a council", "get multiple AI opinions", "deep review", "consensus"
  • "market analysis", "macro analysis", "investment review", "risk assessment"
  • Any situation needing multiple perspectives — trigger proactively version: 4.2.0 updated: 2026-04-01

Multi-AI Review — Universal Consensus Engine

Heavy-Hitter: State the domain in natural language — right panel assembled automatically. Cost: CLI subscription plans only — no additional API charges.

Quick Start

# Code review
"Review this PR"

# Market analysis
"How does the market look today?"

# Investment
"Evaluate this investment"

# Consensus (auto-applied)
"Convene a council on this direction"

Prerequisites

command -v claude   # Claude Code (Chairman)
command -v gemini   # Gemini CLI (optional)
command -v codex    # Codex CLI (optional)

3-Stage Pipeline

Stage 1: Initial Opinions (parallel)
├── Gemini CLI → opinion.md (perspective A)
└── Codex CLI  → opinion.md (perspective B)

Stage 2: Cross-Review (rebuttal)
├── Gemini reviews/rebuts Codex
└── Codex reviews/rebuts Gemini

Stage 3: Chairman Synthesis
└── Claude synthesizes → Score Card → decides if more rounds needed

Domain Auto-Routing

Keywords detected automatically — no preset naming needed.

PresetKeywordsGeminiCodex
code-reviewreview, PR, code, mergearchitecture/UXtechnical/patterns
market-regimemarket, stocks, macromacro/newsquant/indicators
investmentinvestment, valuation, dealmarket/strategyfinance/risk
risk-assessmentrisk, security, dangerexternal threatsinternal weaknesses
project-gategate, milestone, Go/No-Gostakeholders/scopeschedule/resources
planningplan, PRD, design, architecture, councilCTO (architecture/scalability)Security (threats/compliance)
default(fallback)strategy/opportunityexecution/risk

Full presets: presets/*.yaml


Score Card

Grade Thresholds

GradeMin Score
A90
B80
C70
D60
F0

Severity Labels

LabelMeaning
CriticalImmediate action
HighPriority recommended
MediumImprovement recommended
LowFor reference

Key Dimensions (code-review example)

DimensionWeight
Security25%
Performance20%
Maintainability25%
Correctness20%
Style10%

Chairman Rules (v4.1.0)

Core Principles:

  1. Evidence Hierarchy — file:line citations outrank structural scores
  2. Verification Required — score changes need grep/file read/test proof
  3. Pre-Deploy Gate — Done-When checks BEFORE deployment
  4. Delta Arbitration — score gap ≥15 triggers verification (no averaging)
  5. 2× Codex Weight — in code-review/project-gate when verified
  6. Council Skeptic — planning domain: play Devil's Advocate. Challenge every recommendation with "What's the tradeoff?" — never accept "good point" without a follow-up probing question.
  7. Planning Fallback — planning domain + CLI unavailable: spawn Agent(CTO) + Agent(UX) + Agent(Security) per references/council-personas.md instead of skipping.

Quick Reference:

RuleTriggerAction
Evidence HierarchyConcrete vs structuralPrioritize file:line
Verification RequiredScore adjustmentRun grep/file read first
Pre-Deploy GateTask completionBlock if checks fail
Delta ArbitrationGap ≥15Verify, don't average
2× Weightcode-review + verified CodexFormula: (codex×2 + gemini)/3
Council Skepticplanning domain"What's the tradeoff?" on every recommendation
Planning Fallbackplanning + no CLISpawn Agent(CTO) + Agent(UX) + Agent(Security)

Detailed rules: references/evidence-rules.md


Chairman Protocol (Stage 3)

1. Extract Evidence
   - File:line citations (Codex)
   - Structural observations (Gemini)
   - Run Done-When verification

2. Consensus Evaluation
   - Consensus reached? → Proceed
   - Unresolved issues? → Additional round
   - Score gap ≥15? → Verify per Evidence Rules

3. Additional Round (if needed, max 2)
   - Focused question on contention point
   - Re-run Cross-Review

4. Final Synthesis
   - Score Card with grades
   - Severity summary
   - Recommendations

Full protocol: references/chairman-protocol.md


CI Quality Gate

./skills/multi-ai-review/scripts/council.sh --mode ci "review request"

Thresholds (council.config.yaml):

  • Critical issues: fail if > 0
  • High issues: fail if > 3
  • Overall score: fail if < 70

on_fail: "block" — returns non-zero exit code.


Preset Verdicts

PresetVerdict Options
code-reviewA / B / C / D / F (score-based)
market-regimeStrong Bull / Bull / Neutral / Bear / Strong Bear
investmentStrong Buy / Buy / Hold / Pass / Strong Pass
risk-assessmentCritical / High / Medium / Low / Negligible
planningStrongly Recommend / Recommend / Revise / Major Revise / Reject
defaultStrong Agree / Agree / Neutral / Disagree / Strong Disagree

File Structure

skills/multi-ai-review/
├── SKILL.md                    # this file
├── council.config.yaml         # member, routing, scoring config
├── presets/
│   ├── code-review.yaml
│   ├── market-regime.yaml
│   ├── investment.yaml
│   └── default.yaml
├── scripts/
│   └── council.sh              # main execution
└── references/
    ├── evidence-rules.md       # Chairman Evidence Weighting (detailed)
    └── chairman-protocol.md    # Stage 3 protocol (detailed)

Last Updated: 2026-04-01 (v4.2.0 — Council mode: planning preset + CTO/UX/Security personas + Council Skeptic rule)

我的收藏