agentleFS
yacb2yacb2/aidex/skills/review/SKILL.md

review

Skill2 starsChanged 2 months agoMITView on GitHub

Use when the user wants code reviewed as it stands — a module, a feature, a path, or the whole app — rather than a diff or a pull request. Covers correctness/bug hunting, simplification and dead code, exploitable security defects, and performance waste, and it first proposes which finder agents are worth launching and what they will cost. Fires on "review this module", "review the X feature", "find bugs in this module", "what dead code is in X", "can this module be simplified", "security review of this code", "review the whole app", "review the changes since Friday / this weekend" (the changes pick the modules, reviewed as they stand). Not for: reviewing a diff, branch, or PR (the built-in /code-review, /simplify and /security-review already do that); auditing a running system against Lighthouse/OWASP program methodology (/aidex:audit); fixing a specific known bug (/aidex:bugfix).

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, plan-devex-review and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 11 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 9 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 11 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 12 projects that use this

  • AICreator-WindSkill

    design-consultation

    设计合作伙伴工具。构建完整设计系统,提供专业设计建议。

    Also in 12 projects that use this

  • +1 more from seek888

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every installed review instrument is anchored to a diff.

    line 12
  2. Distinctive:

    Read the exit code before the output:

    line 50

“Common” is measured: kept by at least 6 in 10 of the 167 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Review — code as it stands, not as it changed

Every installed review instrument is anchored to a diff. /code-review accepts a <path> target but its own scope agent turns it into "build the matching git diff command for it"; /simplify reviews "the changed code"; /security-review interpolates git diff origin/HEAD..., an anchor that can resolve to zero files while the tree is dirty (measured 2026-07-27).

This skill answers the other question: review this module as it is, with no base ref.

Scope vocabulary for the diff case: conventions/references/review-scope-conventions.md.

Step 1 — Resolve and measure the target (never skip)

bash "${CLAUDE_SKILL_DIR}/scripts/resolve-review-target.sh" <path>   # or --app

There is no default target. If the user did not name one, ask — one line — and do not fall back to the repo root.

"Review the changes" resolves to the touched modules, not to a diff. When the ask is "review the changes since Friday / this weekend's changes / lo que cambió esta semana", run --touched-since <ref|date> (no path): the changes decide WHICH modules, and each owning module is measured and reviewed as it stands — the untouched files included. A true diff review (a PR, a branch) still belongs to /code-review.

Tests are measured apart from source. The reviewed set excludes test files by default and the size class comes from source_loc, not loc — otherwise a module is refused for being well tested (measured: a 15,394-LOC module was 7,270 LOC of source and 8,124 of its own tests). --include-tests puts them back in the reviewed set and sizes on the total, because a class that bounds cost has to bound what the finders read. A target that is entirely tests keeps them: it was named deliberately.

A skill is markdown, and the resolver knows it. A directory carrying a SKILL.md resolves its .md alongside its scripts (skill_target=yes) — otherwise reviewing a skill returns one file and Step 1, the step that never gets skipped, cannot run at all. Everywhere else markdown stays out unless you pass --include-docs: a correctness finder reading every README is budget that never reached the code.

Read the exit code before the output:

  • 2 — usage error or missing path. Fix and re-run.
  • 3 — resolved to zero source files. Say that. It is a fact, never a clean result.
  • 0 — proceed with the measurement.

Depth is the caller's; admissibility is not. --finders N overrides the count the size class implies, clamped to the catalog's 4 angles: the class is a ceiling on cost, not a floor on depth, and "review this small file thoroughly" needs 4 finders on something small. --finders can never override oversize: that refusal answers whether the target can be covered at all, and a flag able to switch it off would make it decorative.

size_class=oversize is a refusal, not a warning: finders_per_lens=0. Do not run it anyway. Running the small-target finder count over a whole app produces a sample, and reporting a sample as a review is the failure this whole step exists to stop.

But do not stop at the wall — propose the split. Re-run with --partition: one part per immediate subdirectory, each measured like a target in its own right, plus a named (root) part for files sitting directly in the target. Present that table, say which parts you are covering now, and give the cost as the sum. The union of the parts is real coverage where one sampled pass never was — which is why phasing is the answer here and a bigger finder count is not.

