skills/deep-review/SKILL.md
Multi-pass code review with security, quality, structural analysis, and validation
npx skillsauth add RobinNorberg/oh-my-copilot deep-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<Use_When>
/deep-review, --deep<Do_Not_Use_When>
<Why_This_Exists> Single-pass code reviews often miss issues or produce false positives because one reviewer tries to cover all concerns (security, quality, architecture) simultaneously. Deep Review separates concerns into specialized passes where each reviewer focuses on their domain, then adds a validation pass that filters false positives — producing higher-quality, actionable findings. </Why_This_Exists>
<Execution_Policy>
Pass 1 - Security (parallel): Spawn security-reviewer agent
Task(subagent_type="oh-my-copilot:security-reviewer", model="sonnet", name="security-pass", prompt="
SECURITY REVIEW PASS for deep-review.
Review the following changes for security vulnerabilities:
- OWASP Top 10 categories
- Hardcoded secrets
- Injection vulnerabilities (SQL, XSS, command injection)
- Authentication/authorization issues
- Input validation gaps
Output each finding as:
FINDING:
- severity: CRITICAL|HIGH|MEDIUM|LOW
- category: security
- subcategory: [OWASP category]
- file: [file:line]
- title: [brief title]
- description: [detailed description]
- suggestedFix: [how to fix]
END_FINDING
Scope: [insert scope/diff here]
")
Pass 2 - Quality (parallel): Spawn code-reviewer agent
Task(subagent_type="oh-my-copilot:code-reviewer", model="sonnet", name="quality-pass", prompt="
QUALITY REVIEW PASS for deep-review.
Review the following changes for code quality:
- Logic defects (off-by-one, null handling, unreachable branches)
- Error handling completeness
- Performance issues (N+1 queries, O(n²) algorithms)
- Anti-patterns and SOLID violations
- Code duplication
Output each finding as:
FINDING:
- severity: CRITICAL|HIGH|MEDIUM|LOW
- category: quality
- subcategory: [logic|error-handling|performance|anti-pattern|duplication]
- file: [file:line]
- title: [brief title]
- description: [detailed description]
- suggestedFix: [how to fix]
END_FINDING
Scope: [insert scope/diff here]
")
Pass 3 - Structural (parallel): Spawn architect agent
Task(subagent_type="oh-my-copilot:architect", model="sonnet", name="structural-pass", prompt="
STRUCTURAL REVIEW PASS for deep-review.
Review the following changes for architectural concerns:
- API contract changes (breaking changes, versioning)
- Backward compatibility
- Coupling and cohesion issues
- Abstraction leaks
- Module boundary violations
- Dependency direction violations
Output each finding as:
FINDING:
- severity: CRITICAL|HIGH|MEDIUM|LOW
- category: structural
- subcategory: [api-contract|compatibility|coupling|abstraction|boundary|dependency]
- file: [file:line]
- title: [brief title]
- description: [detailed description]
- suggestedFix: [how to fix]
END_FINDING
Scope: [insert scope/diff here]
")
Consolidate findings: Collect all findings from passes 1-3. Deduplicate by file:line + category (if two passes flag the same location for the same concern, merge them).
Pass 4 - Validation: Spawn code-reviewer agent (opus) with ALL findings
Task(subagent_type="oh-my-copilot:code-reviewer", model="opus", name="validation-pass", prompt="
VALIDATION PASS for deep-review.
You are validating findings from 3 specialist review passes. For EACH finding below,
read the actual code at the referenced file:line and determine:
- confirmed_valid: The finding is a real issue that should be fixed
- dismissed_false_positive: The finding is incorrect or not actually an issue (explain why)
- needs_human_review: Cannot determine automatically, needs human judgment
[Insert consolidated findings here]
For each finding, output:
VALIDATION:
- findingId: [N]
- validationStatus: confirmed_valid|dismissed_false_positive|needs_human_review
- validationNote: [brief explanation of validation decision]
END_VALIDATION
")
Generate consolidated report: Produce the final review report:
<Tool_Usage>
Task(subagent_type="oh-my-copilot:security-reviewer", ...) for Pass 1Task(subagent_type="oh-my-copilot:code-reviewer", ...) for Pass 2 and Pass 4Task(subagent_type="oh-my-copilot:architect", ...) for Pass 3<Output_Format>
Scope: [files/PR reviewed] Passes Completed: 4/4 Verdict: APPROVE | REQUEST CHANGES | COMMENT
[CRITICAL] [title] — [category] File: [file:line] Status: ✅ confirmed_valid Description: [description] Fix: [suggestedFix] Validation: [validationNote]
...
...
...
[Finding] — dismissed because: [validationNote]
[Finding] — reason: [validationNote] </Output_Format>
<Final_Checklist>
tools
Durable multi-goal workflow that persists plan/ledger artifacts under .omcp/ultragoal and prints Claude /goal handoff text for the active session
tools
testing
Evidence-driven tracing lane that orchestrates competing tracer hypotheses in Claude built-in team mode
tools
Consensus planning entrypoint that auto-gates vague ralph/autopilot/team requests before execution