autoreview
Skill30 starsChanged 2 months agoMITView on GitHub
Structured Codex, Claude, Amp, Pi, or Kimi code review when explicitly requested.
- Reads credentials
11 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- mneves75/skillsedited, first seen Oct 4, 2026
- openclaw/agent-skillsedited, first seen Oct 1, 2026
- jscraik/Agent-Skillstheir own version, first seen Sep 27, 2026
- brian-bell/agent-skillstheir own version, first seen Sep 26, 2026
- openclaw/crabboxtheir own version, first seen Sep 19, 2026
- openclaw/clawscantheir own version, first seen Sep 19, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- openclaw/agent-skills★ 1.1k25% same
- mneves75/skills★ 233% same
Wrote their own version · 9
- openclaw/crabbox★ 1.4ksame name
- swyxio/skills★ 171same name
- openclaw/clawscan★ 142same name
- jorgeasaurus/agent-skills★ 13same name
- clawsouls/soulclaw★ 9same name
- jscraik/Agent-Skills★ 9same name
- brian-bell/agent-skills★ 1same name
- lichao689/agent-engineering★ 1same name
- JaydipGabani/agentkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/autoreview/AGENTS.mdAGENTS.md
- .agents/skills/autoreview/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- agent-sandbox-deploySkill
- agent-substrate-deploySkill
- frontend-designSkill
- kindctlSkill
- orka-kind-deploySkill
- pr-closeoutSkill
- vekil-reverse-proxy-deploySkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run an independent review when the user or an owning workflow asks for one.
- Very specific: line 15
Use scripts/autoreview beside this skill.
- Very specific: line 27
Use --help for the complete flags and environment overrides.
- Very specific: line 56
When a file has both staged and unstaged changes, both states are reviewed.
- Very specific: line 67
Use --prompt for task-specific guidance, or --prompt-file and --dataset for repository-relative context files.
- Very specific: line 89
Use --engine, --model, and --thinking to override the defaults.
- Distinctive: line 111
Never reproduce credentials in findings or work around an isolation failure.
- Very specific: line 125
Do not edit inputs during a review: the helper verifies captured sources before sending and publishing results.
- Very specific: line 140
Treat scoped-clean as clean only for the selected target and requested priority.
- Distinctive: line 142
Verify findings against the actual code and task before changing anything.
- Distinctive: line 143
No extra review rounds for a nicer verdict.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Auto Review
Run an independent review when the user or an owning workflow asks for one. This is code review, not Guardian approval routing. Let the reviewer choose how to analyze the change; provide the target, relevant context, and desired severity. Findings are advice to verify, not instructions to apply blindly.
Run
Use scripts/autoreview beside this skill. Keep its custom codex exec path:
native codex review cannot combine explicit Git target flags with custom instructions.
The helper combines those with evidence, severity filtering, and validated JSON;
it leaves review judgment to Codex. For an OpenClaw checkout:
AUTOREVIEW=".agents/skills/autoreview/scripts/autoreview"
"$AUTOREVIEW" --mode localIn the canonical agent-skills repo, the path is
skills/autoreview/scripts/autoreview. On Windows, invoke the helper with Python.
Use --help for the complete flags and environment overrides.
Choose the Git target explicitly when the default is ambiguous:
| Target | Arguments | Scope |
| Local work | --mode local | HEAD → index → working tree, plus untracked files |
| Local candidate against a base | --mode local --base <ref> | Pinned base → index → working tree, plus untracked files |
| Committed branch/PR | --mode branch --base <ref> | Merge-base → HEAD; excludes dirty work |
| One commit | --mode commit --commit <ref> | Raw parent → commit; a root compares against the empty tree |
--mode auto selects local work when dirty, otherwise a branch review using the
PR base or origin/main. Clean main has no implicit review target.
--mode uncommitted is an alias for local. The helper does not fetch refs.
Registered nested linked checkouts from the same repository are outside the current review scope. Their presence or edits do not make the parent dirty; ordinary adjacent files remain included and scanned. Worktree boundaries are revalidated without changing Git ignore rules.
For a complete PR candidate including dirty rewrites, use local mode with its pinned merge base—not branch mode:
pr_base=$(gh pr view --json baseRefName --jq .baseRefName)
merge_base=$(git merge-base HEAD "origin/$pr_base")
"$AUTOREVIEW" --mode local --base "$merge_base"When a file has both staged and unstaged changes, both states are reviewed.
A defect in the index remains actionable even if the working tree fixes it;
the report labels it INDEX-only.
Git display settings cannot suppress context markers or add patch colors;
repository configuration is not changed. Source paths and text retain literal
whitespace. An empty present
source uses line 1, column 1, and an empty excerpt; empty physical lines also
use an empty excerpt at column 1. Source identity remains mandatory.
Context and severity
Use --prompt for task-specific guidance, or --prompt-file and --dataset for
repository-relative context files. Context does not expand the selected Git
target. The reviewer cannot read unchanged repository files from its empty
sandbox; supply relevant source or dependency evidence when the diff is insufficient.
The default threshold is P0 only: material blockers to normal operation or
safety. Use --max-priority P1, P2, or P3 when the caller requests a wider
review. Do not add unrelated redesign goals or prescribe file counts, reading
sequences, or ritual extra passes. Historical blame requires a verified
parent-relative patch; otherwise leave the attribution unknown.
"$AUTOREVIEW" --mode local --prompt-file review-notes.md --dataset evidence.jsonEngines
Codex is the default: gpt-6-astra, max reasoning, with a gpt-5.6-terra retry
only for an account-access failure. Claude defaults to claude-opus-5 with max
reasoning. Honor explicit engine/model choices; do not switch because a review
is slow or rate-limited.
Use --engine, --model, and --thinking to override the defaults.
--codex-speed fast selects priority service when supported. Only Claude accepts
--fallback-model. Per-engine environment overrides use AUTOREVIEW_<ENGINE>_*.
Isolated Codex runs preserve openai_base_url from an external
CODEX_HOME/config.toml and disable WebSocket transport for that provider;
repository-local Codex homes remain ignored.
| Optional engine | Prerequisites |
| Claude | CLI 2.1.169+; safe mode with web-only tools |
| Amp | AMP_API_KEY for a plugin-free account; local POSIX execution, no custom endpoint or cloud/orb agent |
| Pi | CLI 0.79.0+; configured model; no tools or project resources |
| Kimi | CLI 0.30.0+; configured model; Python 3.11+ or tomli for TOML config |
Runtime boundaries
The helper owns reviewer isolation, sanitized authentication, process cleanup, Git scope, and structured result validation. Keep those controls enabled. TruffleHog must scan the complete frozen input for partitioned reviews and each exact outgoing pack before it is sent; missing or failed scanning stops the run. Source-controlled ignore tags cannot suppress this gate. Scanner refusals never echo input headings or finding payloads; remove credentials locally and rerun. Never reproduce credentials in findings or work around an isolation failure.
On macOS, reviewer tools cannot access the shared /tmp and /var/tmp trees
(including their /private aliases). Codex preflight rejects those temporary
roots before workspace, runtime, or authentication setup; unset a shared
TMPDIR/TMP/TEMP override to use macOS's private
temporary directory. Other engines and platforms retain their normal isolation.
Tools installed in shared scratch or requiring writes there will be denied too.
Review files have no size/count cap and are never truncated. Large diffs and datasets are partitioned automatically. Intact instructions and required mixed source context must still fit the per-pass prompt budget. A failed pass does not produce a partial clean verdict.
Do not edit inputs during a review: the helper verifies captured sources before
sending and publishing results. Long reviews are normal; advancing heartbeats
mean progress. Use --stream-engine-output for visibility, not extra reviewer
runs. --dry-run checks preparation and startup without contacting a reviewer.
Results
--output and --json-output paths must be outside the reviewed repository.
| Exit | Meaning |
0 | scoped-clean, or a correct verdict with only filtered lower-priority findings |
1 | Accepted findings or an incorrect provider verdict |
2 | Incomplete scope/attribution, or a missing required finding |
Treat scoped-clean as clean only for the selected target and requested priority.
filtered is not clean; resolve incomplete before claiming completion.
Verify findings against the actual code and task before changing anything.
No extra review rounds for a nicer verdict; follow the owning workflow after fixes.
Report material findings and status plainly. Do not add transcripts, proof ledgers, commits, pushes, or a new workstream unless requested.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

