Deep comprehensive code review with full context analysis
Performs comprehensive multi-agent code review with architecture analysis and impact assessment.
/plugin marketplace add turingmindai/turingmind-code-review/plugin install turingmindai-turingmind-code-review-plugins-turingmind@turingmindai/turingmind-code-reviewComprehensive code review with full context analysis. Includes architecture review, test coverage, and impact analysis.
Agent 1A - Change Summary:
1. Run `git status`, `git diff`, `git diff --staged`
2. If no changes → inform user and stop
3. Extract:
- Files changed (list)
- Languages detected (from extensions)
- Line counts (additions/deletions)
Agent 1B - Project Context:
1. Find CLAUDE.md (root + directories with changes)
2. Read dependency files:
- package.json / requirements.txt / go.mod / Cargo.toml
3. Identify project type and framework
Agent 1C - Related Files:
For each modified file, find:
- Files that import the modified file
- Files that the modified file imports
- Test files (foo.ts → foo.test.ts)
Only load agents relevant to detected context:
| Condition | Load Agent |
|---|---|
| Always | @agents/bugs.md |
| Always | @agents/security.md |
| Always (deep) | @agents/architecture.md |
| CLAUDE.md exists | @agents/compliance.md |
.ts/.tsx/.js/.jsx files | @agents/language-typescript.md |
.py files | @agents/language-python.md |
See @agents/index.md for full routing logic.
Launch loaded agents in parallel. Each agent:
Core Agents (always):
@agents/bugs.md - Logic errors, null access, race conditions@agents/security.md - OWASP Top 10, injection, XSS, secrets@agents/architecture.md - Patterns, coupling, dependenciesConditional Agents:
@agents/compliance.md - If CLAUDE.md exists@agents/language-typescript.md - If TS/JS files@agents/language-python.md - If Python filesAdditional Deep Analysis:
Using Phase 1C results, analyze:
For each issue, score confidence 0-100:
| Factor | Points |
|---|---|
| In the diff (new code) | +20 |
| Would cause failure | +30 |
| In CLAUDE.md rules | +20 |
| Senior engineer would flag | +20 |
| Has ignore comment | -50 |
Apply filters from @templates/false-positive-rules.md:
Format output using @templates/output-format.md:
## Deep Code Review
**Summary:** Reviewed X files, Y lines changed
| Found | Reported | Filtered |
|-------|----------|----------|
| total | ≥70 score | <70 score |
### Critical (95-100) 🔴
[Issues with diff-style fixes]
### Warning (80-94) 🟠
[Issues with diff-style fixes]
### Medium (70-79) 🟡
[Issues with diff-style fixes]
### Filtered Issues 🔇
[Count by reason, expandable details]
### Architectural Notes 📐
- Pattern consistency: ✅/⚠️/❌
- Test coverage: ✅/⚠️/❌
- Documentation: ✅/⚠️/❌
- Dependencies: ✅/⚠️/❌
### Impact Analysis 💥
- Affected files: [list]
- Blast radius: [scope]
- Breaking changes: [yes/no]
| Aspect | Quick Review | Deep Review |
|---|---|---|
| Threshold | ≥80 | ≥70 |
| Architecture | ❌ | ✅ |
| Impact Analysis | ❌ | ✅ |
| Test Coverage | ❌ | ✅ |
| Related Files | ❌ | ✅ |
| Medium Priority | ❌ | ✅ |