Provide a code review for the given local changeset.
Use this skill after .agents/skills/codereview/SKILL.md routes the task
here. Read ../references/triggering-and-signal.md first. When composing the
final report, also read ../references/report-composition.md.
If the user explicitly asks for architecture review in addition to local
changeset review, if an upstream prmr-codereview workflow forwards that
requirement, or if the reviewed scope materially changes layering, ownership
boundaries, dependency direction, compatibility/public surfaces, or other
architecture-review dimensions, launch ../architecture-review/SKILL.md as a
paired review against the same reviewed scope. Keep this skill as the main
report owner and summarize the paired architecture result in Related review inputs.
Use ../architecture-review/SKILL.md by itself only when architecture is the
sole requested review dimension.
Agent assumptions (applies to all agents and subagents):
- All tools are functional and will work without error. Do not test tools or
make exploratory calls. Make sure this is clear to every subagent that is
launched.
- Only call a tool if it is required to complete the task. Every tool call
should have a clear purpose.
- Choose subagents by capability tier rather than vendor-specific model
names: use a lightweight reviewer for scope discovery or file lists, a
general reviewer for balanced summaries or guidance checks, and the
strongest available reviewer for bug finding or issue validation.
- Reviewer and validator subagents should try to exhaust the reviewed scope
for high-signal issues. Do not stop after the first good finding or
intentionally cap the response to only the top 1-2 issues.
- This workflow requires subagents. Do not silently collapse it into a
single-agent review. If delegation is unavailable or not yet authorized,
stop and ask for explicit delegation permission before proceeding.
- Keep the review fan-out bounded. Close completed discovery, reviewer, and
validator agents as soon as their outputs have been incorporated instead of
leaving earlier review waves idle while later phases run.
- The numbered reviewer counts in this workflow are mandatory minima. Do not
silently launch fewer subagents, merge distinct reviewer roles into one
agent, or skip the validation stage.
To do this, follow these steps precisely:
Determine the reviewed changeset.
- Identify whether the target is a commit, branch diff, staged diff,
working tree diff, patch, or explicit file set.
- Choose the smallest reasonable diff or file scope that satisfies the
request.
- If this is a re-review of an updated target, default to the full current
effective changeset rather than only the incremental patch since the last
review, unless the user explicitly asks for incremental-only validation.
- If prior findings or user-specified concerns exist, keep a working ledger
and classify each item against the current scope as fixed, unresolved, or
no longer applicable.
- If the target is ambiguous, make a reasonable local choice and state it
in the report metadata.
If the user or upstream review context explicitly requested
architecture review in addition to this changeset review, or if the
reviewed scope materially changes layering, ownership boundaries,
dependency direction, compatibility/public surfaces, or other
architecture-review dimensions, launch a paired
architecture-review subagent against the same reviewed scope before
continuing. Keep its output as a separate paired-review input for the
final report.
Launch a lightweight review subagent to return a list of file paths (not
their contents) for all relevant repository guidance files including:
- The root
AGENTS.md file, if it exists
- Any directory-scoped
AGENTS.md files that apply to modified files
- Any files under
.agents/instructions/, .agents/references/, or
.agents/skills/ referenced by those AGENTS.md files and relevant to
the review scope
Close this discovery agent once the applicable guidance file list has been
captured.
Summarize the reviewed changeset locally before issue discovery. Do not
keep a dedicated summary agent open for this step.
Launch 3 agents in parallel to independently review the changes. Each
agent should return the list of issues, where each issue includes a
description and the reason it was flagged.
Each reviewer must return every high-signal issue it can find in scope, not
only the single strongest issue.
Agent 1: repository guidance compliance reviewer
Audit changes for AGENTS.md / .agents guidance compliance.
When evaluating guidance compliance for a file, only consider the guidance
files that are in scope for that file, including applicable parent
AGENTS.md files and the .agents instruction/reference/skill files
they reference.
Agent 2: deep bug reviewer
Scan for obvious bugs. Focus only on the reviewed changeset. Flag only
significant bugs; ignore nitpicks and likely false positives.
Agent 3: deep bug reviewer
Look for problems introduced by the reviewed changeset. This could be
security issues, incorrect logic, or clear contract breakage.
CRITICAL: We only want HIGH SIGNAL issues. Flag issues where:
- The code will fail to compile or parse
- The code will definitely produce wrong results regardless of inputs
- Clear, unambiguous repository guidance violations where you can quote
the exact rule being broken
Close these reviewer agents once the candidate-issue set has been
consolidated for validation.
Validate the issues in small batches. Keep at most 2 validator agents open
at once: one general validator for repository guidance issues and one
strongest-available validator for bugs and logic issues. The validator's
job is to confirm that the issue is truly real with high confidence in the
reviewed scope. For repository guidance issues, validate that the cited
AGENTS.md / .agents rule is actually in scope and actually violated.
Reuse or relaunch validators as needed, but close each validator as soon
as its assigned validations have been incorporated.
Filter out any issues that were not validated. De-duplicate overlapping
issues across all reviewers, then assign a final severity to each
remaining issue.
Before moving on, run a convergence pass against the reviewer outputs,
validator outputs, and any prior-findings ledger. If a new validated issue
surfaces during write-up, fold it into this round instead of leaving it for
a later follow-up review.
Output a summary using REPORT_TEMPLATE.md.
- If this workflow used any paired review skill, include a short
Related review inputs summary for each paired skill. Keep those
summaries concise and reference the paired report instead of copying its
findings into the main findings sections.
- If no issues were found, use the exact text:
No issues found. Checked for bugs and scoped guidance compliance.
- If issues were found, include only validated, de-duplicated
high-signal findings.
Source: HorizonRobotics/RoboOrchardLab — distributed by TomeVault.
1---2name: changeset-codereview3description: Review a commit, branch diff, staged diff, working tree diff, patch, or file set for validated high-signal bugs and scoped guidance violations in a local changeset review. Use when this capability is needed.4---5Provide a code review for the given local changeset.67Use this skill after `.agents/skills/codereview/SKILL.md` routes the task8here. Read `../references/triggering-and-signal.md` first. When composing the9final report, also read `../references/report-composition.md`.1011If the user explicitly asks for architecture review in addition to local12changeset review, if an upstream `prmr-codereview` workflow forwards that13requirement, or if the reviewed scope materially changes layering, ownership14boundaries, dependency direction, compatibility/public surfaces, or other15architecture-review dimensions, launch `../architecture-review/SKILL.md` as a16paired review against the same reviewed scope. Keep this skill as the main17report owner and summarize the paired architecture result in `Related review18inputs`.19Use `../architecture-review/SKILL.md` by itself only when architecture is the20sole requested review dimension.2122**Agent assumptions (applies to all agents and subagents):**23- All tools are functional and will work without error. Do not test tools or24 make exploratory calls. Make sure this is clear to every subagent that is25 launched.26- Only call a tool if it is required to complete the task. Every tool call27 should have a clear purpose.28- Choose subagents by capability tier rather than vendor-specific model29 names: use a lightweight reviewer for scope discovery or file lists, a30 general reviewer for balanced summaries or guidance checks, and the31 strongest available reviewer for bug finding or issue validation.32- Reviewer and validator subagents should try to exhaust the reviewed scope33 for high-signal issues. Do not stop after the first good finding or34 intentionally cap the response to only the top 1-2 issues.35- This workflow requires subagents. Do not silently collapse it into a36 single-agent review. If delegation is unavailable or not yet authorized,37 stop and ask for explicit delegation permission before proceeding.38- Keep the review fan-out bounded. Close completed discovery, reviewer, and39 validator agents as soon as their outputs have been incorporated instead of40 leaving earlier review waves idle while later phases run.41- The numbered reviewer counts in this workflow are mandatory minima. Do not42 silently launch fewer subagents, merge distinct reviewer roles into one43 agent, or skip the validation stage.4445To do this, follow these steps precisely:46471. Determine the reviewed changeset.48 - Identify whether the target is a commit, branch diff, staged diff,49 working tree diff, patch, or explicit file set.50 - Choose the smallest reasonable diff or file scope that satisfies the51 request.52 - If this is a re-review of an updated target, default to the full current53 effective changeset rather than only the incremental patch since the last54 review, unless the user explicitly asks for incremental-only validation.55 - If prior findings or user-specified concerns exist, keep a working ledger56 and classify each item against the current scope as fixed, unresolved, or57 no longer applicable.58 - If the target is ambiguous, make a reasonable local choice and state it59 in the report metadata.60612. If the user or upstream review context explicitly requested62 architecture review in addition to this changeset review, or if the63 reviewed scope materially changes layering, ownership boundaries,64 dependency direction, compatibility/public surfaces, or other65 architecture-review dimensions, launch a paired66 `architecture-review` subagent against the same reviewed scope before67 continuing. Keep its output as a separate paired-review input for the68 final report.69703. Launch a lightweight review subagent to return a list of file paths (not71 their contents) for all relevant repository guidance files including:72 - The root `AGENTS.md` file, if it exists73 - Any directory-scoped `AGENTS.md` files that apply to modified files74 - Any files under `.agents/instructions/`, `.agents/references/`, or75 `.agents/skills/` referenced by those `AGENTS.md` files and relevant to76 the review scope77 Close this discovery agent once the applicable guidance file list has been78 captured.79804. Summarize the reviewed changeset locally before issue discovery. Do not81 keep a dedicated summary agent open for this step.82835. Launch 3 agents in parallel to independently review the changes. Each84 agent should return the list of issues, where each issue includes a85 description and the reason it was flagged.86 Each reviewer must return every high-signal issue it can find in scope, not87 only the single strongest issue.8889 Agent 1: repository guidance compliance reviewer90 Audit changes for `AGENTS.md` / `.agents` guidance compliance.91 When evaluating guidance compliance for a file, only consider the guidance92 files that are in scope for that file, including applicable parent93 `AGENTS.md` files and the `.agents` instruction/reference/skill files94 they reference.9596 Agent 2: deep bug reviewer97 Scan for obvious bugs. Focus only on the reviewed changeset. Flag only98 significant bugs; ignore nitpicks and likely false positives.99100 Agent 3: deep bug reviewer101 Look for problems introduced by the reviewed changeset. This could be102 security issues, incorrect logic, or clear contract breakage.103104 **CRITICAL: We only want HIGH SIGNAL issues.** Flag issues where:105 - The code will fail to compile or parse106 - The code will definitely produce wrong results regardless of inputs107 - Clear, unambiguous repository guidance violations where you can quote108 the exact rule being broken109 Close these reviewer agents once the candidate-issue set has been110 consolidated for validation.1111126. Validate the issues in small batches. Keep at most 2 validator agents open113 at once: one general validator for repository guidance issues and one114 strongest-available validator for bugs and logic issues. The validator's115 job is to confirm that the issue is truly real with high confidence in the116 reviewed scope. For repository guidance issues, validate that the cited117 `AGENTS.md` / `.agents` rule is actually in scope and actually violated.118 Reuse or relaunch validators as needed, but close each validator as soon119 as its assigned validations have been incorporated.1201217. Filter out any issues that were not validated. De-duplicate overlapping122 issues across all reviewers, then assign a final severity to each123 remaining issue.124 Before moving on, run a convergence pass against the reviewer outputs,125 validator outputs, and any prior-findings ledger. If a new validated issue126 surfaces during write-up, fold it into this round instead of leaving it for127 a later follow-up review.1281298. Output a summary using `REPORT_TEMPLATE.md`.130 - If this workflow used any paired review skill, include a short131 `Related review inputs` summary for each paired skill. Keep those132 summaries concise and reference the paired report instead of copying its133 findings into the main findings sections.134 - If no issues were found, use the exact text:135 `No issues found. Checked for bugs and scoped guidance compliance.`136 - If issues were found, include only validated, de-duplicated137 high-signal findings.138139---140> Source: [HorizonRobotics/RoboOrchardLab](https://github.com/HorizonRobotics/RoboOrchardLab) — distributed by [TomeVault](https://tomevault.io).141<!-- tomevault:4.0:skill_md:2026-07-05 -->