From legacy-execution
Systematically review PR code quality and business perspective, providing approval judgment material.
npx claudepluginhub t-hasuike/clysis --plugin legacy-executionThis skill uses the workspace's default tool permissions.
> This is a generic skill from [CLysis](https://github.com/t-hasuike/CLysis).
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
This is a generic skill from CLysis. Terminology can be customized via
config/terminology.md.
Systematically review pull request code quality and business perspective, providing approval judgment material.
See config/terminology.md for term customization
$ARGUMENTS
| Role | Responsibility |
|---|---|
| Shogun (Leader) | Approve review plan, make final judgment (Approved / Conditional Approval / Changes Required) |
| Karo (Planner) | Formulate review plan (Step 1.5). Advise review direction (focus areas, judgment criteria) based on PR characteristics |
| Ashigaru (Worker) | Execute review (Steps 1-5). Follow karo's plan and direction; investigate and report code quality and business perspective |
| Metsuke (Inspector) | Audit review results (Step 6). Independently verify quality, completeness, and appropriateness of ashigaru's report |
flowchart TD
A["Step 1 (Ashigaru): Get PR information"] --> B["Step 1.5 (Karo): Formulate review plan & advise direction"]
B --> C["Step 2 (Ashigaru): Reference domain knowledge - Dynamic scope"]
C --> D["Step 3 (Ashigaru): Code quality review"]
D --> E["Step 4 (Ashigaru): Business perspective review"]
E --> F["Step 5 (Ashigaru→Shogun): Overall evaluation & approval judgment"]
F --> G["Step 6 (Metsuke): Audit - Scope per plan"]
G --> H["Step 7 (Ashigaru): knowledge/ impact determination"]
Karo determines the PR's characteristics and formulates the plan:
PR Characteristics Assessment:
Dynamic Scope Decision for Knowledge References:
| PR Characteristic | Reference Scope |
|---|---|
| All PRs (baseline) | knowledge/domain/ (domain knowledge for affected process) |
| Domain rule changes | + Detailed review of relevant knowledge/domain/ files |
| Architecture fix | + knowledge/quality/distortions/ |
| Remediation-related | + knowledge/quality/remediation/ |
| System structure change | + knowledge/system/02_structure/, knowledge/system/03_behavior/ |
| Large impact scope | + knowledge/system/04_change_impact/ |
Metsuke Audit Scope Decision:
| PR Scale | Metsuke Scope |
|---|---|
| Small (single file, minor fix) | Lightweight: core checks only (type safety, security basics) |
| Medium (multiple files, logic change) | Standard: + design quality, test coverage |
| Large (10+ files, structural change) | Full audit: + business impact, release risk, architecture alignment |
Review Direction Guidance (as appropriate):
Ashigaru Composition:
Based on Karo's Step 1.5 scope determination:
Always consult (all PRs):
knowledge/domain/ — domain knowledge for affected processworkspace/in_progress/ — ongoing specifications for consistency checkOptional scope (per PR characteristics):
knowledge/quality/distortions/ — check for regressions to known issuesknowledge/quality/remediation/ — ensure no conflicts with active remediation plansknowledge/system/02_structure/ — repository boundaries, architecture constraintsknowledge/system/03_behavior/ — process flows, data flowsknowledge/system/04_change_impact/ — change impact patternsknowledge/standards/review/ — review criteria checklistsCore Checklist:
Domain Rule Alignment:
knowledge/domain/?User Impact Assessment:
Release Risk Assessment:
Ashigaru organizes review findings and reports to Shogun. Shogun makes the final decision:
| Judgment | Criteria |
|---|---|
| Approved | No quality or business perspective concerns |
| Conditional Approval | Minor findings; mergeable after fixes |
| Changes Required | Quality or business perspective issues; re-review after changes |
Audit scope per Step 1.5 plan:
Lightweight Audit (small PRs):
Standard Audit (medium PRs):
Full Audit (large PRs):
F002 Rule: Shogun must not review directly. Always delegate to Ashigaru. Shogun's role is to approve plans, make final judgments, and coordinate team.
# PR#[Number] Review Report
**PR**: [Title]
**Repository**: [Target repository (each repository if multiple)]
**Review Date**: YYYY-MM-DD
---
## 1. PR Overview
### Change Description
[Describe PR purpose and overview in 1-2 sentences]
### Changed File List
| File Path | Change Type | Lines |
|-----------|-----------|-------|
| xxx.ts | Addition | +50 |
---
## 2. Code Quality Review
### Positive Points
- [Include specific file:line numbers]
### Improvement Suggestions
| Location | Description | Priority | Proposal |
|----------|-------------|----------|----------|
| xxx.ts:45 | ... | High | ... |
### Required Fixes
| Location | Description | Reason |
|----------|-------------|--------|
| xxx.ts:78 | ... | ... |
---
## 3. Business Perspective Review
### Requirements Alignment
| Requirement | Status | Judgment | Notes |
|-----------|--------|----------|-------|
| xxx feature | OK | OK | ... |
### Domain Knowledge Alignment
**Referenced Domain Knowledge**:
- `knowledge/domain/xxx.md`
- `workspace/in_progress/yyy.md`
| Item | Domain Knowledge | Implementation | Judgment |
|------|-----------------|---------------|----------|
| xxx | ... | ... | OK |
---
## 4. Test Coverage
### Test Case Assessment
| Test Case | Judgment | Notes |
|-----------|----------|-------|
| xxx | OK | ... |
---
## 5. Overall Evaluation
### Approval Judgment
- **Approved** / **Conditional Approval** / **Changes Required**
### Reason
[State judgment reason]
### Next Actions
- [ ] [Assignee]: [Task description]
---
## 6. Metsuke Audit Results
### Audit Scope
[Lightweight / Standard / Full Audit]
### Findings
| Item | Result | Notes |
|------|--------|-------|
| Type safety | OK / Review | ... |
| Security | OK / Review | ... |
**Metsuke Audit Report**: Save to `reports/` (F007 compliance)
---
## 7. knowledge/ Impact Determination
### Documents Requiring Updates
| Document | Impact | Action |
|----------|--------|--------|
| none / `knowledge/domain/xxx.md` | ... | `/doc-organize` handoff |
Upon review completion, verify the following:
reports/? (F006 compliance)| Type | Description | Required/Optional | Example |
|---|---|---|---|
| PR number | PR number to review | Required | 12345 |
| Repository | Target repository | Optional | backend, frontend |
| Review focus | Specify particular focus | Optional | security, performance, business |
| Type | Format | Destination |
|---|---|---|
| Review report | Detailed Markdown (7 sections: PR overview, code quality, business perspective, test coverage, overall evaluation, metsuke audit, knowledge/ impact) | reports/ + stdout (Shogun report) |
| Metsuke audit report | Independent verification findings | reports/ (F007 compliance) |
knowledge/domain/, reports/, workspace/ accessible when available| Condition | Downstream Skill |
|---|---|
| knowledge/ update needed | /doc-organize — document update planning |
| New distortion pattern found | /current-distortion — systematic analysis |
| Approved → merge | PR merge and deployment |
reports/?