| name | review |
| description | Comprehensive multi-agent code review with parallel specialist analysis, confidence filtering, and structured verdicts. Produces APPROVE, NEEDS WORK, or BLOCK. |
Code Review Mode (Deep Review)
Agent Delegation
This skill spawns multiple specialist agents in parallel for thorough review.
Language-Specific Reviewers (spawned based on detected languages)
| Language | Agent | Focus |
|---|
| Python | python-reviewer | Type safety, security, idiomatic patterns |
| Go | golang-reviewer | Error handling, concurrency, interfaces |
| Bash | bash-reviewer | Quoting, POSIX compliance, security |
| Nix | nix-reviewer | Reproducibility, flake hygiene, modules |
| Lua | lua-reviewer | Neovim quality, metatables, performance |
| Rust | rust-reviewer | Ownership, unsafe audit, error handling |
| TypeScript | typescript-reviewer | Type safety, async correctness, security |
Always-On Reviewers (spawned for every review)
| Agent | Focus |
|---|
| security-engineer | OWASP Top 10, vulnerability analysis |
| perf-reviewer | Algorithmic complexity, resource leaks |
When to Use
- When reviewing pull requests or merge requests
- Before merging feature branches into main/trunk
- When asked to review specific files or changes
- For post-implementation quality checks
Workflow
Phase 1: Context Gathering
- Identify scope: Determine files/commits to review via
git diff
- Understand the change: Review commit messages and PR description
- Detect languages: Identify which languages are present in the diff
- Map dependencies: Check what depends on changed files
Phase 2: Parallel Specialist Review
- Detect languages in the diff (file extensions, shebang lines)
- Spawn language-specific reviewer agents in parallel for each detected language
- Always spawn:
security-engineer + perf-reviewer
- Each agent produces structured findings with:
- File path and line range
- Severity (Critical/High/Medium/Low)
- Confidence score (0-100)
- Description of the issue
- Concrete fix suggestion
Phase 3: Synthesis
- Collect all agent findings
- Deduplicate: Merge findings referencing the same code location
- Filter: Only include findings with confidence >= 80
- Sort by severity (Critical > High > Medium > Low)
- Determine verdict:
- APPROVE — No critical/high issues, code is ready to merge
- NEEDS WORK — Has issues that must be addressed before merge
- BLOCK — Critical issues, security vulnerabilities, or fundamental design problems
Phase 4: Output
Produce structured review and save to Obsidian.
Path Logic:
- Identify Project Name: Use
BEADS_PROJECT_NAME env var or current directory name
- Identify Review Target: PR number (e.g.,
PR-123) or branch name
- Construct Path:
working/<project-name>/reviews/<review-target>-review.md
Review Dimensions
Correctness
Security
Performance
Reliability
Maintainability
Testing
Escalation Criteria
Flag for additional human review when:
| Concern | Escalation Trigger |
|---|
| Security | Any auth changes, crypto usage, user data handling |
| Reliability | Changes to error handling, retry logic, failure recovery |
| Performance | Changes to hot paths, database queries, algorithms at scale |
| Architecture | New patterns, significant structural changes |
| Testing | Reduced coverage, disabled tests, test infrastructure changes |
Constraints
- Review only what's in scope — don't expand to unrelated code
- Be specific — reference exact file:line for all findings
- Provide fixes, not just criticisms — every issue has a suggested resolution
- Calibrate severity — not everything is critical
- Acknowledge good work — positive feedback matters too
- Confidence filtering — only surface findings with >= 80 confidence
- OBSIDIAN ARTIFACTS: Save review to Obsidian using
obsidian_create_note