Review local code changes with parallel specialized reviewers and validation.
Reviews local code changes with parallel specialized reviewers and validation.
/plugin marketplace add pknull/asha-marketplace/plugin install local-review@asha-marketplaceReview local code changes with parallel specialized reviewers and validation.
/local-review # Review staged changes (git diff --cached)
/local-review <path> # Review specific file(s)
/local-review --all # Review all uncommitted changes (git diff)
Based on input:
git diff --cached (staged changes only)git diff (all uncommitted changes)If no changes found, report and exit.
Launch 4 Task agents in parallel (single message, multiple tool calls), each with a specialized focus:
Review this code for security issues:
- Injection vulnerabilities (SQL, command, XSS)
- Authentication/authorization flaws
- Hardcoded secrets or credentials
- Unsafe deserialization
- Path traversal risks
Code to review:
{diff_content}
List findings with file:line references. If none found, state "No security issues identified."
Review this code for logic errors:
- Incorrect algorithms or calculations
- Wrong conditionals or comparisons
- Off-by-one errors
- Incorrect state management
- Broken control flow
Code to review:
{diff_content}
List findings with file:line references. If none found, state "No logic issues identified."
Review this code for edge case handling:
- Null/undefined/empty inputs
- Boundary conditions (0, -1, MAX_INT)
- Empty collections or strings
- Race conditions or concurrency issues
- Error paths and exception handling
Code to review:
{diff_content}
List findings with file:line references. If none found, state "No edge case issues identified."
Review this code for style and maintainability:
- Unclear naming or confusing logic
- Code duplication
- Overly complex functions (consider splitting)
- Missing or misleading comments
- Inconsistent patterns with surrounding code
Code to review:
{diff_content}
List findings with file:line references. If none found, state "No style issues identified."
After all reviewers complete, validate each finding:
For each issue found, verify:
Remove findings that fail validation. Note any that were filtered.
Output format:
## Local Review Results
**Scope**: {what was reviewed}
**Files**: {count} | **Lines**: {count}
### Security
{findings or "No issues"}
### Logic
{findings or "No issues"}
### Edge Cases
{findings or "No issues"}
### Style
{findings or "No issues"}
---
**Validation**: {N} findings filtered as false positives