council-codereview
Use for code review and quality feedback from both Codex and Gemini. Triggers on "council review code", "council code review", "have council review this", "get council feedback on code".
When & Why to Use This Skill
The Council Code Review skill leverages a multi-model ensemble approach, utilizing both Codex and Gemini to provide rigorous, high-level feedback on code quality. It automates the detection of logic errors, security vulnerabilities, and performance bottlenecks by synthesizing insights from two distinct AI architectures, ensuring a comprehensive 'council' verdict before code deployment.
Use Cases
- Pre-Pull Request Validation: Automatically review staged git changes to identify critical bugs and security flaws before they reach the main branch.
- Security Vulnerability Auditing: Perform deep scans for potential security risks and insecure coding patterns using the combined intelligence of multiple AI models.
- Code Quality & Refactoring: Receive actionable suggestions for improving code readability, maintainability, and adherence to industry best practices.
- Multi-Perspective Synthesis: Resolve technical ambiguity by comparing feedback from different AI engines to reach a more reliable 'Final Verdict' on complex implementations.
| name | council-codereview |
|---|---|
| description | Use for code review and quality feedback from both Codex and Gemini. Triggers on "council review code", "council code review", "have council review this", "get council feedback on code". |
Council Code Review Skill
Comprehensive code review with both Codex (GPT-5.2) and Gemini for quality, security, and best practices.
When to Use
- Before committing or creating PRs
- Reviewing new code implementations
- Checking for security vulnerabilities
- Getting quality feedback
- When user asks for code review from the council
Reasoning Level
high (default for code review)
Execution
Identify the code to review:
- Specific files mentioned by user
- Staged git changes (
git diff --staged) - Recent modifications
Gather the code content and context
Formulate a review prompt:
Review this code for quality, security, and best practices: File: <filename>```Please analyze:
- Potential bugs or logic errors
- Security vulnerabilities
- Performance issues
- Code style and readability
- Suggestions for improvement
Run BOTH commands in parallel:
Codex:
codex exec --sandbox read-only -c model_reasoning_effort="high" "<prompt>"Gemini:
gemini -s -y -o json "<prompt>"Synthesize review findings
Response Format
## AI Council Code Review
### Codex (GPT-5.2) Review:
**Issues Found:**
- [Severity: High/Medium/Low] [Issue description]
**Security Concerns:**
- [Any security issues]
**Suggestions:**
- [Improvement suggestions]
---
### Gemini Review:
**Issues Found:**
- [Severity: High/Medium/Low] [Issue description]
**Security Concerns:**
- [Any security issues]
**Suggestions:**
- [Improvement suggestions]
---
### Council Synthesis:
**Critical Issues (Both Agree):**
- [Issues identified by both - highest priority]
**Additional Concerns:**
- [Issues only one model caught]
**Agreed Best Practices:**
- [Suggestions both models recommend]
**Final Verdict:** [LGTM / Needs Changes / Blocking Issues]
---
*Session IDs: Codex=[id], Gemini=[id]*