council-review
Domain knowledge for multi-agent council review protocols, orchestration patterns, scoring systems, and deliberation frameworks
What this skill does
# Council Review Skill
Domain knowledge for orchestrating multi-agent review councils with structured deliberation protocols.
## Use For
- Running `/cc-council` reviews with appropriate protocol selection
- Configuring council members, weights, and voting thresholds
- Understanding when to use each deliberation protocol
- Interpreting council scores and making go/no-go decisions
- Setting up auto-fix pipelines with confidence thresholds
- Integrating council reviews into CI/CD pipelines
## 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
- **Always** spawn all agents in a single message for true parallelism
- Each agent gets **scoped context** — only the files/info they need
- Use `run_in_background: false` so results come back synchronously
- Handle partial failures: if 3/4 agents respond, proceed with 3
### Context Scoping
Giving each agent the minimum viable context:
- Reduces token cost by 40-60%
- Improves finding quality (less noise to filter)
- Prevents agents from commenting outside their specialty
### 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
- Only `security-reviewer` and `secrets-scanner` have default veto
- Veto triggers on: critical finding + confidence >= 0.8
- Veto overrides weighted voting — always results in `changes-requested`
- Rationale: security issues must never be approved by majority vote
### Consensus Detection
When 2+ agents flag the same file+line range:
- Boost confidence by 1.2x
- Mark as "consensus" in report (stronger signal)
- These findings are almost always valid
### Conflict Resolution
When agents disagree on severity:
- Lead agent (if designated) has tie-breaking authority
- Otherwise: higher-weight agent's assessment wins
- Always report the conflict with both perspectives
## 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
- Formatting and style issues (confidence typically 0.95+)
- Import organization (high confidence, mechanical)
- Type annotations (when TypeScript can infer)
- Simple null checks (optional chaining additions)
### When NOT to Auto-Fix
- Business logic changes (too context-dependent)
- Architecture refactoring (requires human judgment)
- Test modifications (risk of masking real failures)
- Migration files (must be append-only)
- Generated files (will be overwritten)
### 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
```bash
# 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:
- Council plan (members, protocol, scopes)
- Raw agent outputs (findings + votes)
- Deliberation results (consensus, conflicts)
- Score calculations
This means you never lose work from a partially completed council.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.