Three things the partition tells you, and all three matter:

  • partitionable=no with a partition_note — a flat target or a single file. There is nothing to split on; name a narrower target.
  • part.<name>.needs_split=yes — that part is still oversize. Partition it in turn. Depth-1 does not always converge (measured: a 12,712-LOC part, over by 6%).
  • The parts cover the whole: nothing the target had goes missing. They can total more than it, because each part is measured as a target in its own right — a part that is itself a skill counts its own markdown, which the parent excluded unless the parent was a skill too. If you re-derive a split by hand, keep the covering property; a partition that loses files is a completeness claim that is false.

Step 2 — Triage: propose what to launch, with its cost

This is the step that makes the skill worth invoking rather than asking for a review in prose. From the measurement and the requested lens, decide which angles are worth launching and present the reasoning as evidence, not as a verdict.

Lens selection when the user said all (or named no lens):

LensLaunch it whenSkip it when
correctnessalways — a defect here is the only kind that produces wrong behaviornever
simplifythe target has more files than responsibilities, or duplicated shapesthe target is one small file
securitysecurity_surface_files > 0 and the module handles input, auth, secrets, or subprocessesthe probe found no surface — say "no signal", never "secure"
perfperf_surface_files > 0 and the module is on a request/render pathit is a one-shot script or build tool

Read ${CLAUDE_PLUGIN_ROOT}/skills/review/references/01-review-angles.md before choosing angles — it holds the angle names per lens and the verbatim scope boundary every finder must be given. Skip it and the run invents angle names and launches finders with no boundary: too narrow and they read the module and report nothing, too wide and they review the repository and never finish. Nothing errors either way.

Then choose angles per lens from the catalog, capped at finders_per_lens, and put every catalog angle you did not choose into one of two states. They are not the same thing and must not be reported as one:

  • not selected — the angle does not apply to this target (no shared state, so no state-and-concurrency). Not a coverage gap. One clause is enough.
  • dropped — it applies, and the finders_per_lens cap cut it. This is a coverage gap, and a budget-shaped one: splitting the target recovers it. Name it, and say that.

An unnamed drop is a review claiming coverage it did not have. A third state — fell — exists but cannot appear until Step 3, because it means the angle launched and returned nothing.

Cost — announce the floor as a floor. finder_floor_ktokens_per_lens × lenses is the finder bill, and all of it is knowable now. Verifiers are one per surviving candidate, their count is not knowable before the find phase, and they dominate the run: measured once (2026-08-10, register-item.sh, 790 LOC, 3 lenses, 6 finders) the floor was 132k and the run spent 2.2M — ~17×, n=1. Quote the ratio, not the 132k: that floor was computed on total LOC, before source_loc, so the same target measures a different floor today. So say "≥ floor, and the one run we have measured came in around 17× its floor". Printing the floor alone as the number is the failure this sentence exists to stop. The ratio stays here because quoting it is the instruction; its provenance and the caveat it carries are owned by ${CLAUDE_PLUGIN_ROOT}/skills/review/references/01-review-angles.md § Cost, which is where a re-measurement lands.

Name the model and effort in the same breath as the cost. This skill is model-policy: inherit-session: no model/effort is passed to any agent, so every finder and every verifier runs at this session's model and effort. That is the platform norm — /code-review inherits too; what its effort levels vary is the prompt, not the model — but here it is the dominant cost term, because 34 agents reading a whole module is not 8 agents reading a diff. Undeclared, it is a decision nobody made and the reader cannot see at the moment they decide to run. So say it: "N finders + one verifier per candidate, all at <model>/<effort>, inherited from this session."

Present: target, files/LOC, lenses chosen with their evidence, angles per lens, angles dropped (and, separately, angles not selected), the cost floor stated as above, and the inherited model/effort.

Then stop and let the user confirm or correct — unless --go was passed, in which case launch what you judged and report the same table alongside the findings.

Step 3 — Find, merge, then verify

Fan out with the Workflow tool (this skill body is the opt-in that makes it available).

Read ${CLAUDE_PLUGIN_ROOT}/skills/review/references/02-find-merge-verify.md and follow it. It is the whole step: the read-only contract every agent prompt carries verbatim (and the git status --porcelain before/after that proves it), the finder shape (a finder reports, it does not filter), the merge barrier keyed on the defect claimed (3.2), the verifier's return shape — CONFIRMED / PLAUSIBLE / REFUTED, the severity that overrides the finder's, the unreachable-trigger / undetermined reason (3.3) — the accounting for angles that fell (count nulls before .filter(Boolean), retry once, report fell apart from dropped), and the single-pass fallback when Workflow is unavailable, which the report must name.

