代码盲审与同行评审
blind-review
盲审同行评审——多个智能体独立评审代码,随后私下汇总综合结论以避免群体思维。适用于 PR、架构决策或任何需要无偏见评审的代码。
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- blind-review
- agent
- general-purpose
- context
- fork
- description
- Blind peer review - multiple agents critique code independently, then synthesize privately to avoid groupthink. Use for PRs, architecture decisions, or any code needing unbiased review.
- allowed-tools
- [ "Bash", "Read", "Glob", "Grep" ]
- disable-model-invocation
- true
03 SKILL.md 正文
Blind Peer Review Skill
Based on: Harvard+Stanford+CMU "LLM Review" paper - blind peer review improves quality while isolation protects originality.
Key insight: When agents openly see each other's work, they copy and converge. Blind review + private synthesis prevents groupthink.
FULLY AUTONOMOUS EXECUTION
Claude executes ALL phases without user intervention. Never ask user to run commands.
Phase 1: Identify Review Target
Determine what to review:
- If user specifies files/PR → use those
- If recent changes exist → review uncommitted changes
- If neither → ask user what to review
# Get files to review
git diff --name-only HEAD~1 # Recent commit
git diff --name-only # Uncommitted changes
Phase 2: Parallel Independent Reviews (BLIND)
Launch 3 reviewer agents in parallel using a SINGLE message with multiple Task tool calls.
CRITICAL: Each agent works in ISOLATION - they do NOT see each other's prompts or outputs.
Reviewer 1: Architecture Strategist
Prompt: Review this code from an architectural perspective. Focus on:
- Component boundaries and responsibilities
- Coupling and cohesion
- Design pattern usage
- Scalability concerns
Do NOT suggest implementation details. Only identify structural issues.
Files to review: [FILE_LIST]
Reviewer 2: Pattern Recognition Specialist
Prompt: Analyze this code for patterns and anti-patterns. Focus on:
- Code duplication
- Naming consistency
- Common anti-patterns (god objects, shotgun surgery, etc.)
- Adherence to codebase conventions
Do NOT suggest architecture changes. Only identify pattern issues.
Files to review: [FILE_LIST]
Reviewer 3: Domain Expert (project-specific)
Prompt: Review this code for domain-specific correctness. For Random Timer:
- Timer logic accuracy
- Redux state management patterns
- React Native/Expo best practices
- Theme system usage
Do NOT suggest pattern changes. Only identify domain issues.
Files to review: [FILE_LIST]
Execution
// SINGLE message with 3 parallel Task calls
Task({
subagent_type: 'compound-engineering:review:architecture-strategist',
prompt: '[Architecture review prompt with files]',
description: 'Blind architecture review',
});
Task({
subagent_type: 'compound-engineering:review:pattern-recognition-specialist',
prompt: '[Pattern review prompt with files]',
description: 'Blind pattern review',
});
Task({
subagent_type: 'general-purpose',
prompt: '[Domain review prompt with files]',
description: 'Blind domain review',
});
Phase 3: Collect Critiques (NO CROSS-POLLINATION)
Store each agent's output separately. Do NOT share outputs between phases.
critique_1 = [Architecture Strategist output]
critique_2 = [Pattern Recognition output]
critique_3 = [Domain Expert output]
Phase 4: Private Synthesis
A SINGLE synthesis agent receives all critiques and produces final recommendations.
Key: The synthesis agent sees critiques but reviewers never saw each other's work.
Prompt: You are synthesizing 3 independent code reviews into actionable improvements.
CRITIQUE 1 (Architecture):
{critique_1}
CRITIQUE 2 (Patterns):
{critique_2}
CRITIQUE 3 (Domain):
{critique_3}
Your task:
1. Identify overlapping concerns (high priority)
2. Identify unique insights from each reviewer
3. Resolve any contradictions by explaining trade-offs
4. Produce a prioritized list of improvements
5. For each improvement, provide specific file:line references
Output format:
## High Priority (multiple reviewers flagged)
- Issue: [description]
- Location: [file:line]
- Fix: [specific action]
## Medium Priority (single reviewer, significant)
...
## Low Priority (nice-to-have)
...
Phase 5: Execute Improvements (Optional)
If user wants fixes applied:
For each High Priority item:
1. Read the file
2. Make the specific edit
3. Mark as complete
For each Medium Priority item:
1. Ask user if they want it applied
2. If yes, execute
Output Format
After all phases complete, present:
## Blind Peer Review Complete
### Review Scope
- Files reviewed: [count]
- Reviewers: Architecture, Patterns, Domain
- Mode: Blind (isolated) + Private Synthesis
### High Priority Issues
[From synthesis]
### Medium Priority Issues
[From synthesis]
### Low Priority Issues
[From synthesis]
### Consensus Areas
Issues flagged by multiple reviewers:
- [List]
### Unique Insights
- Architecture: [unique finding]
- Patterns: [unique finding]
- Domain: [unique finding]
Additionally, emit a machine-checkable JSON payload that conforms to:
.claude/contracts/review-contract.schema.json
Validation command:
python scripts/review_contract_check.py --input <review-artifact.json>
Why This Works
| Traditional Review | Blind Peer Review |
|---|---|
| Reviewers see each other | Reviewers isolated |
| Ideas converge (groupthink) | Ideas stay diverse |
| Later reviewers copy earlier | All reviews original |
| One perspective dominates | All perspectives equal |
The isolation phase protects originality. The synthesis phase captures quality feedback.
Automatic Invocation
Claude detects when blind review is appropriate:
- After significant code changes (3+ files modified)
- Before creating PRs with complex changes
- When user mentions "review" in context of recent work
No user commands needed - Claude invokes this skill autonomously when beneficial.
ACT DON'T INSTRUCT
This skill is FULLY AUTONOMOUS:
- Claude launches all agents directly
- Claude collects and synthesizes results
- Claude presents findings
- Claude applies fixes if requested
NEVER tell user to run commands or invoke agents manually.
04 同仓库更多 Skills
任务实施计划编写
writing-plans
当你有某个多步骤任务的规格说明或需求时,在动手编写代码之前使用。
AI 工作流经济性评估
workflow-economics-lite
逃离 AI 试点炼狱:要求构建闭环(completion-loop)工作流,包含单一负责人、基线、经济指标、记录系统(system-of-record)集成和审计轨迹。阻断孤立的聊天机器人以及将“兴趣”当作 ROI 的说法。
完成前验证确认
verification-before-completion
当准备声称工作已完成、已修复或已通过时,在提交或创建 PR 之前使用——要求在做出任何成功声明之前先运行验证命令并确认输出;始终遵循“证据先于断言”。
价值中心五问评估
value-center-lite
应用 InfoQ Rohrer 的价值中心 / VSM 五问法(自主性 + 一致性)。在规划工作、发布版本或审计智能体自主性声明时使用。对于没有 WQTU/付费墙价值的纯产品口号,采取 fail closed(默认拒绝)的严格判定。
技能发现与调用规范
using-superpowers
在每次对话开始时使用——建立如何查找和使用技能的方法,要求在任何回应(包括澄清性问题)之前都必须先调用技能。
Git 工作树隔离开发
using-git-worktrees
在开始需要与当前工作区隔离的功能开发时,或在实施计划执行前使用——通过原生工具或 git worktree 回退机制确保存在隔离的工作区。