Skip to content
Back to skills

Two Axis Review

ASecurity

Independent review of one diff for correctness and engineering quality, by a reviewer that never saw the implementation. Use on uncommitted work before its commit, or when the user orders a review of a range, a branch or a PR.

  • 13 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 1, 2026
ai-agentsgogitapisecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add jaqubowsky/fleet --skill two-axis-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Two Axis Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Two Axis Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jaqubowsky-two-axis-review/badge)](https://www.skillsdirectory.com/skills/jaqubowsky-two-axis-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: two-axis-review
description: 'Independent review of one diff for correctness and engineering quality, by a reviewer that never saw the implementation. Use on uncommitted work before its commit, or when the user orders a review of a range, a branch or a PR.'
compatibility: Requires git, jscpd for clone detection, and the `reviewer` sub-agent
---

Review one diff, uncommitted work over `HEAD` or `HEAD` against a fixed point: does the code fulfil the task, and is it engineered as this repo wants. One `reviewer` sub-agent does both; its context holds the task, the diff and the evidence you collect here, and nothing of how the implementation went. Its output is `review.md` where your seat's rules keep it, else where the user names.

## Process

### 1. Pin the diff

- Uncommitted work, before its commit or named by the user: `git add -A -N` so new files show, then `git diff HEAD --stat` is non-empty before anything else runs. The range is `<HEAD-sha>..working tree`.
- Otherwise the fixed point is what the user named: a commit, a branch, `main`, `HEAD~3`; for a review of the delta your seat's rules order, the head the last `review.md` proved, from its Range line; missing, ask for it. `git rev-parse <fixed-point>` and `git rev-parse HEAD` both resolve and `git diff <fixed-point>...HEAD --stat` is non-empty before anything else runs.

Keep the range `<base-sha>...<head-sha>` in SHAs from here on: the review proves this head and no other.

### 2. Gather the evidence

Into the evidence directory, `logs/review-<head-sha7>/` beside `review.md`:

- `diff.patch`: `git diff <base>...<head>`, and `changed.txt`: `git diff --name-only --diff-filter=ACMR <base>...<head>`; for uncommitted work, `git diff HEAD` in both.
- `commits.txt`: `git log <base>..<head> --oneline`; none for uncommitted work.
- `clones.txt`, from the first case that applies:
  - `changed.txt` holds only config, CI workflows or docs: one line saying so
  - a gate check already runs jscpd: one line naming that check, whose log the checks below carry
  - otherwise the detector run once, per [clone-detection.md](clone-detection.md); when `command -v jscpd` finds nothing, one line saying so
- The checks: the gate logs already written on this same uncommitted tree, named with their exit codes and not run again. A check your seat's rules run alongside or after this review is named with where its log will be, not run here. Otherwise, and for typecheck or lint that gate left out, the gate command the work named, typecheck, lint, each run once with its output in a log here and its exit code noted in the task text. A check that will not run here is named as not run.
- `red/`: the red logs this work saved, copied in. A test file in `changed.txt` with none is a line in `red/missing.txt`.
- A check log past 200 lines, repo-wide output such as a formatter's, gets its cut beside it here: `grep -F -f changed.txt <log> > <log>.changed`, the lines that name a changed file.

### 3. Name the standards

Repo documents on how code is written: `CODING_STANDARDS.md`, `CONTRIBUTING.md`, `CLAUDE.md`, `AGENTS.md`, `docs/`. Collect their paths. The reviewer reads them, and [quality.md](quality.md) beside this file, itself.

Supply these two axes in the review packet:

- Axis 1: correctness and fulfillment. Against the original ask and the supplied plan, find missing or partial behavior, unrequested changes, wrong results, reached edge cases, regressions, integration gaps, missing regression evidence, and every stub in production code that the ticket's Out of scope does not name: a fixed or empty value where the requirement asks for a computed one. Quote the requirement for each finding; a derived plan does not replace its source.
- Axis 2: engineering quality. Apply repository standards, then the questions of `quality.md`. Check unnecessary complexity, architectural fit, scope, and security or performance reached by the diff. Decide each clone pair as shared knowledge or independent copies, with evidence rather than an extraction quota.

### 4. Run the reviewer

{{review.call}} The task text carries, in this order:

1. the range in SHAs
2. the paths of the ticket and the analysis that set the task, those that exist; when none does, the prompt that set the task, quoted. For a delta, the ticket section that set the round, quoted, and the path of the last `review.md`
3. the evidence directory's path and each file in it except `pairs.tsv` and a log that has a `.changed` cut
4. each check log from step 2 with its exit code, by its cut where it has one
5. the standards paths from step 3, which come before the quality questions
6. the two axes from step 3 and `clones.txt` itself, its content inside one fenced block, so the reviewer reads the pairs

Every claim in the brief is a file in the evidence directory, quoted. The reviewer returns `review.md` in the shape its own definition holds.

### 5. Hand back

Read `review.md`. Report whether it covered its whole range, whether it found a break that must be fixed, and the finding count per axis with its path. The task stays open while the review missed part of its range, or while a proven break of an acceptance line or a correction required before release is unfixed; its acceptance and final gates still decide readiness. Fixes are the main agent's. Close each finding:

- Fix what a test or a trace shows broken, with the smallest fix, and close it with that evidence: a test that fails without the fix, or a log path and line
- A finding no test or trace reproduces stays unbuilt, closed as not reproduced
- A fix that would leave the task, into a shared package, a public API or an external contract, is not built here; the closing line says why
- A product decision goes to the user as a question, however the reviewer worded it

An item under Not covered that names work still to come goes into the file that work starts from. When a fix changed the tree, the gate command runs once more on it. Then `review.md` gets this addendum for those findings:

```md
## Closed after review

- P<0-2> <finding>: fixed, <test name, or log path:line>
- P<0-2> <finding>: host, <why its fix leaves the task>
- P<0-2> <finding>: not reproduced, <the test or trace that stayed green>
- P<0-2> <finding>: user, <the question asked>
- `<gate command>`: exit <n>, <log path>
- Unreviewed: <each file a fix added outside `changed.txt`, or none>
```

Checks after commit or rebase keep their detail in check logs or a new browser run report. The Range stays pinned to the diff the reviewer inspected. A fix that reaches files the reviewer never saw closes here too: the Unreviewed line names them, and the next review covers the delta from the reviewed head, or a range the user names.

## Done

`review.md` names the range step 1 pinned, every file in `changed.txt` appears in it under a finding or under Correct, every clone pair is ruled on, every check step 2 named appears under Checks read, and Shared seams lists every modified symbol other callers use or says none. Once the fixes are in, the addendum names every finding with its evidence, its `host:` reason, its question or the check that did not reproduce it, and fills the Unreviewed line.

Files in this skill

  • SKILL.md6.2 KB
  • clone-detection.md3.7 KB
  • smells.md2.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.