Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

parallel-code-review并行代码审查

Agent Skill

parallel-code-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

441

周安装

18

GitHub Stars

50

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:parallel-code-review(并行代码审查)
来源仓库:https://github.com/dgalarza/claude-code-workflows
仓库路径:skills/parallel-code-review
安装命令:
npx skills add https://github.com/dgalarza/claude-code-workflows --skill parallel-code-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/dgalarza/claude-code-workflows --skill parallel-code-review

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于并行代码审查,提供多个专业视角同时进行,加快审查速度并防止冗余。
  • 通过 github 安装,结合来源仓库和原始 README 核验具体用法,支持综合报告生成。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 当前主要用于研究检索类任务,需配合具体代码库使用。

SKILL.md

Parallel Code Review

This skill provides guidance for launching multiple specialized code review agents in parallel for comprehensive, efficient analysis from different perspectives.

Purpose

Parallel code reviews maximize efficiency and coverage by running multiple specialized reviewers simultaneously. Instead of sequential reviews that take time proportional to the number of reviewers, parallel execution completes in the time of the slowest reviewer while providing comprehensive feedback from all perspectives.

When to Use This Skill

Use this skill when:

  • Performing comprehensive code review before merging
  • Need multiple specialized perspectives (security, architecture, performance)
  • Want faster review by parallelizing analysis
  • Reviewing large changesets that benefit from division of labor
  • Implementing continuous review practices

Benefits of Parallel Reviews

Speed: 2+ specialized reviews complete in the time of 1 Depth: Each agent focuses on specific expertise area Comprehensive Coverage: Security + Architecture + Performance simultaneously

Core Workflow

Phase 1: Prepare for Review

1. Check Decision Log (Prevent Redundancy)

# Search memory for previous code review decisions
mcp__memory__search_nodes query:"code_review_decision"

# Read decision log file
cat code_review_decisions.md

Decision log format:

# Code Review Decisions

## 2025-01-15: Result Pattern Required

**Decision**: All service objects must return Result objects
**Rationale**: Explicit success/failure handling improves error management
**Status**: Accepted standard pattern

2. Get Code Changes

# Get diff for review
git diff main...HEAD

# Or specific branch
git diff main...feature-branch

Phase 2: Launch Parallel Reviewers

Use Task tool to launch multiple agents concurrently:

Example: Launch 2 reviewers in parallel by sending a SINGLE message with MULTIPLE Task tool calls:

Task({
  subagent_type: "cybersecurity-expert",
  description: "Security review of changes",
  prompt: "Review git diff for security vulnerabilities..."
})

Task({
  subagent_type: "rails-backend-expert",
  description: "Architecture review of changes",
  prompt: "Review git diff for code quality..."
})

Key principle: One message with multiple tool calls = true parallelism

Phase 3: Define Review Specializations

Security Review Agent

Focus areas:

  • Authentication and authorization vulnerabilities
  • Input validation and injection attacks
  • Sensitive data exposure
  • Cryptographic weaknesses
  • Access control flaws
  • Rate limiting and DoS prevention

Architecture/Best Practices Review Agent

Focus areas:

  • Design patterns (SOLID, DRY, KISS)
  • Framework conventions
  • Code organization
  • Dependency management
  • Error handling patterns
  • Test quality

Performance Review Agent (Optional)

Focus areas:

  • Database query optimization (N+1, missing indexes)
  • Memory usage patterns
  • Algorithmic complexity
  • Caching opportunities

Phase 4: Consolidate Findings

1. Collect agent outputs

Wait for all parallel agents to complete.

2. Merge and deduplicate

If multiple agents flag the same issue, consolidate into single item and credit all reviewers.

3. Organize by severity

Priority hierarchy:

  • Critical: Security vulnerabilities, data loss risks
  • High: Major code smells, performance issues
  • Medium: Minor refactoring opportunities
  • Low: Suggestions, nice-to-haves

4. Create consolidated report

# Code Review - PR #123

## Executive Summary
Reviewed 15 files with 342 lines changed. Found 2 critical issues, 5 high priority items.

## Critical Issues (Immediate Action Required)

### 1. SQL Injection Vulnerability
- **File**: app/services/search_service.rb:23
- **Reviewers**: Security, Architecture
- **Action**: Use parameterized queries immediately

## High Priority
[...]

## Positive Observations
- Good test coverage
- Clear naming conventions

## Recommended Action Plan
1. **Before merge**: Fix critical SQL injection (15 min)
2. **This sprint**: Address high priority refactoring (2 hours)

Phase 5: Decision Tracking

Update decision log for new patterns:

## 2025-01-20: Parameterized Queries Required

**Decision**: All database queries must use parameterized queries
**Rationale**: Prevent SQL injection vulnerabilities
**Status**: Enforced
**Reference**: Security review PR #123

Add to memory system:

mcp__memory__create_entities({
  entities: [{
    name: "Parameterized Queries Required",
    entityType: "code_review_decision",
    observations: [
      "All database queries must use parameterized queries",
      "Decided during PR #123 security review"
    ]
  }]
})

Review Configurations

Two-Agent Review (Common)

Agent 1: Security Focus
Agent 2: Architecture/Quality Focus

Best for: Most code reviews, balanced coverage

Three-Agent Review (Comprehensive)

Agent 1: Security
Agent 2: Architecture
Agent 3: Performance

Best for: Large features, production-critical code

Four-Agent Review (Full Coverage)

Agent 1: Security
Agent 2: Architecture
Agent 3: Performance
Agent 4: Testing/Documentation

Best for: Major releases, API changes

Framework Adaptations

Ruby on Rails

Specialized Agents:

  • Security: Rails-specific vulnerabilities (mass assignment, CSRF)
  • Architecture: Rails conventions, service objects, Result pattern
  • Performance: ActiveRecord optimization, caching

Python/Django

Specialized Agents:

  • Security: Django security middleware, SQL injection, XSS
  • Architecture: Django patterns, class-based views
  • Performance: ORM query optimization

JavaScript/Node.js

Specialized Agents:

  • Security: npm vulnerabilities, prototype pollution
  • Architecture: Module patterns, async/await
  • Performance: Event loop blocking, memory leaks

Best Practices

Preventing Review Fatigue

Decision tracking prevents:

  • Repeated suggestions for accepted patterns
  • Debates over settled conventions
  • Wasted time on known trade-offs

Effective Agent Prompts

Good prompt structure:

[Role]: You are a [security/architecture] expert
[Context]: Reviewing code diff for [feature]
[Scope]: Focus on: [specific areas]
[Constraints]: Respect decisions in code_review_decisions.md
[Output]: Return findings with file:line, severity, recommendations

Consolidation Strategy

Remove duplicates: Consolidate identical findings from multiple agents Prioritize by impact: Security > user-facing bugs > refactoring Balance feedback: Include positive observations

Summary

Parallel code review maximizes efficiency and coverage:

  • ✅ Multiple specialized perspectives simultaneously
  • ✅ Faster review through parallelization
  • ✅ Decision tracking prevents redundancy
  • ✅ Consolidated reporting for actionable feedback
  • ✅ Adaptable to any language or framework

Key workflow: Check decision log → Launch parallel agents → Consolidate findings → Report with priorities → Update decision log

The goal is comprehensive coverage with minimal redundancy. Let each agent focus on their specialty, then synthesize insights into actionable, prioritized feedback.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.32%
按下载量换算37

OpenCode

25.31%
按下载量换算36

Antigravity

17.09%
按下载量换算24

Gemini CLI

13.24%
按下载量换算19

windsurf

7.33%
按下载量换算10

Cursor

3.51%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills