Council review

From markus41/claude · View interactive version

Council review is an AI agent skill from the GitHub repository markus41/claude. Domain knowledge for multi-agent council review protocols, orchestration patterns, scoring systems, and deliberation frameworks

How to use this skill

Skill file

Council Review Skill

Domain knowledge for orchestrating multi-agent review councils with structured deliberation protocols.

Use For

Protocol Selection Guide

Decision Tree

What are you reviewing?
├── Security-sensitive code (auth, payments, secrets)
│   └── Use: red-blue-team --preset security
├── Architecture or design decision
│   └── Use: six-thinking-hats --preset architecture
├── Small PR (<100 lines)
│   └── Use: rapid-fire --preset quick
├── Large PR (>500 lines, multi-file)
│   └── Use: blackboard --preset full
├── Contentious change (team disagreement)
│   └── Use: delphi --preset standard
└── Regular code change
    └── Use: expert-panel --preset standard

Protocol Comparison

| Protocol | Rounds | Agent Interaction | Token Cost | Quality | Speed |

|----------|--------|-------------------|------------|---------|-------|

| rapid-fire | 1 | None | Low | Good | Fast |

| expert-panel | 1-2 | After analysis | Medium | High | Medium |

| blackboard | Async | Shared space | Medium | High | Medium |

| red-blue-team | 2 | Adversarial | High | Very High | Slow |

| six-thinking-hats | 6 views | Structured | High | Very High | Slow |

| delphi | 2-3 | Anonymous | Highest | Highest | Slowest |

Orchestration Best Practices

Fan-Out / Fan-In

Context Scoping

Giving each agent the minimum viable context:

Weight Calibration

Default weights reflect review importance:

code-reviewer:         1.0  (always relevant)
security-reviewer:     0.9  (high impact, veto power)
architecture-reviewer: 0.9  (structural decisions matter)
test-strategist:       0.8  (coverage critical for confidence)
performance-analyst:   0.7  (important but often subjective)
accessibility-reviewer: 0.6 (important for frontend)
api-reviewer:          0.6  (important for API changes)
dependency-auditor:    0.6  (important for supply chain)
docs-reviewer:         0.5  (lower weight, rarely blocks)

Veto Power

Consensus Detection

When 2+ agents flag the same file+line range:

Conflict Resolution

When agents disagree on severity:

Scoring System

Scope Independence

Each scope (security, quality, performance, etc.) is scored independently on a 0-100 scale. This prevents a strong quality score from masking a weak security score.

Deduction Tables

Findings map to deductions via category lookup tables. The deduction is multiplied by the finding's confidence score, so low-confidence findings have proportionally less impact.

Scoring Modes

Weighted (default): Scope scores are combined using configurable weights. Good for overall quality assessment where trade-offs are acceptable.

Pass-fail: Each scope must independently meet its threshold. Good for compliance and gating — no scope can compensate for another.

Highest-concern: Overall score equals the weakest scope. Most conservative mode — forces attention to the weakest area.

Auto-Fix Guidelines

When to Auto-Fix

When NOT to Auto-Fix

Safety Checks

After auto-fix:

  1. Run --fix-dry-run first to preview changes
  2. Auto-fix respects skip_patterns in config
  3. Post-fix validation: lint + typecheck
  4. If validation fails: revert the fix, report as "fix-failed"

CI/CD Integration

Pre-Merge Gate

# In CI pipeline:
/cc-council . --preset pre-merge --format json --changed-only > council-result.json
# Check exit code: 0=approved, 1=changes-requested, 2=error

Quality Gate Thresholds

Recommended thresholds by environment:

Development:  --threshold 0.5  (permissive, speed over safety)
Staging:      --threshold 0.7  (balanced)
Production:   --threshold 0.85 (strict)
Compliance:   --threshold 0.9 --scoring pass-fail (audit-grade)

State Machine & Resume

The council saves state at each phase boundary. If a phase fails (e.g., network timeout during fan-out), you can resume from the last checkpoint:

/cc-council --resume <session-id>

State includes:

This means you never lose work from a partially completed council.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.