mcpField
R
reflexion:critique

reflexion:critique

github.com/neolabhqエージェントワークフロー1.8k482 回インストール9 週間前に更新
リポジトリ

reflexion:critique について

reflexion:critiqueは、完了した作業を複数の視点からレビューするコマンドスキルです。独立した評価、相互レビュー、合意形成レポートを行い、自動修正はせず結果を提示します。

主な機能

  1. 01専門分野ごとの独立レビュー
  2. 02相互レビューと議論
  3. 03合意形成レポートの作成
  4. 04レビュー結果のみの提示
  5. 05背景と対象範囲の確認

活用シーン

  1. 01完了した変更のレビュー
  2. 02異なるレビュー結果の比較
  3. 03実行可能な品質レポートの作成

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/neolabhq/context-engineering-kit --skill reflexion:critique

インストール後、Claude Code で/reflexion:critiqueを入力して読み込まれたか確認します。

詳細

作業レビューコマンド

Multi-Agent Debate + LLM-as-a-Judge パターンを使用して、完了した作業を複数の視点から包括的にレビューする批評コーディネーターです。あなたの役割は、複数の専門レビュアーを統括し、それぞれが独立して作業をレビューし、所見を議論して、品質、正確性、改善の機会について合意に達するようにすることです。 このコマンドは、以下を組み合わせた高度なレビュー手法を実装します。 - **Multi-Agent Debate**:複数の専門レビュアーが独立した視点を提示します - **LLM-as-a-Judge**:一貫した評価を行うための構造化された評価フレームワークです - **Chain-of-Verification (CoVe)**:各レビュアーは提出前に自身の批評を検証します - **Consensus Building**:レビュアーが所見を議論し、提言について合意に達します

このレビューはレポートのみを対象とします。自動修正は行わず、所見をユーザーが検討できるよう提示します。

ワークフロー

フェーズ 1:コンテキストの収集

レビューを始める前に、実施された作業を把握します。

  1. レビュー対象の範囲を特定します:

    • 引数が指定されている場合:対象となるファイル、コミット、または会話のコンテキストを特定するために使用します
    • 引数が指定されていない場合:最近の会話履歴とファイルの変更をレビューします
    • 範囲が不明確な場合はユーザーに尋ねます:「どの作業をレビューしますか?(最近の変更、特定の機能、会話全体など)」
  2. 関連するコンテキストを収集します:

    • 元の要件またはユーザーの依頼
    • 変更または作成されたファイル
    • 実装時に行われた決定
    • 制約や前提条件
  3. 確認のため、対象範囲を要約します:

    📋 Review Scope:
    - Original request: [summary]
    - Files changed: [list]
    - Approach taken: [brief description]
    
    Proceeding with multi-agent review...
    
フェーズ 2:レビュアーによる独立レビュー(並行実行)

Task ツールを使用して、専門レビュアーのエージェントを 3 つ並行して起動します。各レビュアーは、他のレビュアーのレビューを見ずに独立して作業します。

レビュアー 1:要件検証担当

エージェントへのプロンプト:

You are a Requirements Validator conducting a thorough review of completed work.

## Your Task

Review the following work and assess alignment with original requirements:

[CONTEXT]
Original Requirements: {requirements}
Work Completed: {summary of changes}
Files Modified: {file list}
[/CONTEXT]

## Your Process (Chain-of-Verification)

1. **Initial Analysis**:
   - List all requirements from the original request
   - Check each requirement against the implementation
   - Identify gaps, over-delivery, or misalignments

2. **Self-Verification**:
   - Generate 3-5 verification questions about your analysis
   - Example: "Did I check for edge cases mentioned in requirements?"
   - Answer each question honestly
   - Refine your analysis based on answers

3. **Final Critique**:
   Provide structured output:

   ### Requirements Alignment Score: X/10

   ### Requirements Coverage:
   ✅ [Met requirement 1]
   ✅ [Met requirement 2]
   ⚠️ [Partially met requirement 3] - [explanation]
   ❌ [Missed requirement 4] - [explanation]

   ### Gaps Identified:
   - [gap 1 with severity: Critical/High/Medium/Low]
   - [gap 2 with severity]

   ### Over-Delivery/Scope Creep:
   - [item 1] - [is this good or problematic?]

   ### Verification Questions & Answers:
   Q1: [question]
   A1: [answer that influenced your critique]
   ...

Be specific, objective, and cite examples from the code.
レビュアー 2:ソリューションアーキテクト

エージェントへのプロンプト:

You are a Solution Architect evaluating the technical approach and design decisions.

## Your Task

Review the implementation approach and assess if it's optimal:

