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:
parent
50935a1244
commit
71772765a6
@ -3,6 +3,8 @@ Do not review AI-specific issues (already covered by the ai_review movement).
|
||||
|
||||
**Review criteria:**
|
||||
- Structural and design validity
|
||||
- Modularization (high cohesion, low coupling, no circular dependencies)
|
||||
- Functionalization (single responsibility per function, operation discoverability, consistent abstraction level)
|
||||
- Code quality
|
||||
- Appropriateness of change scope
|
||||
- Test coverage
|
||||
|
||||
@ -34,6 +34,16 @@ piece_categories:
|
||||
🔍 Review:
|
||||
pieces:
|
||||
- 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:
|
||||
pieces:
|
||||
- unit-test
|
||||
|
||||
220
builtins/en/pieces/backend-cqrs-review-fix.yaml
Normal file
220
builtins/en/pieces/backend-cqrs-review-fix.yaml
Normal 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
|
||||
148
builtins/en/pieces/backend-cqrs-review.yaml
Normal file
148
builtins/en/pieces/backend-cqrs-review.yaml
Normal 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
|
||||
196
builtins/en/pieces/backend-review-fix.yaml
Normal file
196
builtins/en/pieces/backend-review-fix.yaml
Normal 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
|
||||
126
builtins/en/pieces/backend-review.yaml
Normal file
126
builtins/en/pieces/backend-review.yaml
Normal 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
|
||||
243
builtins/en/pieces/dual-cqrs-review-fix.yaml
Normal file
243
builtins/en/pieces/dual-cqrs-review-fix.yaml
Normal 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
|
||||
169
builtins/en/pieces/dual-cqrs-review.yaml
Normal file
169
builtins/en/pieces/dual-cqrs-review.yaml
Normal 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
|
||||
219
builtins/en/pieces/dual-review-fix.yaml
Normal file
219
builtins/en/pieces/dual-review-fix.yaml
Normal 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
|
||||
147
builtins/en/pieces/dual-review.yaml
Normal file
147
builtins/en/pieces/dual-review.yaml
Normal 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
|
||||
216
builtins/en/pieces/frontend-review-fix.yaml
Normal file
216
builtins/en/pieces/frontend-review-fix.yaml
Normal 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
|
||||
146
builtins/en/pieces/frontend-review.yaml
Normal file
146
builtins/en/pieces/frontend-review.yaml
Normal 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
|
||||
@ -3,6 +3,8 @@ AI特有の問題はレビューしないでください(ai_reviewムーブメ
|
||||
|
||||
**レビュー観点:**
|
||||
- 構造・設計の妥当性
|
||||
- モジュール化(高凝集・低結合・循環依存)
|
||||
- 関数化(1関数1責務・操作の一覧性・抽象度の一致)
|
||||
- コード品質
|
||||
- 変更スコープの適切性
|
||||
- テストカバレッジ
|
||||
|
||||
@ -34,6 +34,16 @@ piece_categories:
|
||||
🔍 レビュー:
|
||||
pieces:
|
||||
- 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:
|
||||
- unit-test
|
||||
|
||||
220
builtins/ja/pieces/backend-cqrs-review-fix.yaml
Normal file
220
builtins/ja/pieces/backend-cqrs-review-fix.yaml
Normal 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
|
||||
148
builtins/ja/pieces/backend-cqrs-review.yaml
Normal file
148
builtins/ja/pieces/backend-cqrs-review.yaml
Normal 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
|
||||
196
builtins/ja/pieces/backend-review-fix.yaml
Normal file
196
builtins/ja/pieces/backend-review-fix.yaml
Normal 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
|
||||
126
builtins/ja/pieces/backend-review.yaml
Normal file
126
builtins/ja/pieces/backend-review.yaml
Normal 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
|
||||
243
builtins/ja/pieces/dual-cqrs-review-fix.yaml
Normal file
243
builtins/ja/pieces/dual-cqrs-review-fix.yaml
Normal 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
|
||||
169
builtins/ja/pieces/dual-cqrs-review.yaml
Normal file
169
builtins/ja/pieces/dual-cqrs-review.yaml
Normal 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
|
||||
219
builtins/ja/pieces/dual-review-fix.yaml
Normal file
219
builtins/ja/pieces/dual-review-fix.yaml
Normal 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
|
||||
147
builtins/ja/pieces/dual-review.yaml
Normal file
147
builtins/ja/pieces/dual-review.yaml
Normal 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
|
||||
216
builtins/ja/pieces/frontend-review-fix.yaml
Normal file
216
builtins/ja/pieces/frontend-review-fix.yaml
Normal 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
|
||||
146
builtins/ja/pieces/frontend-review.yaml
Normal file
146
builtins/ja/pieces/frontend-review.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user