skills/agentic-review/SKILL.md
Deep multi-agent code review for local changes. Inspired by AmpCode's agentic review. Use when you want comprehensive analysis of staged changes, unstaged changes, specific commits, or branch differences. Spawns parallel specialized agents (security, performance, patterns, architecture) and synthesizes actionable findings with priority levels. Can implement fixes directly.
npx skillsauth add szoloth/skills agentic-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.
Deep, multi-agent code review for personal repos. Analyzes changes, prioritizes files, spawns specialized review agents in parallel, and synthesizes actionable findings.
# Review all local changes (staged + unstaged)
skill agentic-review
# Review only staged changes
skill agentic-review --staged
# Review specific commit(s)
skill agentic-review abc123
skill agentic-review abc123..def456
# Review branch diff against main
skill agentic-review --branch feature-branch
skill agentic-review --branch HEAD # current branch vs main
First, determine what to review based on arguments:
# Check if we're in a git repo
git rev-parse --is-inside-work-tree 2>/dev/null || echo "NOT_GIT_REPO"
# Get current branch
git branch --show-current
# Check for changes
git status --porcelain # Any local changes?
git diff --stat # Unstaged changes stats
git diff --cached --stat # Staged changes stats
Determine review scope from $ARGUMENTS:
| Argument | What to Review |
|----------|----------------|
| (empty) | All local changes (staged + unstaged) |
| --staged | Only staged changes |
| abc123 | Specific commit |
| abc123..def456 | Commit range |
| --branch NAME | Branch diff vs main/master |
| --branch HEAD | Current branch vs main/master |
Analyze changed files to recommend review order:
# Get changed files with stats
git diff --numstat HEAD~1 2>/dev/null || git diff --numstat
# For each file, assess:
# - Lines changed (more = higher priority)
# - File type (src > test > config > docs)
# - Risk areas (auth, security, data, API)
Prioritization Heuristics:
Output file review order before proceeding.
Detect languages from file extensions:
# Get unique file extensions from changes
git diff --name-only | sed 's/.*\.//' | sort -u
Agent Selection Matrix:
| Language | Agents to Spawn | |----------|-----------------| | TypeScript/JavaScript | kieran-typescript-reviewer, security-sentinel, performance-oracle | | Python | kieran-python-reviewer, security-sentinel, performance-oracle | | Ruby/Rails | kieran-rails-reviewer, dhh-rails-reviewer, security-sentinel | | Any | pattern-recognition-specialist, architecture-strategist, code-simplicity-reviewer |
Always include:
CRITICAL: Launch agents in parallel using Task tool
Spawn 4-6 agents simultaneously, each with:
Task security-sentinel("Review this diff for security issues: [diff]")
Task performance-oracle("Review for performance problems: [diff]")
Task pattern-recognition-specialist("Check for anti-patterns: [diff]")
Task code-simplicity-reviewer("Check for over-engineering: [diff]")
Task [language-specific]("Review for [language] best practices: [diff]")
Each agent returns findings in this format:
## Findings
### [SEVERITY] Issue Title
- **File**: path/to/file.ts:42
- **Issue**: Description of the problem
- **Impact**: Why this matters
- **Fix**: Suggested remediation
Combine all agent findings and deduplicate:
Priority Levels:
Deduplication Rules:
Output structured summary:
══════════════════════════════════════════════════════════════
AGENTIC CODE REVIEW
══════════════════════════════════════════════════════════════
📊 SUMMARY
────────────────────────────────────────────────────────────────
Files reviewed: 8
Total findings: 12
🔴 P1 Critical: 2 (MUST FIX)
🟡 P2 Important: 5
🔵 P3 Suggested: 5
Agents used: security-sentinel, kieran-typescript-reviewer,
performance-oracle, pattern-recognition-specialist
📁 FILES BY PRIORITY
────────────────────────────────────────────────────────────────
1. src/auth/login.ts [🔴 P1] Security issue
2. src/api/users.ts [🟡 P2] Performance concern
3. src/utils/helpers.ts [🔵 P3] Code smell
...
🔴 P1 - CRITICAL (Must fix before commit)
────────────────────────────────────────────────────────────────
1. SQL Injection Risk
📍 src/api/users.ts:47
⚠️ Raw SQL with string interpolation
💡 Use parameterized query instead
2. Hardcoded Secret
📍 src/config/auth.ts:12
⚠️ API key directly in source
💡 Move to environment variable
🟡 P2 - IMPORTANT (Should fix)
────────────────────────────────────────────────────────────────
[Similar format...]
🔵 P3 - SUGGESTED (Nice to have)
────────────────────────────────────────────────────────────────
[Similar format...]
══════════════════════════════════════════════════════════════
After presenting findings, offer options:
NEXT STEPS
────────────────────────────────────────────────────────────────
1. Fix all P1 issues automatically
2. Fix all P1 + P2 issues automatically
3. Fix specific issue by number
4. Show detailed analysis for an issue
5. Exit (I'll fix manually)
Choice [1-5]:
If user chooses to fix:
Default Agents (always run):
Language-Specific Agents (auto-detected):
Optional Agents (if relevant files detected):
> skill agentic-review --staged
Analyzing staged changes...
Files: 3 changed (src/api/users.ts, src/models/User.ts, tests/users.test.ts)
Lines: +45, -12
Spawning review agents in parallel...
✓ security-sentinel
✓ kieran-typescript-reviewer
✓ performance-oracle
✓ pattern-recognition-specialist
Results:
🔴 P1: 0
🟡 P2: 1 (missing input validation)
🔵 P3: 2 (minor suggestions)
Ready to commit! One P2 to consider:
→ src/api/users.ts:34 - Add validation for email parameter
Fix now? [y/N]
> skill agentic-review --branch feature/auth-refactor
Comparing feature/auth-refactor to main...
Files: 12 changed
Lines: +342, -156
[Full analysis with all agents...]
Review complete. See findings above.
Would you like to fix any issues before creating PR?
content-media
Fetch transcripts from YouTube videos for summarization and analysis.
documentation
This skill should be used when reviewing or editing written drafts to ensure they match Sam's personal style guide. It prioritizes voice preservation and anti-beige detection while catching structural gaps. Triggers on requests to review, edit, or improve written content.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
development
Web search and content extraction using Brave Search. Use when researching topics, finding documentation, extracting article content, or gathering information from the web. No browser required - works headlessly.