feat: フロントエンド/バックエンド/デュアル/CQRS+ES 特化のレビュー専用・レビュー修正ループピースを追加

- frontend/backend/dual/dual-cqrs/backend-cqrs の review 専用ピース(gather → reviewers → supervise)を追加
- 同5種の review-fix ピース(gather → reviewers ↔ fix → supervise)を追加
- review-arch インストラクションにモジュール化・関数化観点を明示的に追加
- 🔍 レビューカテゴリに10ピースを追加
This commit is contained in:
nrslib 2026-03-02 15:52:01 +09:00
parent 50935a1244
commit 71772765a6
24 changed files with 3684 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Do not review AI-specific issues (already covered by the ai_review movement).
**Review criteria:** **Review criteria:**
- Structural and design validity - Structural and design validity
- Modularization (high cohesion, low coupling, no circular dependencies)
- Functionalization (single responsibility per function, operation discoverability, consistent abstraction level)
- Code quality - Code quality
- Appropriateness of change scope - Appropriateness of change scope
- Test coverage - Test coverage

View File

@ -34,6 +34,16 @@ piece_categories:
🔍 Review: 🔍 Review:
pieces: pieces:
- review - review
- frontend-review
- frontend-review-fix
- backend-review
- backend-review-fix
- dual-review
- dual-review-fix
- dual-cqrs-review
- dual-cqrs-review-fix
- backend-cqrs-review
- backend-cqrs-review-fix
🧪 Testing: 🧪 Testing:
pieces: pieces:
- unit-test - unit-test

View File

