Review changes

From indexable-inc/index-bak · View interactive version

Review changes is an AI agent skill from the GitHub repository indexable-inc/index-bak. Run a multi-agent adversarial review over the current working-tree changes. Fans out one finder per dimension (correctness, security, performance, maintainability) over the git diff, adversarially verifies each finding to cut false positives, and returns ranked blockers vs warnings. Invoke after com

How to use this skill

Skill file

review-changes

Launch a multi-agent review of the working-tree diff through the Workflow

tool, then act on the confirmed blockers. This is the worker behind the

always-on Stop review gate (review-gate.py); it is also fine to invoke

directly.

When to run

declaring it done.

Skip for genuinely trivial changes (a typo, a one-line doc/comment, a config

value with no logic). Say so in one line and stop.

How to run

  1. Find the change context: cwd = repo root via git rev-parse --show-toplevel

(fall back to the current directory if not in a git tree). The review targets

git diff --no-ext-diff plus git diff --no-ext-diff --staged; if both are

empty because the change was already committed, the finders fall back to

git show --no-ext-diff HEAD.

--no-ext-diff is not optional. This fleet sets diff.external = difft

globally, so a bare git diff returns difftastic's columnar rendering: no

+/- prefixes, no @@ headers, no a/,b/ paths, truncated to a width.

A finder sweeping that for added lines finds none and reports clean.

  1. Call the Workflow tool with the committed review script (do not inline a

script of your own):

```

Workflow({

scriptPath: "~/.claude/skills/review-changes/review.workflow.js",

args: { cwd: "<repo root>" }

})

```

The script ships next to this skill; expand ~ to the absolute home path.

The workflow runs in the background and notifies on completion. It fans out

one code-reviewer finder per dimension over the diff, pipelines each finding

through an independent skeptic that tries to refute it, and returns the

surviving findings ranked, with Correctness and Security marked as blockers.

Fallback — Workflow tool unavailable. Not every harness/session exposes

a Workflow tool. If the call fails because the tool does not exist, do not

stall or improvise a different review: run the same shape manually. Spawn one

code-reviewer agent per dimension — correctness, security, performance,

maintainability — over the same diff (git diff --no-ext-diff + `git diff

--no-ext-diff --staged, falling back to git show --no-ext-diff HEAD`), all

in a single message so they run

concurrently, each restricted to its one dimension. Then adversarially verify

each finding yourself (try to refute it against the actual code) before

reporting, and keep the same ranking: Correctness and Security are blockers.

  1. When it completes, report the verdict to the user, blockers first. Fix the

confirmed Correctness/Security findings in the same turn, or state plainly why

a finding is declined. Performance and Maintainability are the author's call.

If the workflow returns zero confirmed findings, say so in one line and move

on.

Notes

follow the same severity and evidence discipline as a manual reviewer pass.

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.