From core
Run a local multi-agent code review before pushing or creating a PR. Use this skill whenever the user says 'code-review', 'pre-review', 'review my changes', 'review before push', 'check my branch', 'local review', 'pre-PR review', or wants feedback on their current branch changes before submitting a pull request. Also use when the user asks to 'review the diff', 'check for issues before PR', or mentions wanting to catch review feedback early. This skill spawns multiple specialized review agents in parallel to give comprehensive feedback fast.
How this skill is triggered — by the user, by Claude, or both
Slash command
/core:code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a comprehensive code review locally before pushing, catching the same kinds of issues that would surface in PR review - but without the round-trip.
Run a comprehensive code review locally before pushing, catching the same kinds of issues that would surface in PR review - but without the round-trip.
Parallel independent agents, confidence-based filtering, and a validation pass to eliminate false positives.
Follow these steps precisely. Create a todo list before starting.
Run these in parallel:
git fetch origin
git diff origin/main...HEAD
git diff --name-only origin/main...HEAD
git diff HEAD # uncommitted changes
Also read the project's CLAUDE.md (root and any CLAUDE.md files in directories containing changed files).
If there are no changes relative to origin/main AND no uncommitted changes, tell the user and stop.
If the diff is very large (50+ files), mention this and ask whether to scope to specific directories.
Check if the project has a docs/specs/ directory. If so, match changed file paths to relevant spec files (e.g. changes to src/app/events/ likely relate to an events spec). Read any matching specs for the architecture reviewer.
Also check for recent plan files that may have iterated on the spec during implementation. Plans often document intentional deviations from the original spec (renamed fields, adjusted behavior, deferred features). Look for:
.claude/plans/ or similar plan directoriesPLAN.md or plan-*.md files in the project root or docsIf a plan documents an intentional spec deviation, pass that context to the architecture reviewer so it doesn't flag decisions that were already made deliberately.
Best-effort - skip if no specs or plans exist or none match.
Launch all six agents in parallel using the Agent tool with model: sonnet. Each agent receives:
The six review agents are registered at the plugin level:
review-code-quality - CLAUDE.md compliance, patterns, conventions, DRY, clarity, redundant state, parameter sprawl, leaky abstractions, stringly-typed codereview-testing - Test coverage gaps, test quality, missing edge casesreview-security - Injection, validation, auth, data exposurereview-architecture - Project patterns, spec alignment, schema consistency (include spec content if found in step 2)review-reuse - Searches codebase for existing utilities, helpers, and patterns that could replace newly written codereview-efficiency - Unnecessary work, missed concurrency, hot-path bloat, N+1 patterns, memory issuesEach agent has tools: Read, Grep, Glob, Bash (for git commands only). They can and should inspect actual source files for context beyond the diff.
Each agent returns a structured list of issues. An issue has:
file: file pathline: line number (approximate is fine)severity: "critical" | "important" | "suggestion"confidence: 0-100description: what's wrongfix: concrete suggestionsource: which agent found itAgents only return issues with confidence >= 80.
This step is critical for reducing false positives.
For each issue returned by the review agents, spawn a validation agent (sonnet for CLAUDE.md/style issues, opus for bugs/logic). The validator receives:
The validator's job: confirm or reject the issue. An issue is rejected if:
To keep this fast, batch validation: if there are <= 6 issues, validate them all in parallel. If more than 6, group related issues (same file or same type) and validate each group together.
Drop any issue the validator rejects.
Output the final report to the terminal:
## Code Review Results
**Summary:** X critical, Y important, Z suggestions across N files
**Verdict:** [READY / ALMOST / NOT YET]
### Critical
- **src/db/schema.ts:42** [architecture] Missing NOT NULL constraint on user_id
Fix: Add `.notNull()` to the column definition
### Important
- **src/app/api/route.ts:15** [security] Unvalidated user input passed to query
Fix: Add Zod validation before using `params.id`
### Suggestions
- **src/components/Card.tsx:88** [code-quality] Duplicated padding logic (also in Header.tsx:12)
Fix: Extract to a shared utility or Tailwind @apply
### What looked good
- Test coverage for the new event handlers
- Clean separation of server actions from UI components
Verdict logic:
If no issues survived validation: "No issues found. Checked for bugs, CLAUDE.md compliance, testing, security, architecture, code reuse, and efficiency."
npx claudepluginhub adawalli/claude-plugins --plugin corePerforms multi-agent code review of current git branch against main: detects bugs via specialist agents, verifies findings, ranks severity, generates persistent report before push/merge.
Automates code reviews on git diffs, staged changes, PRs, files, or branches against CLAUDE.md conventions and prioritized best practices (security first).
Orchestrates parallel multi-agent code reviews with ≥80% confidence filtering for quality, security, and auto-detected discipline-specific issues via git diffs.