@ -0,0 +1,220 @@
name: backend-cqrs-review-fix
description: CQRS+ES focused review + fix loop (structure, modularization, domain model, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: Healthy (progress being made)
next: reviewers
- condition: Unproductive (repeated findings, fixes not applied)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: Fixes complete
next: reviewers
- condition: Unable to proceed with fixes
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: All validations complete, ready to merge
next: COMPLETE
- condition: Issues detected
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: Fixes for supervisor findings complete
next: supervise
- condition: Unable to proceed with fixes
next: supervise

View File

@ -0,0 +1,148 @@
name: backend-cqrs-review
description: CQRS+ES focused review (structure, modularization, domain model, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: Review integration complete
next: COMPLETE

View File

@ -0,0 +1,196 @@
name: backend-review-fix
description: Backend-focused review + fix loop (structure, modularization, hexagonal architecture, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: Healthy (progress being made)
next: reviewers
- condition: Unproductive (repeated findings, fixes not applied)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: Fixes complete
next: reviewers
- condition: Unable to proceed with fixes
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: All validations complete, ready to merge
next: COMPLETE
- condition: Issues detected
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: Fixes for supervisor findings complete
next: supervise
- condition: Unable to proceed with fixes
next: supervise

View File

@ -0,0 +1,126 @@
name: backend-review
description: Backend-focused review (structure, modularization, hexagonal architecture, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: Review integration complete
next: COMPLETE

View File

@ -0,0 +1,243 @@
name: dual-cqrs-review-fix
description: Frontend + CQRS+ES focused review + fix loop (structure, modularization, domain model, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: Healthy (progress being made)
next: reviewers
- condition: Unproductive (repeated findings, fixes not applied)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: Fixes complete
next: reviewers
- condition: Unable to proceed with fixes
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: All validations complete, ready to merge
next: COMPLETE
- condition: Issues detected
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: Fixes for supervisor findings complete
next: supervise
- condition: Unable to proceed with fixes
next: supervise

View File

@ -0,0 +1,169 @@
name: dual-cqrs-review
description: Frontend + CQRS+ES focused review (structure, modularization, domain model, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: Review integration complete
next: COMPLETE

View File

@ -0,0 +1,219 @@
name: dual-review-fix
description: Frontend + backend focused review + fix loop (structure, modularization, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: Healthy (progress being made)
next: reviewers
- condition: Unproductive (repeated findings, fixes not applied)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: Fixes complete
next: reviewers
- condition: Unable to proceed with fixes
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: All validations complete, ready to merge
next: COMPLETE
- condition: Issues detected
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: Fixes for supervisor findings complete
next: supervise
- condition: Unable to proceed with fixes
next: supervise

View File

@ -0,0 +1,147 @@
name: dual-review
description: Frontend + backend focused review (structure, modularization, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: Review integration complete
next: COMPLETE

View File

@ -0,0 +1,216 @@
name: frontend-review-fix
description: Frontend-focused review + fix loop (structure, modularization, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: Healthy (progress being made)
next: reviewers
- condition: Unproductive (repeated findings, fixes not applied)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: Fixes complete
next: reviewers
- condition: Unable to proceed with fixes
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: All validations complete, ready to merge
next: COMPLETE
- condition: Issues detected
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: Fixes for supervisor findings complete
next: supervise
- condition: Unable to proceed with fixes
next: supervise

View File

@ -0,0 +1,146 @@
name: frontend-review
description: Frontend-focused review (structure, modularization, component design, security, QA)
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: Review target information gathered
next: reviewers
- condition: Unable to identify review target, insufficient information
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: Review integration complete
next: COMPLETE

View File

@ -3,6 +3,8 @@ AI特有の問題はレビューしないでくださいai_reviewムーブメ
**レビュー観点:** **レビュー観点:**
- 構造・設計の妥当性 - 構造・設計の妥当性
- モジュール化(高凝集・低結合・循環依存)
- 関数化1関数1責務・操作の一覧性・抽象度の一致
- コード品質 - コード品質
- 変更スコープの適切性 - 変更スコープの適切性
- テストカバレッジ - テストカバレッジ

View File

@ -34,6 +34,16 @@ piece_categories:
🔍 レビュー: 🔍 レビュー:
pieces: pieces:
- review - review
- frontend-review
- frontend-review-fix
- backend-review
- backend-review-fix
- dual-review
- dual-review-fix
- dual-cqrs-review
- dual-cqrs-review-fix
- backend-cqrs-review
- backend-cqrs-review-fix
🧪 テスト: 🧪 テスト:
pieces: pieces:
- unit-test - unit-test

View File

@ -0,0 +1,220 @@
name: backend-cqrs-review-fix
description: CQRS+ES特化レビュー修正ループ構造・モジュール化・ドメインモデル・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: 健全(進捗あり)
next: reviewers
- condition: 非生産的(同じ指摘の反復・修正未反映)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: 修正が完了した
next: reviewers
- condition: 修正を進行できない
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: すべての検証が完了し、マージ可能な状態である
next: COMPLETE
- condition: 問題が検出された
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: 監督者の指摘に対する修正が完了した
next: supervise
- condition: 修正を進行できない
next: supervise

View File

@ -0,0 +1,148 @@
name: backend-cqrs-review
description: CQRS+ES特化レビュー構造・モジュール化・ドメインモデル・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: レビュー統合完了
next: COMPLETE

View File

@ -0,0 +1,196 @@
name: backend-review-fix
description: バックエンド特化レビュー修正ループ構造・モジュール化・ヘキサゴナルアーキテクチャ・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: 健全(進捗あり)
next: reviewers
- condition: 非生産的(同じ指摘の反復・修正未反映)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: 修正が完了した
next: reviewers
- condition: 修正を進行できない
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: すべての検証が完了し、マージ可能な状態である
next: COMPLETE
- condition: 問題が検出された
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: 監督者の指摘に対する修正が完了した
next: supervise
- condition: 修正を進行できない
next: supervise

View File

@ -0,0 +1,126 @@
name: backend-review
description: バックエンド特化レビュー構造・モジュール化・ヘキサゴナルアーキテクチャ・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: レビュー統合完了
next: COMPLETE

View File

@ -0,0 +1,243 @@
name: dual-cqrs-review-fix
description: フロントエンドCQRS+ES特化レビュー修正ループ構造・モジュール化・ドメインモデル・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: 健全(進捗あり)
next: reviewers
- condition: 非生産的(同じ指摘の反復・修正未反映)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: 修正が完了した
next: reviewers
- condition: 修正を進行できない
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: すべての検証が完了し、マージ可能な状態である
next: COMPLETE
- condition: 問題が検出された
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- cqrs-es
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: 監督者の指摘に対する修正が完了した
next: supervise
- condition: 修正を進行できない
next: supervise

View File

@ -0,0 +1,169 @@
name: dual-cqrs-review
description: フロントエンドCQRS+ES特化レビュー構造・モジュール化・ドメインモデル・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: cqrs-es-review
edit: false
persona: cqrs-es-reviewer
policy: review
knowledge:
- cqrs-es
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-cqrs-es
output_contracts:
report:
- name: cqrs-es-review.md
format: cqrs-es-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: レビュー統合完了
next: COMPLETE

View File

@ -0,0 +1,219 @@
name: dual-review-fix
description: フロントエンドバックエンド特化レビュー修正ループ構造・モジュール化・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: 健全(進捗あり)
next: reviewers
- condition: 非生産的(同じ指摘の反復・修正未反映)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: 修正が完了した
next: reviewers
- condition: 修正を進行できない
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: すべての検証が完了し、マージ可能な状態である
next: COMPLETE
- condition: 問題が検出された
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- backend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: 監督者の指摘に対する修正が完了した
next: supervise
- condition: 修正を進行できない
next: supervise

View File

@ -0,0 +1,147 @@
name: dual-review
description: フロントエンドバックエンド特化レビュー構造・モジュール化・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
- backend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: レビュー統合完了
next: COMPLETE

View File

@ -0,0 +1,216 @@
name: frontend-review-fix
description: フロントエンド特化レビュー修正ループ構造・モジュール化・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 30
initial_movement: gather
loop_monitors:
- cycle:
- reviewers
- fix
threshold: 3
judge:
persona: supervisor
instruction_template: loop-monitor-ai-fix
rules:
- condition: 健全(進捗あり)
next: reviewers
- condition: 非生産的(同じ指摘の反復・修正未反映)
next: supervise
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: fix
- name: fix
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
required_permission_mode: edit
pass_previous_response: false
instruction: fix
rules:
- condition: 修正が完了した
next: reviewers
- condition: 修正を進行できない
next: supervise
- name: supervise
edit: false
persona: dual-supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: supervise
pass_previous_response: false
rules:
- condition: すべての検証が完了し、マージ可能な状態である
next: COMPLETE
- condition: 問題が検出された
next: fix_supervisor
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
- name: fix_supervisor
edit: true
persona: coder
policy:
- coding
- testing
knowledge:
- frontend
- security
- architecture
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
instruction: fix-supervisor
pass_previous_response: false
rules:
- condition: 監督者の指摘に対する修正が完了した
next: supervise
- condition: 修正を進行できない
next: supervise

View File

@ -0,0 +1,146 @@
name: frontend-review
description: フロントエンド特化レビュー構造・モジュール化・コンポーネント設計・セキュリティ・QA
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 10
initial_movement: gather
movements:
- name: gather
edit: false
persona: planner
allowed_tools:
- Read
- Glob
- Grep
- Bash
- WebSearch
- WebFetch
instruction: gather-review
output_contracts:
report:
- name: review-target.md
format: review-gather
rules:
- condition: レビュー対象の情報収集完了
next: reviewers
- condition: レビュー対象を特定できない、情報不足
next: ABORT
- name: reviewers
parallel:
- name: arch-review
edit: false
persona: architecture-reviewer
policy: review
knowledge:
- architecture
- frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-arch
output_contracts:
report:
- name: architect-review.md
format: architecture-review
rules:
- condition: approved
- condition: needs_fix
- name: frontend-review
edit: false
persona: frontend-reviewer
policy: review
knowledge: frontend
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-frontend
output_contracts:
report:
- name: frontend-review.md
format: frontend-review
rules:
- condition: approved
- condition: needs_fix
- name: security-review
edit: false
persona: security-reviewer
policy: review
knowledge: security
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-security
output_contracts:
report:
- name: security-review.md
format: security-review
rules:
- condition: approved
- condition: needs_fix
- name: qa-review
edit: false
persona: qa-reviewer
policy:
- review
- qa
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
instruction: review-qa
output_contracts:
report:
- name: qa-review.md
format: qa-review
rules:
- condition: approved
- condition: needs_fix
rules:
- condition: all("approved")
next: supervise
- condition: any("needs_fix")
next: supervise
- name: supervise
edit: false
persona: supervisor
policy: review
allowed_tools:
- Read
- Glob
- Grep
- WebSearch
- WebFetch
pass_previous_response: false
instruction: supervise
output_contracts:
report:
- name: supervisor-validation.md
format: supervisor-validation
- name: summary.md
format: summary
use_judge: false
rules:
- condition: レビュー統合完了
next: COMPLETE