# Autoreview

Structured code review when explicitly requested, preferring OpenAI/Codex before Claude.

- Repository: https://github.com/openclaw/agent-skills (1113 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add openclaw/agent-skills --skill autoreview -g -a claude-code -y`
Codex: `npx skills add openclaw/agent-skills --skill autoreview -g -a codex -y`
Cursor: `npx skills add openclaw/agent-skills --skill autoreview -g -a cursor -y`
Gemini CLI: `npx skills add openclaw/agent-skills --skill autoreview -g -a gemini-cli -y`

## Description

Structured code review when explicitly requested, preferring OpenAI/Codex before Claude.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Auto Review

Run an independent review when the user or owning workflow asks. This is code
review, not Guardian approval routing. Supply target, context, and severity;
let the reviewer choose the analysis. Verify findings before acting.

## Hosted review requests

ClawSweeper reviews are opt-in for maintainer-authored PRs and issues. Request
`@clawsweeper review` only when the maintainer asks for it or the owning workflow
specifically requires ClawSweeper, after the work and validation are complete.
A generic independent-review requirement does not require a hosted bot review.
Check for an existing queued or running review before requesting one. Do not
automatically request reviews on PR creation, pushes, edits, or progress updates,
and do not repeat a pending request. A later head needs a new request only when
another review is required and that work is complete.

## Run

Prefer the shared helper from the repository being reviewed. When Codex CLI is
unavailable, see [Copilot subagent review](#copilot-subagent-review).

```bash
AUTOREVIEW="$HOME/.agents/skills/autoreview/scripts/autoreview"
python3 "$AUTOREVIEW" --mode local
```

Install from the canonical checkout: `python3 scripts/install-skills autoreview`.
The default links to this source. Honor custom `--target` paths; here use
`skills/autoreview/scripts/autoreview`. Windows needs Python 3.10+ or `autoreview.ps1`.
See `--help` for flags/env overrides. Keep `codex exec`: native `codex review`
cannot combine explicit Git targets and custom instructions.

`python3 "$AUTOREVIEW" --version` prints `autoreview source-sha256:<64 hex digits>`
for the executing helper's bytes, including copy-mode installations. It exits
without Git, configuration, engine probes or report writes. This identifies the
helper content, not a release, the complete skill or an attestation.

The rest: https://github.com/openclaw/agent-skills/blob/HEAD/skills/autoreview/SKILL.md
