Autoreview

From teknokomo/universo-platformo-react · View interactive version

Autoreview is an AI agent skill from the GitHub repository teknokomo/universo-platformo-react. Use when running a structured closeout code review for local changes, branch diffs, commit diffs, final QA after non-trivial edits, second-model review, or an explicit autoreview request. Provides the project-local `.agents/skills/autoreview/scripts/autoreview` helper for bundle-driven advisory revi

How to use this skill

Skill file

Autoreview

Run the bundled structured review helper as a closeout check for non-trivial

changes. This is advisory code review, not automatic approval, merge permission,

or a replacement for focused tests.

Use this skill when:

review;

missing tests.

Contract

and adjacent files before changing anything.

tests and the helper until no accepted/actionable findings remain.

make the codebase more complex without addressing a concrete risk.

bundle, calls the selected engine, validates one structured report, and stops.

work, and local mode only when the patch is actually dirty in the current

checkout.

minimal Supabase only when the reviewed change actually touches browser/E2E

behavior and the relevant project skill requires that proof.

current task, do not treat those files as authored by the current

implementation.

review still running: ... elapsed=... remaining=... pid=... mean the helper

is still active. The default per-attempt timeout is 10 minutes; on timeout

the complete child process group is terminated and the run becomes

INCOMPLETE.

INCOMPLETE status. Starting an engine or observing a heartbeat is not a

review result.

Pick Target

Use the project-local helper:

.agents/skills/autoreview/scripts/autoreview --help

Dirty local work:

.agents/skills/autoreview/scripts/autoreview --mode local

Branch or PR work:

.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main

The helper does not fetch by default. If the review must update remote refs

first, make that git mutation explicit:

.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --fetch

If an open PR exists and gh is available, prefer the actual PR base:

base=$(gh pr view --json baseRefName --jq .baseRefName)
.agents/skills/autoreview/scripts/autoreview --mode branch --base "origin/$base"

Single committed change:

.agents/skills/autoreview/scripts/autoreview --mode commit --commit HEAD

Optional review context:

.agents/skills/autoreview/scripts/autoreview \
  --mode branch \
  --base origin/main \
  --prompt-file /tmp/review-notes.md \
  --dataset /tmp/evidence.json

Engines And Panels

the change.

when that policy was explicitly selected.

.agents/skills/autoreview/scripts/autoreview --reviewers codex,claude

--panel is shorthand for Codex plus Claude unless --engine changes the first

reviewer:

.agents/skills/autoreview/scripts/autoreview --panel

Parallel Closeout

Format first if formatting can change line locations. Then tests and review may

run in parallel:

.agents/skills/autoreview/scripts/autoreview \
  --parallel-tests "pnpm --filter <package> test"

If tests or review findings lead to edits, rerun the affected tests and rerun

autoreview. Stop after the helper exits cleanly with no accepted/actionable

findings.

Helper Behavior

The helper:

branch diff;

output is requested;

--dataset, --no-tools, --no-web-search, --stream-engine-output,

--panel, --reviewers, --timeout, --bundle-part-chars,

--fallback-engine, and --status-run;

supports them;

instructions that conflict with the canonical JSON schema;

symlinks outside the repository, bounds per-file patches, and splits large

bundles into deterministic parts;

can be inspected later with --status-run <run-id>;

Reliability Checks

Run deterministic wrapper tests without invoking a review engine:

python3 .agents/skills/autoreview/scripts/test-autoreview-reliability.py

Review failures use stable codes such as ENGINE_TRANSPORT_ERROR,

ENGINE_TIMEOUT, ENGINE_SCHEMA_ERROR, ENGINE_AUTH_ERROR,

ENGINE_SANDBOX_ERROR, PROMPT_CONFLICT, BUNDLE_TOO_LARGE, and

UNSUPPORTED_OPTION. Transport failures retry up to three attempts, including

during the repair phase. A malformed or schema-invalid result gets one

schema-repair pass that may only normalize existing findings.

Final Report

Include:

rejected.

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.