parallel-code-review — Claude Code skill: what it does, how to install
Runs four parallel read-only subagents to inspect a diff across security, speed, correctness, and readability. Built for vetting large or risky pull requests.
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a claude-codeWhat parallel-code-review does
The skill divides diff review across four isolated subagents running with subagent_type: "explore" and readonly: true. Each subagent inspects changes through one specific lens: security vulnerabilities, performance bottlenecks, logical correctness, or maintainability. The main agent then deduplicates findings and orders them by severity and fix effort.
The read-only restriction prevents file access conflicts between subagents during analysis. For oversized pull requests, the skill advises splitting the diff by directory and running four reviewers per folder in waves. While this automation catches injection risks and off-by-one errors early, it does not replace formal compliance or security sign-offs.
What it helps with
- identify security flaws like SQL injection, exposed secrets, and authorization bugs
- catch performance issues such as N+1 queries and expensive loops
- spot logic errors, race conditions, and edge cases before merging
- synthesize multi-agent findings into a single prioritized action list
Example prompts for the agent
- Run a parallel code review on origin/main...HEAD across four subagents
- Review this PR diff with parallel-code-review focusing on security and performance
- Split this large diff by directory and run four review agents on each folder
How to install parallel-code-review
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a claude-code2Manually: put the files in place
~/.claude/skills/parallel-code-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/parallel-code-review/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a codex2Manually: put the files in place
.agents/skills/parallel-code-review/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a cursor2Manually: put the files in place
.cursor/skills/parallel-code-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spencerpauly/awesome-cursor-skills parallel-code-review2Manually: put the files in place
.github/skills/parallel-code-review/SKILL.md1Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a gemini-cli2Platform CLI
gemini skills install https://github.com/spencerpauly/awesome-cursor-skills --path resources/parallel-code-reviewManually: put the files in place
.devin/skills/parallel-code-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about parallel-code-review
How to install parallel-code-review in Claude Code?
Run npx skills add spencerpauly/awesome-cursor-skills --skill parallel-code-review -a claude-code in your terminal.
Why do the subagents run in read-only mode?
The readonly: true flag prevents parallel workers from clashing over file edits. Subagents only analyze code and surface findings, leaving actual fixes to subsequent targeted tasks.
How does the skill handle huge pull requests?
Avoid feeding an oversized diff in a single prompt. Split the file list by folder and run sets of four reviewers per directory in sequential waves.
Source text
SKILL.md · CC0-1.0
--- name: parallel-code-review description: Run four parallel read-only subagents that each review the same diff from a different lens — security, performance, correctness, and readability — then merge findings into one report. Use before merging large or risky PRs. user-invocable: true --- # Parallel Code Review Use Cursor’s **Task** tool to run **four** `explore` (read-only) subagents at once. Each subagent only reads code and produces findings for one dimension. The main agent merges results into a single prioritized review — something only a multi-agent setup does efficiently. ## When to use - Large diffs or refactors where a single pass misses categories. - Security-sensitive changes (auth, payments, parsing untrusted input). - Performance-sensitive paths (hot loops, N+1 queries, bundle entry points). ## Workflow ### 1. Scope the change set Prefer a concrete list of files for reviewers: ```bash git diff --name-only origin/main...HEAD ``` Or paste the PR link and let the main agent list changed files from the branch. ### 2. Launch four parallel subagents Send **one message** with **four** Task invocations, each `subagent_type: "explore"` and **readonly: true**, with prompts like: **Security** ``` Read-only review: SECURITY Changed files: <list> Focus: injection (SQL, shell, XSS), authZ/authN gaps, secrets in code, unsafe deserialization, path traversal, SSRF, IDOR, dependency CVEs mentioned in diff. Output: - Critical / High / Medium / Low findings - File:line and short fix recommendation - "No issues" if nothing material ``` **Performance** ``` Read-only review: PERFORMANCE Changed files: <list> Focus: N+1 queries, missing indexes, accidental O(n²) loops, bundle size impact, unnecessary re-renders, sync I/O on hot paths, unbounded caches. Output: same severity + location format as above. ``` **Correctness** ``` Read-only review: CORRECTNESS Changed files: <list> Focus: logic bugs, off-by-one, wrong edge cases, race conditions, error handling gaps, breaking API changes, test gaps for new behavior. Output: same format. ``` **Readability / maintainability** ``` Read-only review: READABILITY Changed files: <list> Focus: naming, duplication, abstraction boundaries, file size, unclear control flow, missing types/docs where they would prevent bugs. Output: same format; prefer suggestions over nitpicks. ``` ### 3. Synthesize The main agent should: 1. De-duplicate findings that appear in multiple dimensions (count once, worst severity). 2. Order by severity, then by fix cost. 3. Produce a short executive summary (5 bullets max) and a table or list of actionable items. ### 4. Optional — address findings Fix in the main agent or spawn targeted **non-readonly** follow-up tasks only for approved items. ## Notes - Keep prompts **read-only** so parallel runs never fight over writes. - If the diff is huge, split by directory and run four reviewers **per directory** in a second wave — do not cram unrelated megadiffs into one pass. - This complements human review; it does not replace compliance or security sign-off for regulated environments.
© spencerpauly · CC0-1.0 · spencerpauly/awesome-cursor-skills