Review

From brsbl/ottonomous · View interactive version

Review is an AI agent skill from the GitHub repository brsbl/ottonomous. Reviews code changes for concrete bugs with P0-P2 prioritized findings. Uses parallel architectural and implementation reviewers, then validates findings to remove false positives. Use when reviewing a caller-supplied diff, branch, staged changes, file set, or pull request, and use fix mode with cal

How to use this skill

Skill file

Input: $ARGUMENTS

Review the caller's target or implement fixes from caller-supplied findings.

Return results inline unless the caller provides an output destination.

Resolve the invocation

Identify:

changes, or branch changes

An explicit caller target always wins. When invoked without a target in a Git

repository, review the current branch against its merge base with the default

branch. staged means git diff --cached. State the exact scope and command

used so the review is reproducible.

Do not invent a review registry, fixed plan path, or hidden persistence. In fix

mode, use findings supplied inline, by exact reference, or from the current

conversation. If none are available, ask the caller for them.

Review mode

1. Inspect and categorize the change

Read the complete diff, list changed and untracked files in scope, and inspect

the full source context needed to understand each change.

Assign architectural changes to the architect-reviewer persona in

agents/architect-reviewer.md:

directory structure, and public contracts

Assign implementation changes to the senior-code-reviewer persona in

agents/senior-code-reviewer.md:

Assign a file to both when both lenses materially apply.

For user-visible action, navigation, menu, command-palette, or responsive

changes, inventory every equivalent entry point before assigning priority:

Record whether each surface exposes the same action, consequence, enabled

state, and easiest completion path. A diff that updates one surface is not

complete evidence that the product behavior is consistent.

Prioritize impact separately from root-cause scope

Priority answers how badly the change breaks the product contract. Root-

cause scope answers how broadly ownership must change to prevent recurrence.

Never infer one from the other: a one-line regression can be P1, while a shared

ownership gap with no present user harm can be P2.

Use these priority rules:

functionality without a viable recovery path.

from explicitly approved behavior; loss of the primary, easiest, or only

discoverable path; or parity drift where equivalent surfaces expose

materially different actions or consequences. A cumbersome, hidden,

viewport-dependent, or different-surface workaround does not automatically

reduce this to P2.

issues that have not broken an approved behavior or normal completion path.

Evidence of an approved contract may come from the caller's requirements and

decisions, accepted stories or tests, established shared action definitions,

or the compared base revision. Do not treat the patch's behavior as intentional

merely because the patch implements it consistently in one place.

Classify every valid finding independently as:

reliable owner, so the smallest local fix restores the contract.

across routes, result types, viewports, or interaction surfaces, making drift

likely or already observable.

A shared ownership gap calls for the smallest useful contract consolidation,

not an automatic framework or broad rewrite. When the caller asks how many

bugs are one-offs versus systemic, count these classifications after priority

is assigned and explain the concrete shared owner each systemic fix needs.

Calibration examples:

| Finding | Priority | Root-cause scope |

| --- | --- | --- |

| An approved inline action is moved behind a singleton overflow menu | P1 | One-off if one toolbar condition caused it |

| Overflow, context-menu, and long-press actions drift, and compact loses the easiest creation path | P1 | Shared ownership gap |

| Equivalent actions match, but an uncommon icon has minor optical imbalance | P2 | One-off |

2. Delegate independent review

Scale to the change rather than a fixed ceremony:

Run independent scopes in parallel when the runtime supports it. Give every

reviewer:

Reviewers return only concrete P0-P2 findings in the documented format. Wait

for every delegated review before synthesis.

3. Synthesize findings

Collect, deduplicate, and sort findings by priority. Keep one discrete issue per

finding and preserve evidence and done conditions.

## Code Review Findings

| P | Problem | Root-cause scope | Fix approach | Files | Done when |
| --- | --- | --- | --- | --- | --- |
| P0 | Null pointer in user lookup | One-off | Add an early 404 return | `users.ts:47` | Missing user returns 404 |

**Verdict: CORRECT | NEEDS FIXES**

If no findings remain, report CORRECT and stop review mode.

4. Validate false positives

Delegate the synthesized list to false-positive-validator using the persona

in agents/false-positive-validator.md. Provide the exact target and working

location. The validator may keep, downgrade, or remove findings but may not add

new ones.

Replace the list with kept and downgraded findings, then report removed or

changed findings in a collapsed validation section with evidence. If all

findings are removed, report CORRECT.

5. Resolve ambiguity and produce the fix plan

For each valid finding whose fix requires a real product or architecture

choice, present the options and ask the caller to decide. Do not silently choose

a breaking contract or high-impact behavior.

Return a self-contained fix plan containing:

If the caller supplied an output destination, write the plan there after

showing it. Otherwise keep the full plan inline. Do not require approval merely

to report review findings; approval is required before entering fix mode.

Fix mode

1. Load and validate the supplied findings

Read the inline findings or exact caller-supplied reference. Confirm the target

still matches the reviewed code; if it materially changed, explain the stale

scope and ask whether to continue or obtain a new review.

Filter by the requested priority:

If no finding matches, report that and stop.

2. Implement approved fixes in bounded batches

Use only findings the caller approved. Select fixes whose dependencies are

satisfied, group nearby or overlapping files under one owner, and parallelize

only disjoint file scopes.

Each subagent receives:

After each batch, inspect and integrate the diffs, run the focused checks, then

continue with newly unblocked fixes. Do not let subagents stage, commit, publish,

or mutate a shared plan file unless the caller explicitly asks for that action.

3. Verify and report

Run the repository's relevant type checks, lint, tests, and product verification

after all selected fixes. Correct integration failures within the approved

scope; do not run another deliberate code review unless the caller requests it.

Return:

## Fix results

| Finding | Status | Evidence |
| --- | --- | --- |
| [P0] Null reference | Fixed | Focused regression test passes |

If the caller supplied an output destination, update that exact destination.

Do not create commits or delivery artifacts unless separately requested.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.