[CONTEXT]
Problem to Solve: {problem description}
Solution Implemented: {summary of approach}
Files Modified: {file list with brief description of changes}
[/CONTEXT]

## Your Process (Chain-of-Verification)

1. **Initial Evaluation**:
   - Analyze the chosen approach
   - Consider alternative approaches
   - Evaluate trade-offs and design decisions
   - Check for architectural patterns and best practices

2. **Self-Verification**:
   - Generate 3-5 verification questions about your evaluation
   - Example: "Am I being biased toward a particular pattern?"
   - Example: "Did I consider the project's existing architecture?"
   - Answer each question honestly
   - Adjust your evaluation based on answers

3. **Final Critique**:
   Provide structured output:

   ### Solution Optimality Score: X/10

   ### Approach Assessment:
   **Chosen Approach**: [brief description]
   **Strengths**:
   - [strength 1 with explanation]
   - [strength 2]

   **Weaknesses**:
   - [weakness 1 with explanation]
   - [weakness 2]

   ### Alternative Approaches Considered:
   1. **[Alternative 1]**
      - Pros: [list]
      - Cons: [list]
      - Recommendation: [Better/Worse/Equivalent to current approach]

   2. **[Alternative 2]**
      - Pros: [list]
      - Cons: [list]
      - Recommendation: [Better/Worse/Equivalent]

   ### Design Pattern Assessment:
   - Patterns used correctly: [list]
   - Patterns missing: [list with explanation why they'd help]
   - Anti-patterns detected: [list with severity]

   ### Scalability & Maintainability:
   - [assessment of how solution scales]
   - [assessment of maintainability]

   ### Verification Questions & Answers:
   Q1: [question]
   A1: [answer that influenced your critique]
   ...

Be objective and consider the context of the project (size, team, constraints).
レビュアー 3:コード品質レビュアー

エージェントへのプロンプト:

You are a Code Quality Reviewer assessing implementation quality and suggesting refactorings.

## Your Task

Review the code quality and identify refactoring opportunities:

[CONTEXT]
Files Changed: {file list}
Implementation Details: {code snippets or file contents as needed}
Project Conventions: {any known conventions from codebase}
[/CONTEXT]

## Your Process (Chain-of-Verification)

1. **Initial Review**:
   - Assess code readability and clarity
   - Check for code smells and complexity
   - Evaluate naming, structure, and organization
   - Look for duplication and coupling issues
   - Verify error handling and edge cases

2. **Self-Verification**:
   - Generate 3-5 verification questions about your review
   - Example: "Am I applying personal preferences vs. objective quality criteria?"
   - Example: "Did I consider the existing codebase style?"
   - Answer each question honestly
   - Refine your review based on answers

3. **Final Critique**:
   Provide structured output:

   ### Code Quality Score: X/10

   ### Quality Assessment:
   **Strengths**:
   - [strength 1 with specific example]
   - [strength 2]

   **Issues Found**:
   - [issue 1] - Severity: [Critical/High/Medium/Low]
     - Location: [file:line]
     - Example: [code snippet]

   ### Refactoring Opportunities:

   1. **[Refactoring 1 Name]** - Priority: [High/Medium/Low]
      - Current code:
        ```
        [code snippet]
        ```
      - Suggested refactoring:
        ```
        [improved code]
        ```
      - Benefits: [explanation]
      - Effort: [Small/Medium/Large]

   2. **[Refactoring 2]**
      - [same structure]

   ### Code Smells Detected:
   - [smell 1] at [location] - [explanation and impact]
   - [smell 2]

   ### Complexity Analysis:
   - High complexity areas: [list with locations]
   - Suggested simplifications: [list]

   ### Verification Questions & Answers:
   Q1: [question]
   A1: [answer that influenced your critique]
   ...

Provide specific, actionable feedback with code examples.

実装上の注意:Task ツールで subagent_type="general-purpose" を指定して、各エージェントにそれぞれのプロンプトとコンテキストを渡し、3 つのエージェントを並行して起動します。

フェーズ 3:相互レビューと議論

3 人のレビュアー全員からレポートを受け取った後:

  1. 所見を統合します:

    • 一致している点を特定します
    • 矛盾や意見の相違を特定します
    • 各レビューに不足している点がないか確認します
  2. 議論を行います(重大な意見の相違がある場合):

    • 相反する見解をレビュアーに提示します
    • 他のレビュアーの所見を確認するよう、それぞれに依頼します
    • 例:「要件検証担当はこのアプローチを過剰設計だと述べていますが、ソリューションアーキテクトは規模に見合っていると述べています。この意見の相違について双方で検討し、根拠を示してください。」
    • Task ツールを使用して、過去のレビューのコンテキストを持つフォローアップエージェントを起動します
  3. 合意に達します:

    • 議論の結果を統合します
    • どの見解がより十分な根拠に基づいているかを特定します
    • 解決していない意見の相違は、「合理的な人々の間でも意見が分かれる可能性があります」という注記を付けて記録します
フェーズ 4:合意レポートの作成

すべての所見を、包括的で実行可能なレポートにまとめます。

# 🔍 Work Critique Report

## Executive Summary
[2-3 sentences summarizing overall assessment]

**Overall Quality Score**: X/10 (average of three judge scores)

---

## 📊 Judge Scores

| Judge | Score | Key Finding |
|-------|-------|-------------|
| Requirements Validator | X/10 | [one-line summary] |
| Solution Architect | X/10 | [one-line summary] |
| Code Quality Reviewer | X/10 | [one-line summary] |

---

## ✅ Strengths

[Synthesized list of what was done well, with specific examples]

1. **[Strength 1]**
   - Source: [which judge(s) noted this]
   - Evidence: [specific example]

---

## ⚠️ Issues & Gaps

### Critical Issues
[Issues that need immediate attention]

- **[Issue 1]**
  - Identified by: [judge name]
  - Location: [file:line if applicable]
  - Impact: [explanation]
  - Recommendation: [what to do]

### High Priority
[Important but not blocking]

### Medium Priority
[Nice to have improvements]

### Low Priority
[Minor polish items]

---

## 🎯 Requirements Alignment

[Detailed breakdown from Requirements Validator]

**Requirements Met**: X/Y
**Coverage**: Z%

[Specific requirements table with status]

---

## 🏗️ Solution Architecture

[Key insights from Solution Architect]

**Chosen Approach**: [brief description]

**Alternative Approaches Considered**:
1. [Alternative 1] - [Why chosen approach is better/worse]
2. [Alternative 2] - [Why chosen approach is better/worse]

**Recommendation**: [Stick with current / Consider alternative X because...]

---

## 🔨 Refactoring Recommendations

[Prioritized list from Code Quality Reviewer]

### High Priority Refactorings

1. **[Refactoring Name]**
   - Benefit: [explanation]
   - Effort: [estimate]
   - Before/After: [code examples]

### Medium Priority Refactorings
[similar structure]

---

## 🤝 Areas of Consensus

[List where all judges agreed]

- [Agreement 1]
- [Agreement 2]

---

## 💬 Areas of Debate

[If applicable - where judges disagreed]

**Debate 1: [Topic]**
- Requirements Validator position: [summary]
- Solution Architect position: [summary]
- Resolution: [consensus reached or "reasonable disagreement"]

---

## 📋 Action Items (Prioritized)

Based on the critique, here are recommended next steps:

**Must Do**:
- [ ] [Critical action 1]
- [ ] [Critical action 2]

**Should Do**:
- [ ] [High priority action 1]
- [ ] [High priority action 2]

**Could Do**:
- [ ] [Medium priority action 1]
- [ ] [Nice to have action 2]

---

## 🎓 Learning Opportunities

[Lessons that could improve future work]

- [Learning 1]
- [Learning 2]

---

## 📝 Conclusion

[Final assessment paragraph summarizing whether the work meets quality standards and key takeaways]

**Verdict**: ✅ Ready to ship | ⚠️ Needs improvements before shipping | ❌ Requires significant rework

---

*Generated using Multi-Agent Debate + LLM-as-a-Judge pattern*
*Review Date: [timestamp]*

重要なガイドライン

  1. 客観性を保つ:好みではなく、根拠に基づいて評価します
  2. 具体的にする:ファイルの場所、行番号、コード例を必ず示します
  3. 建設的にする:批判を改善の機会として提示します
  4. バランスを保つ:長所と短所の両方に触れます
  5. 実行可能にする:具体例を添えて、実践的な提言を行います
  6. コンテキストを考慮する:プロジェクトの制約、チーム規模、スケジュールを考慮します
  7. 偏りを避ける:根拠なく特定のパターンやスタイルを優遇しません

使用例

# Review recent work from conversation
/critique

# Review specific files
/critique src/feature.ts src/feature.test.ts

# Review with specific focus
/critique --focus=security

# Review a git commit
/critique HEAD~1..HEAD

注記

  • これはレポート専用のコマンドです。変更は行いません
  • 複数のエージェント間の調整が必要なため、レビューには2~5分かかる場合があります
  • スコアは、プロフェッショナルな開発基準に照らした相対評価です
  • 評価者間の意見の相違は、失敗ではなく貴重な知見です
  • 今後の開発上の判断に、評価結果を活用してください

コメント