Step 4 — Report, then make it survive the session

Report with the ReportFindings tool when it is available, most-severe first, verdict set from Step 3. It is the one piece of built-in machinery that transfers unchanged — the input scope does not.

Rank by the verifier's severity, and say that is what you ranked by. The finder's claim is an input to verification, not an output of it. Print severity source: verifier in the arithmetic below, and where the two disagree, say so per finding — a downgrade is a result, not an edit.

It is not always available. Its exposure is feature-gated and is off at low effort, so check your own tool list rather than assuming. Absent it, print the same content as a ranked list: file:line, severity, one-line claim, then the failure scenario. Never drop a finding because the reporting surface was missing.

Then offer to land the findings — and route, do not assume backlog. Never land silently. The two destinations are not interchangeable, and the count plus the verdict mix picks between them:

Land inWhenWhy
backlog — backloga handful of findings, essentially all CONFIRMEDeach is a unit of work; a queue is the right shape
an audit run — auditmany findings, or any real PLAUSIBLE tierfindings need a lifecycle and per-finding escalation later; a backlog drops PLAUSIBLE on the floor, and 7 of 16 unrefuted mechanisms is not floor material

Backlog, one call each, real interface (verified 2026-08-10):

bash ${CLAUDE_PLUGIN_ROOT}/skills/backlog/scripts/register-item.sh \
  --origin manual --title "<the finding>" --type bug --priority P2 --estimate S

Audit run — audit owns this format; do not grow a second writer here:

bash ${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/new-audit.sh custom <slug>   # methodology run,
#   NOT --standalone: escalate-finding.sh resolves ids only through
#   audits/<methodology>/00-inventory.md, so a standalone run cannot be escalated by id

Then add one inventory row per finding and put the detail in the run's findings.md. PLAUSIBLE findings go in too, carrying their verdict — that is the whole reason to choose this destination.

Then prove the landing, with audit's own validator, not by looking:

bash ${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/validate-audit.sh

An audit-orphan-finding-ref means the ids are in the journal and not in the inventory — the write did not land. This is not hypothetical: on 2026-08-10 a hand-written inventory seed silently no-op'd (the placeholder row it targeted did not match) and every one of 16 ids was orphaned. The findings looked recorded and were not. That validator is what caught it, which is exactly why the proof is delegated to it rather than reimplemented.

This step is not ceremony: verification that leaves no artifact does not accumulate — measured across this ecosystem, 5 of 6 verification actions leave nothing behind. A review whose findings live only in terminal scrollback has, a week later, not happened.

Print the arithmetic. If the numbers are not in the output, the step above it did not run. That is the only check a prose instruction can carry, and each of these three lines exists because the first live run skipped exactly the step it reconciles (2026-08-10):

PrintReconciles againstWhat it caught
angles announced / launched / retried / returnedStep 2's table"6 / 6 / 1 / 5" is unmissable; a bare "6 angles" hid a finder that died mid-run. retried is there because fell is only a legitimate verdict after the one retry, and a run that skipped the retry reports it identically otherwise
candidates raw / distinct after merge / confirmedStep 3.222 confirmed that were ~15 defects — the merge was specified and never executed
verdicts confirmed / plausible-unreachable / plausible-undetermined / refutedStep 3.3one run reported 7 plausible as one bucket, hiding that 5 were settleable in a disposable env
severity source: verifierStep 3.3the verifiers downgraded 4 of 16 and the report ranked by the finder anyway
cost floor / actualStep 2's floorannounced 132k, spent 2.2M

Then say plainly what was not covered: angles dropped (the cap cut them) and angles that fell (launched, returned nothing) as separate lines, lenses skipped, and for a split target, the modules not reviewed in this run.

Boundaries

The user wants to…Route to
Review a diff, branch, or PRthe built-in /code-review, /simplify, /security-review — they own the diff case
Audit a running system against Lighthouse/RUM budgets or OWASP × assets, with lifecycle-tracked findingsaudit (perf / security playbooks) — it measures a system; this skill reads code
Fix one known bug, test-firstbugfix
Turn findings into tracked workbacklog
Plan the work the findings implyplan
Review the Claude Code setup rather than the codeaidex

Related

  • conventions — owns review-scope-conventions.md (the diff-scope vocabulary, the Mode A / Mode B rule, and the prohibition on vendoring built-in prompt text).
  • audit — owns methodology playbooks over a running system; this skill owns code-reading angles over a static target.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.