This skill should be used when performing exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. It applies to PR reviews, branch comparisons, and comprehensive code quality assessments.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
This skill should be used when performing exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. It applies to PR reviews, branch comparisons, and comprehensive code quality assessments.
Review Workflow
Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection.
Role
Senior Code Review Architect with expertise in security, performance, architecture, and quality assurance.
Prerequisites
Git repository with GitHub CLI (gh) installed and authenticated
Clean main/master branch
Proper permissions to create worktrees and access the repository
For document reviews: Path to a markdown file or document
Workflow
1. Determine Review Target & Setup
First, determine the review target type and set up the code for analysis.
Immediate Actions:
Determine review type: PR number (numeric), GitHub URL, file path (.md), or current branch
Check current git branch
If ALREADY on the PR branch → proceed with analysis on current branch
If DIFFERENT branch → use @skill/git-worktree for isolated analysis
Fetch PR metadata using gh pr view --json for title, body, files, linked issues
Set up language-specific analysis tools
Prepare security scanning environment
Ensure the correct branch is checked out (use gh pr checkout if needed)
Ensure the code is ready for analysis before proceeding.
2. Parallel Agent Reviews
Spawn sub-agents in parallel for comprehensive review. Each sub-agent should focus on a specific aspect of the code.
Core Review Agents (run all in parallel):
Spawn a sub-agent to review Rails conventions using @guidance/review/kieran-rails-reviewer
Spawn a sub-agent to review DHH-style Rails patterns using @guidance/review/dhh-rails-reviewer
If Turbo is used: Spawn a sub-agent for Turbo expertise using @guidance/review/rails-turbo-expert
Spawn a sub-agent to analyze git history using @guidance/review/git-history-analyzer
Spawn a sub-agent to investigate dependencies using @guidance/review/dependency-detective
Spawn a sub-agent for pattern recognition using @guidance/review/pattern-recognition-specialist
Spawn a sub-agent for architecture review using @guidance/review/architecture-strategist
Spawn a sub-agent for code philosophy using @guidance/review/code-philosopher
Spawn a sub-agent for security analysis using @guidance/review/security-sentinel
Spawn a sub-agent for performance review using @guidance/review/performance-oracle
Spawn a sub-agent for DevOps concerns using @guidance/review/devops-harmony-analyst
Spawn a sub-agent for data integrity using @guidance/review/data-integrity-guardian
Spawn a sub-agent to verify agent-accessibility using @guidance/review/agent-native-reviewer
3. Conditional Agents
Run these agents ONLY when the PR matches specific criteria:
If PR contains database migrations (db/migrate/*.rb) or data backfills:
Spawn a sub-agent using @guidance/review/data-migration-expert to validate ID mappings, check for swapped values, verify rollback safety
Spawn a sub-agent using @guidance/review/deployment-verification-agent to create Go/No-Go deployment checklist with SQL verification queries
Trigger conditions:
PR includes files matching db/migrate/*.rb
PR modifies columns that store IDs, enums, or mappings
PR includes data backfill scripts or rake tasks
PR changes how data is read/written
PR title/body mentions: migration, backfill, data transformation, ID mapping
4. Ultra-Thinking Deep Dive
For each phase, spend maximum cognitive effort. Think step by step. Consider all angles. Question assumptions.
## ✅ Code Review Complete**Review Target:** PR #XXXX - [PR Title]
**Branch:** [branch-name]
### Findings Summary:-**Total Findings:** [X]
-**🔴 CRITICAL (P1):** [count] - BLOCKS MERGE
-**🟡 IMPORTANT (P2):** [count] - Should Fix
-**🔵 NICE-TO-HAVE (P3):** [count] - Enhancements
### Created Todo Files:**P1 - Critical (BLOCKS MERGE):**-`001-pending-p1-{finding}.md` - {description}
**P2 - Important:**-`003-pending-p2-{finding}.md` - {description}
**P3 - Nice-to-Have:**-`005-pending-p3-{finding}.md` - {description}
### Next Steps:1. Address P1 Findings: CRITICAL - must be fixed before merge
2. Triage all todos in `.opencode/todos/`3. Work on approved todos using @workflows/work
4. Track progress by updating todo status
8. End-to-End Testing (Optional)
After presenting the Summary Report, offer appropriate testing based on project type: