بنقرة واحدة
review
Comprehensive code review with multi-angle analysis using parallel agents
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Comprehensive code review with multi-angle analysis using parallel agents
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Coordinate specialized teammates in Agent Teams for execution, review, and planning. Delegate mode mandatory with TaskCompleted/TeammateIdle hooks.
Plan completion workflow - archive plan, verify todos, create git commit, push with retry. Use for finalizing completed plans.
Plan confirmation workflow - extract plan from conversation, create file, auto-review with Interactive Recovery. Use for confirming plans after /00_plan.
Plan execution workflow - parallel SC implementation, worktree mode, verification patterns, GPT delegation. Use for executing plans with TDD + Ralph Loop.
Use when blocked, stuck, or needing fresh perspective. Consults GPT experts via Codex CLI with graceful fallback.
Coordinate independent teammates concurrently in Agent Teams for 50-70% speedup. Launch multiple teammates simultaneously.
| name | review |
| description | Comprehensive code review with multi-angle analysis using parallel agents |
Purpose: Comprehensive plan review with gap detection, extended reviews, and GPT expert delegation Target: plan-reviewer Agent reviewing plans before execution
# Load plan → Detect type → Run reviews → Apply findings
/review .pilot/plan/pending/plan.md
In Scope: 8 mandatory reviews, extended reviews, gap detection, findings application
Out of Scope: Plan creation → spec-driven-workflow | Test execution → tdd | GPT delegation → @.claude/rules/delegator/orchestration.md
Core Philosophy: Comprehensive (multi-angle) | Actionable (findings map to sections) | Severity-based (BLOCKING → Interactive Recovery)
Delegate Mode: Team Lead operates in coordinate-only mode (Shift+Tab)
Pattern: Spawn review-team → Monitor reviewers → Aggregate findings → Update plan
Native Context Isolation: Agent Teams provides automatic context isolation per teammate
PLAN_PATH="${1:-$(find "$(pwd)/.pilot/plan/pending" "$(pwd)/.pilot/plan/in_progress" -name "*.md" -type f | head -1)}"
[ -f "$PLAN_PATH" ] || { echo "❌ No plan found"; exit 1; }
Create review-team with specialized teammates:
Teammate 1: Test Coverage Reviewer
Spawn teammate "test-reviewer" with prompt:
"You are a tester (see @.claude/agents/tester.md).
Review test coverage for plan: $PLAN_PATH.
Evaluate: SCs verifiable? test commands? coverage ≥80%?
Discuss findings with other reviewers via Message.
Output: PASS or FAIL with detailed findings."
Teammate 2: Type Safety & Quality Reviewer
Spawn teammate "quality-reviewer" with prompt:
"You are a validator (see @.claude/agents/validator.md).
Review type safety and code quality for plan: $PLAN_PATH.
Evaluate: TypeScript types? lint config? quality (SRP/DRY/KISS)?
Discuss findings with other reviewers via Message.
Output: PASS or FAIL with detailed findings."
Teammate 3: Deep Code Reviewer
Spawn teammate "deep-reviewer" with prompt:
"You are a code-reviewer (see @.claude/agents/code-reviewer.md).
Perform deep code quality review for plan: $PLAN_PATH.
Evaluate: architecture? function size (≤50)? file size (≤200)? nesting ≤3? edge cases?
Discuss findings with other reviewers via Message.
Output: PASS or FAIL with detailed findings."
Teammate 4: Security Reviewer
Spawn teammate "security-reviewer" with prompt:
"You are a security-analyst (see @.claude/agents/security-analyst.md).
Review security aspects for plan: $PLAN_PATH.
Evaluate: input validation? auth/authz? secret management? OWASP Top 10?
Discuss findings with other reviewers via Message.
Output: PASS or FAIL with detailed findings."
Key Enhancement: Reviewers cross-reference and debate findings via direct messaging before Team Lead aggregates final report.
| Level | Symbol | Action |
|---|---|---|
| BLOCKING | 🛑 | Interactive Recovery |
| Critical | 🚨 | Must fix |
| Warning | ⚠️ | Should fix |
| Suggestion | 💡 | Nice to have |
echo "$findings" | grep -q "🛑.*BLOCKING" && { echo "🛑 BLOCKING"; return 1; }
| Issue Type | Target Section | Method |
|---|---|---|
| Missing step | Execution Plan | Add checkbox |
| Unclear requirement | User Requirements | Clarify wording |
| Test gap | Test Plan | Add scenario |
| Risk identified | Risks | Add item |
| Missing dependency | Scope | Add requirement |
Step 0: Extract SC count
sc_count=$(grep -c "^- \[.\] \*\*SC-" "$PLAN_PATH" || echo "0")
Step 1: Search "needs investigation/confirmation/review" keywords
Step 2: Type detection (code, config, docs, scenario, infra, db, ai)
Step 3: 8 mandatory reviews
Step 5: Extended reviews (type-activated)
Step 6: Autonomous perspectives
Step 7: Gap detection (BLOCKING → Interactive Recovery)
Step 9.5: Multi-angle review-team (5+ SCs)
# For complex plans (5+ SCs), add design-reviewer teammate if frontend changes detected
[ "$sc_count" -ge 5 ] && grep -qiE "component|UI|frontend|React|Vue" "$PLAN_PATH" && echo "🚀 Add design-reviewer teammate"
Step 10: GPT expert (5+ SCs or architecture/security/auth)
[ "$sc_count" -ge 5 ] || echo "$PLAN_PATH" | grep -qiE "architecture|security|auth" && echo "🤖 GPT"
Internal: @.claude/skills/review/REFERENCE.md - Detailed review criteria, gap detection, GPT delegation | @.claude/rules/delegator/orchestration.md - GPT expert delegation | @.claude/skills/parallel-subagents/SKILL.md - Multi-angle parallel review | @.claude/agents/code-reviewer.md - Code reviewer output format
External: Code Review by Jason Cohen | The Art of Readable Code