From rite
Coordinates parallel multi-expert PR code review. Activates with /rite:pr:review or when user asks for "code review", "PR feedback", "security check", "review my changes", "レビューして", "PRレビュー", "コードチェック", "セキュリティ確認", "変更を確認", "コードレビュー". Spawns specialized reviewers (Security, API, Database, DevOps, Frontend, Test, Dependencies, Prompt Engineer, Tech Writer, Code Quality, Error Handling, Type Design) based on changed file patterns. Produces unified findings with severity levels.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rite:reviewersThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Structure**: `SKILL.md` is the coordinator for the reviewer group (selection logic + the cross-cutting tables below). Each expert reviewer is a named subagent defined in `agents/{reviewer_type}-reviewer.md` (e.g., `agents/security-reviewer.md`); that file is the reviewer's full profile (Role / Core Principles / Detection Process / Detailed Checklist / Output Format) and is injected as the sub...
Structure: SKILL.md is the coordinator for the reviewer group (selection logic + the cross-cutting tables below). Each expert reviewer is a named subagent defined in agents/{reviewer_type}-reviewer.md (e.g., agents/security-reviewer.md); that file is the reviewer's full profile (Role / Core Principles / Detection Process / Detailed Checklist / Output Format) and is injected as the sub-agent's system prompt at review time.
This skill coordinates the multi-reviewer PR review process using specialized expert agents.
This skill is activated during /rite:pr:review command execution.
This table is the source of truth for reviewer file patterns (used by review.md ステップ 2 for selection). The Agent column names the named subagent spawned for each reviewer.
| Reviewer | Agent | File Patterns (Primary) |
|---|---|---|
| Security Expert | security-reviewer.md | **/security/**, **/auth/**, auth*, crypto*, **/middleware/auth* |
| Performance Expert | performance-reviewer.md | **/*.sh, **/hooks/**, **/api/**, **/services/** |
| DevOps Expert | devops-reviewer.md | .github/**, Dockerfile*, docker-compose*, *.yml (CI), Makefile |
| Test Expert | test-reviewer.md | **/*.test.*, **/*.spec.*, **/test/**, **/__tests__/**, jest.config.*, vitest.config.*, cypress/**, playwright/** |
| API Design Expert | api-reviewer.md | **/api/**, **/routes/**, **/handlers/**, **/controllers/**, openapi.*, swagger.* |
| Frontend Expert | frontend-reviewer.md | **/*.css, **/*.scss, **/styles/**, **/components/**, *.jsx, *.tsx, *.vue |
| Database Expert | database-reviewer.md | **/db/**, **/models/**, **/migrations/**, **/*.sql, prisma/**, drizzle/** |
| Dependencies Expert | dependencies-reviewer.md | package.json, *lock*, requirements.txt, Pipfile, go.mod, Cargo.toml |
| Prompt Engineer | prompt-engineer-reviewer.md | commands/**/*.md, skills/**/*.md, agents/**/*.md, and corresponding .mdx (commands/**/*.mdx, skills/**/*.mdx, agents/**/*.mdx) |
| Technical Writer | tech-writer-reviewer.md | **/*.md (excluding commands/**/*.md, skills/**/*.md, agents/**/*.md), **/*.mdx (excluding commands/**/*.mdx, skills/**/*.mdx, agents/**/*.mdx), docs/**, documentation/**, **/README*, CHANGELOG*, CONTRIBUTING*, *.rst, *.adoc, i18n/**/*.md, i18n/**/*.mdx (excluding plugins/rite/i18n/** — rite plugin's own translations are dogfooding artifacts) |
| Error Handling Expert | error-handling-reviewer.md | Files containing try, catch, throw, Error, reject, fallback keywords (JS/TS); set -e, pipefail, trap, ` |
| Type Design Expert | type-design-reviewer.md | **/*.ts, **/*.tsx, **/*.rs, **/*.go with interface, type, enum, class, struct |
Note: The Technical Writer row is kept in sync with plugins/rite/commands/pr/review.md ステップ 1.2.7 doc_file_patterns; see plugins/rite/commands/pr/references/internal-consistency.md Cross-Reference section for the drift-prevention invariant. Automated drift detection is implemented by plugins/rite/hooks/scripts/doc-heavy-patterns-drift-check.sh (invoked from /rite:lint ステップ 3.7 as a warning/non-blocking check). The row uses set semantics (file matching equivalence), not pattern syntax equality — the order of patterns and exact glob syntax may differ between this row and review.md as long as the matched file set is identical.
Code Quality co-reviewer rule: Code Quality reviewer is additionally selected as a co-reviewer in the following cases:
.md files matching Prompt Engineer patterns contain fenced code blocks (```bash, ```sh, ```yaml, etc.) in the diff, Code Quality is added alongside Prompt Engineer. This ensures embedded code snippets receive code quality review.Emoji usage policy: Emojis are used only for the following visibility purposes. Individual reviewer Findings output must not use emojis:
📜 rite レビュー結果)📜 rite 作業メモリ)⚠️ 矛盾する指摘を検出)Language policy: Section headings use English; descriptions and notes use Japanese. Pattern descriptions in tables may use Japanese for brevity.
All reviewers follow a single Finding Quality Policy enforced in agents/_reviewer-base.md and injected into each reviewer's user prompt via the {shared_reviewer_principles} extraction (review.md ステップ 4.5). It covers Reviewer Mindset (healthy skepticism, evidence-based reporting, thoroughness on every cycle), the Observed Likelihood Gate, Fail-Fast First, the Finding Quality Guardrail (filter bikeshedding / defensive / style-only — all findings are mandatory fixes, so reviewers must report only substantive issues), Confidence Scoring, and External Claim Awareness. Each reviewer's own checklist and Finding Quality Guidelines live in its named-subagent definition (agents/{reviewer_type}-reviewer.md).
Reference: See Finding Examples for concrete Few-shot examples of good findings, findings that should NOT be reported, and borderline judgment cases.
Mapping of reviewer identifiers (reviewer_type) to display names. Update this table when adding new reviewers.
| reviewer_type | 日本語表示名 | Agent |
|---|---|---|
| security | セキュリティ専門家 | security-reviewer.md |
| performance | パフォーマンス専門家 | performance-reviewer.md |
| devops | DevOps 専門家 | devops-reviewer.md |
| test | テスト専門家 | test-reviewer.md |
| api | API 設計専門家 | api-reviewer.md |
| frontend | フロントエンド専門家 | frontend-reviewer.md |
| database | データベース専門家 | database-reviewer.md |
| dependencies | 依存関係専門家 | dependencies-reviewer.md |
| prompt-engineer | プロンプトエンジニア | prompt-engineer-reviewer.md |
| tech-writer | テクニカルライター | tech-writer-reviewer.md |
| code-quality | コード品質専門家 | code-quality-reviewer.md |
| error-handling | エラーハンドリング専門家 | error-handling-reviewer.md |
| type-design | 型設計専門家 | type-design-reviewer.md |
Note: This table is the source of truth. commands/pr/review.md also references this table. The code-quality reviewer is used as a fallback when no other reviewers match (see "No Reviewers Match" section below and review.md ステップ 3.2), as a co-reviewer for Prompt Engineer files containing fenced code blocks, and as a sole reviewer guard co-reviewer (see "Code Quality co-reviewer rule" above).
For each changed file:
1. Match against all reviewer patterns
2. Collect matching reviewers
3. Track file count per reviewer
Analyze diff content for:
- Security keywords (representative): password, token, secret, auth, crypto, hash, encrypt, decrypt, credential, api_key, private_key, cert
- Performance keywords (representative): cache, async, await, promise, worker
- Data keywords (representative): query, migration, schema, index, transaction
- Error handling keywords (representative): try, catch, throw, Error, reject, fallback, finally (JS/TS); set -e, pipefail, trap, || true, || :, 2>/dev/null (Bash)
- Type design keywords (representative): interface, type, enum, class, struct, readonly, generic
Note: The above are representative keyword examples. The authoritative keyword list is defined in commands/pr/review.md ステップ 2.3 ("Security keyword detection" section), and the authoritative file patterns are the Available Reviewers table above.
Select all reviewers that:
1. Match file patterns from Phase 1
2. Match content keywords from Phase 2 (if enabled)
No prioritization by file count.
All matching reviewers are selected.
Apply constraints from rite-config.yml:
- min_reviewers: Minimum reviewers to select
Special rules:
- Security reviewer inclusion depends on rite-config.yml security_reviewer settings (see review.md ステップ 3.2)
- If no reviewers match, use code-quality reviewer as fallback (min_reviewers)
Note: For detailed mandatory selection conditions for Security Expert, see commands/pr/review.md ステップ 3.2 (Reviewer Selection).
Return only the reviewer list and file counts; Claude retains the selection internally for later phases (no JSON / data-structure output).
Data retention approach:
prompt parameter (the review.md ステップ 4.5 review-instruction template).Context management strategy: For context management during large PR reviews, see references/context-management.md as the source of truth for thresholds and guidelines.
Reviewer profile loading: There is no separate skill-file load step. Each reviewer's full profile (Role / Core Principles / Detection Process / Detailed Checklist / Output Format) is its named-subagent system prompt (agents/{reviewer_type}-reviewer.md), injected automatically when review.md ステップ 4.3 spawns rite:{reviewer_type}-reviewer. The ステップ 4.5 user prompt carries only the per-review inputs (diff, spec, shared principles, Wiki context).
This skill implements the Generator-Critic pattern for enhanced review quality.
Phase mapping:
commands/pr/review.md ステップ 4 (Parallel review execution)commands/pr/review.md ステップ 5 (Result validation & integration)Each selected reviewer acts as a Generator:
After all generators complete, a Critic phase validates:
If Critic identifies issues:
Logic to validate and integrate results from multiple reviewers.
See references/cross-validation.md for details.
For review result output format, see references/output-format.md.
Individual Reports: Each reviewer generates Domain-Specific Analysis + Findings table + Summary
Unified Report: Coordinator integrates Overall Assessment + Reviewer Consensus + Cross-Validated Findings
Findings table format (common):
| Severity | Scope | File:Line | Issue | Recommendation |
|---|---|---|---|---|
| {level} | {scope} | {location} | {WHAT + WHY} | {FIX + EXAMPLE} |
The Scope column accepts current-pr / follow-up / nit-noted (schema 1.1.0+). See _reviewer-base.md Scope Assignment Flowchart for assignment rules and the Severity × Scope Matrix for forbidden combinations.
If `rite:{reviewer_type}-reviewer` cannot be resolved (named subagent missing):
1. Log warning
2. Skip that reviewer
3. Continue with remaining reviewers
Note: Task tool timeout is managed internally by Claude Code. Users cannot directly specify a timeout parameter.
If reviewer task exceeds internal timeout:
1. Task tool returns an error
2. Mark the reviewer as "incomplete"
3. Continue with other reviewers' results
4. Note "{reviewer_type}: タイムアウト" in unified report
When no file patterns match, use code-quality reviewer as fallback. Security Expert inclusion follows rite-config.yml settings (see review.md ステップ 3.2).
If no file patterns match:
1. Use code-quality reviewer as fallback (min_reviewers)
2. Apply Security Expert selection rules from rite-config.yml (see review.md ステップ 3.2)
3. Warn user about limited review scope
4. Suggest manual reviewer selection if needed
npx claudepluginhub asakaguchi/cc-rite-workflow --plugin riteGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.