Code Review Mode
Recommended model tier: smart (opus) - this skill requires complex reasoning
Comprehensive code review covering quality, security, and maintainability.
Review Checklist
Code Quality
Security (OWASP Top 10)
Maintainability
Performance
Context-Efficient Reading
Prefer lightweight tools first, then read in detail where needed:
code_outline -- Collapsed skeleton with signatures and line ranges. Great first step for unfamiliar files.
code_symbols -- Quick symbol list when you only need names and kinds.
code_search / code_references -- Find symbol definitions or callers across the codebase.
Read with offset/limit -- Read specific functions using line numbers from the outline.
- Grep -- Find patterns in code content (loops, queries, string literals) that the index doesn't cover.
For reviews spanning many files, consider using Task sub-agents (explore type) which run in their
own context and return summaries.
Review Process
- Outline changed files - Use
code_outline on each changed file to understand structure.
Identify areas of concern from signatures and line ranges.
- Read targeted sections - Use
Read with offset/limit to read only the specific
functions/sections that need detailed review (use line numbers from the outline).
- Search for context - Use
code_search, code_references, and Grep:
code_search — Find related function/class/type definitions by name
code_references — Find all callers/usages of a modified symbol (exact name match)
- Grep — Find code patterns in bodies (error handling, SQL queries, security-sensitive calls)
- Check integration - How does it fit the larger system?
- Run static analysis - Use lsp_diagnostics, ast_grep if available
- Document findings - Use severity levels
MCP Tools
Use these tools during review:
mcp__plugin_aide_aide__code_outline - Start here. Get collapsed file skeleton with signatures and line ranges
mcp__plugin_aide_aide__code_search - Find symbols related to changes (e.g., code_search query="getUserById")
mcp__plugin_aide_aide__code_symbols - List all symbols in a file being reviewed
mcp__plugin_aide_aide__code_references - Find all callers/usages of a modified symbol
mcp__plugin_aide_aide__memory_search - Check for related past decisions or issues
mcp__plugin_aide_aide__findings_search - Search static analysis findings (complexity, secrets, clones) related to changed code
mcp__plugin_aide_aide__findings_list - List findings filtered by file, severity, or analyzer
mcp__plugin_aide_aide__findings_stats - Overview of finding counts by analyzer and severity
Output Format
## Code Review: [Feature/PR Name]
### Summary
[1-2 sentence overview]
### Findings
#### 🔴 Critical (must fix)
- **[Issue]** `file:line`
- Problem: [description]
- Fix: [recommendation]
#### 🟡 Warning (should fix)
- **[Issue]** `file:line`
- Problem: [description]
- Fix: [recommendation]
#### 🔵 Suggestion (consider)
- **[Issue]** `file:line`
- Suggestion: [recommendation]
### Security Notes
- [Any security-specific observations]
### Verdict
[ ] ✅ Approve
[ ] ⚠️ Approve with comments
[ ] ❌ Request changes
Severity Guide
| Level |
Criteria |
| Critical |
Security vulnerability, data loss risk, crash |
| Warning |
Bug potential, maintainability issue, performance |
| Suggestion |
Style, minor improvement, optional |
Failure Handling
If unable to complete review:
- Missing files - Report which files could not be read
- Ambiguous scope - Ask user to clarify what code to review
- Large changeset - Break into smaller chunks, review systematically
Reporting blockers:
## Review Status: Incomplete
### Blockers
- Could not access: `path/to/file.ts` (permission denied)
- Missing context: Need to understand `AuthService` implementation
### Partial Findings
[Include any findings from files that were reviewed]
Verification Criteria
A complete code review must:
- Outline all changed files - Use
code_outline on every file in scope
- Read critical sections - Use targeted
Read with offset/limit on flagged areas
- Check for related code - Use
code_search and code_references to find callers/callees
- Verify test coverage - Check if tests exist for critical paths
- Document all findings - Even if no issues found, state that explicitly
Checklist before submitting review:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: review-103description: Code review and security audit Use when this capability is needed.4---56# Code Review Mode78**Recommended model tier:** smart (opus) - this skill requires complex reasoning910Comprehensive code review covering quality, security, and maintainability.1112## Review Checklist1314### Code Quality1516- [ ] Clear naming (variables, functions, classes)17- [ ] Single responsibility (functions do one thing)18- [ ] DRY (no unnecessary duplication)19- [ ] Appropriate abstraction level20- [ ] Error handling coverage21- [ ] Edge cases considered2223### Security (OWASP Top 10)2425- [ ] Input validation (no injection vulnerabilities)26- [ ] Authentication checks (routes protected)27- [ ] Authorization (proper access control)28- [ ] Sensitive data handling (no secrets in code)29- [ ] SQL/NoSQL injection prevention30- [ ] XSS prevention (output encoding)31- [ ] CSRF protection32- [ ] Secure dependencies (no known vulnerabilities)3334### Maintainability3536- [ ] Code is readable without comments37- [ ] Comments explain "why" not "what"38- [ ] Consistent with codebase patterns39- [ ] Tests cover critical paths40- [ ] No dead code4142### Performance4344- [ ] No N+1 queries45- [ ] Appropriate caching46- [ ] No memory leaks47- [ ] Efficient algorithms4849## Context-Efficient Reading5051Prefer lightweight tools first, then read in detail where needed:5253- **`code_outline`** -- Collapsed skeleton with signatures and line ranges. Great first step for unfamiliar files.54- **`code_symbols`** -- Quick symbol list when you only need names and kinds.55- **`code_search`** / **`code_references`** -- Find symbol definitions or callers across the codebase.56- **`Read` with offset/limit** -- Read specific functions using line numbers from the outline.57- **Grep** -- Find patterns in code content (loops, queries, string literals) that the index doesn't cover.5859For reviews spanning many files, consider using **Task sub-agents** (`explore` type) which run in their60own context and return summaries.6162## Review Process63641. **Outline changed files** - Use `code_outline` on each changed file to understand structure.65 Identify areas of concern from signatures and line ranges.662. **Read targeted sections** - Use `Read` with `offset`/`limit` to read only the specific67 functions/sections that need detailed review (use line numbers from the outline).683. **Search for context** - Use `code_search`, `code_references`, and **Grep**:69 - `code_search` — Find related function/class/type _definitions_ by name70 - `code_references` — Find all callers/usages of a modified symbol (exact name match)71 - **Grep** — Find code _patterns_ in bodies (error handling, SQL queries, security-sensitive calls)724. **Check integration** - How does it fit the larger system?735. **Run static analysis** - Use lsp_diagnostics, ast_grep if available746. **Document findings** - Use severity levels7576## MCP Tools7778Use these tools during review:7980- `mcp__plugin_aide_aide__code_outline` - **Start here.** Get collapsed file skeleton with signatures and line ranges81- `mcp__plugin_aide_aide__code_search` - Find symbols related to changes (e.g., `code_search query="getUserById"`)82- `mcp__plugin_aide_aide__code_symbols` - List all symbols in a file being reviewed83- `mcp__plugin_aide_aide__code_references` - Find all callers/usages of a modified symbol84- `mcp__plugin_aide_aide__memory_search` - Check for related past decisions or issues85- `mcp__plugin_aide_aide__findings_search` - Search static analysis findings (complexity, secrets, clones) related to changed code86- `mcp__plugin_aide_aide__findings_list` - List findings filtered by file, severity, or analyzer87- `mcp__plugin_aide_aide__findings_stats` - Overview of finding counts by analyzer and severity8889## Output Format9091```markdown92## Code Review: [Feature/PR Name]9394### Summary9596[1-2 sentence overview]9798### Findings99100#### 🔴 Critical (must fix)101102- **[Issue]** `file:line`103 - Problem: [description]104 - Fix: [recommendation]105106#### 🟡 Warning (should fix)107108- **[Issue]** `file:line`109 - Problem: [description]110 - Fix: [recommendation]111112#### 🔵 Suggestion (consider)113114- **[Issue]** `file:line`115 - Suggestion: [recommendation]116117### Security Notes118119- [Any security-specific observations]120121### Verdict122123[ ] ✅ Approve124[ ] ⚠️ Approve with comments125[ ] ❌ Request changes126```127128## Severity Guide129130| Level | Criteria |131| ---------- | ------------------------------------------------- |132| Critical | Security vulnerability, data loss risk, crash |133| Warning | Bug potential, maintainability issue, performance |134| Suggestion | Style, minor improvement, optional |135136## Failure Handling137138### If unable to complete review:1391401. **Missing files** - Report which files could not be read1412. **Ambiguous scope** - Ask user to clarify what code to review1423. **Large changeset** - Break into smaller chunks, review systematically143144### Reporting blockers:145146```markdown147## Review Status: Incomplete148149### Blockers150151- Could not access: `path/to/file.ts` (permission denied)152- Missing context: Need to understand `AuthService` implementation153154### Partial Findings155156[Include any findings from files that were reviewed]157```158159## Verification Criteria160161A complete code review must:1621631. **Outline all changed files** - Use `code_outline` on every file in scope1642. **Read critical sections** - Use targeted `Read` with offset/limit on flagged areas1653. **Check for related code** - Use `code_search` and `code_references` to find callers/callees1664. **Verify test coverage** - Check if tests exist for critical paths1675. **Document all findings** - Even if no issues found, state that explicitly168169### Checklist before submitting review:170171- [ ] All files in diff/scope have been outlined172- [ ] Critical functions/sections read in detail (with offset/limit)173- [ ] Related symbols searched (callers, implementations)174- [ ] Security checklist evaluated175- [ ] Findings documented with file:line references176- [ ] Verdict provided with clear reasoning177178---179> Converted and distributed by [TomeVault](https://tomevault.io/claim/jmylchreest) — claim your Tome and manage your conversions.180<!-- tomevault:4.0:skill_md:2026-04-13 -->