agentleFS
mdrubelamin2mdrubelamin2/omc-slim/skills/review/SKILL.md

review

Skill1 starsChanged 3 months agoMITView on GitHub

Reviews a diff across correctness, simplicity, security, tests, schema, API contract and performance at once, behind an evidence gate — every finding quotes file:line with severity and confidence — then fixes what is mechanical.

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

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Skip it: only when nothing changed since the last pass: re-reviewing an unchanged tree finds nothing and costs everything.

    line 13
  2. Distinctive:

    First, predict: Before reading closely, name the three to five places this change is most likely to be wrong, then check each.

    line 49
  3. Distinctive:

    Every finding gets an action.

    line 138

“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

Code review

Judge a change that exists. The goal is correct, no heavier than it needs to be, safe to ship, not a change nobody could criticise.

Clear it when it definitely improves the health of the codebase, even if it is not perfect. Never block because it is not how you would have written it. Sycophancy is the other failure: never soften a real finding to keep the peace.

Skip it only when nothing changed since the last pass: re-reviewing an unchanged tree finds nothing and costs everything.

Size is never a reason to skip a lane. "One line I already verified" fails twice over: it is a size test, and it is the author clearing their own work. A one-line change to an auth check is the most dangerous thing in the release. Once invoked, a triggered lane runs; §4 decides who runs it.

1. Scope

Get this wrong and every finding after is noise.

bash "${CLAUDE_PLUGIN_ROOT}/skills/review/scripts/base.sh"

It fetches first, because a stale base = phantom findings, and prints the base it resolved — read that line. It diffs against git merge-base, so uncommitted edits to tracked files are in and whatever landed on the base since is not. A brand-new file is untracked and no git diff contains it, which bites precisely because review runs before the commit, when new files exist: the script lists them separately, and an unread new file is a missed member of a set. An empty tree, or no repository, and it says so and stops; say so too. No plugin root, or no POSIX shell? The chain is in base.sh; run its steps by hand.

Read the whole diff before flagging anything. The commonest false positive is a problem the same diff fixes three hunks later.

2. Intent, before quality

Was this what was asked for: nothing more, nothing less?

  • Scope creep: changes tracing to no request. "While I was in there" widens the blast radius of the review and of the rollback.
  • Missing requirements: asked for and quietly not delivered, or left at 80%. The enum handled in one place of three, the error path skipped.

Intent comes from this session's request, the plan, the issue, the commit messages. Code that handles a deliverable is not the deliverable.

An intent gap is a finding, not a note. It does not block on its own, and it outranks every style finding below it. Section 6 turns it into an ask, because adding or cutting scope is the caller's decision.

Where the request covers a set, review the set, not the diff. Every page, all the endpoints, each consumer. A missed member is absent from the diff by definition, so the completeness lane is the only one that can reach it. Account for every member the change did not touch.

3. Read the tests first

They state what the author believed the change should do, so the implementation becomes a comparison rather than a guess. The gap between what they assert and what the code does is itself a finding. A test that had to change is a behaviour change, whatever the message says.

4. Lanes

First, predict. Before reading closely, name the three to five places this change is most likely to be wrong, then check each. The gap between prediction and finding is where you were blind.

Then find what judges this better than you can. You have a cutoff; this repository has law you have not read.

  • Read the project's own rules first: CLAUDE.md/AGENTS.md, .claude/rules/, the lint, formatter and type config, a design system. They outrank your preferences; a finding contradicting a deliberate project decision is not a finding.
  • Survey the toolset the way the output style says. Other plugins ship security, performance and framework reviewers built for this stack, and a documentation MCP is authoritative where you would be inferring. Name what you found.

Read checklists.md now, before judging anything. It holds the four always-on lanes, the specialist briefs and the report-time suppression list, and exists because the items worth catching are the ones that do not come to mind unprompted. A review that never opened it runs on recall, the failure this skill was built against.

Then open only the conditional lanes the table triggers, one file each in lanes/: security.md, data-and-schema.md, api-contract.md, interface.md, operations.md, performance.md. One file per trigger: skimming does not un-read.

LaneRuns when
Correctnessalways
Completenessalways — the only lane that reads outside the diff
Simplicityalways
Testsalways
Securityauth, session, token, permission, secret or crypto in the diff — at any size — or a backend change that reads or writes persisted data · lanes/security.md
Data and schemaa migration, a schema change, raw SQL · lanes/data-and-schema.md
API contracta route, handler, published type, or a changed response shape · lanes/api-contract.md
Interfacea component, template or stylesheet · lanes/interface.md
OperationsCI, deploy or release config · lanes/operations.md
Performancea query, IO inside a loop, a bundle entry, a render path · lanes/performance.md

Every lane triggers on the diff's content, never on its length. The table above is the whole rule. A migration is a schema change at 30 lines and at 3,000, and a changed response shape breaks its consumers either way. "Too small to review" is how it ships.

Size decides only who runs the lane, not whether it runs. Under roughly 50 changed lines, run the triggered lanes yourself rather than paying for a dispatch — including on a diff this session wrote. A self-run covers the lanes, never the verdict: where the adversarial pass below runs, it, not the author, carries the sign-off. Above 50 lines, dispatch the lanes in parallel, in one message, one general-purpose subagent each. Give each a path to a prepared diff file, not the diff and not a command to derive one. Plus its lane text and the two gates every finding must clear: quote the file:line that motivates it, and cite a current source for any claim from outside this repository. The rest of section 5 is yours at report time, not theirs. Either way, a lane the table triggers gets run and reported. A dispatched lane returns its findings in its final message. One that signs off with "done" has returned nothing, because nothing else reaches you.

Write it once before dispatching, with base.sh --out <file>: commit list, --stat, git diff -U10. Exit 1, or no diff written to: line, means no file exists; fix the path before dispatching. It never enters your context. Every lane reads the same bytes, and a lane needs one Read instead of the 40–67 tool calls measured when reviewers rebuild the range themselves.

Ask a lane only for what its agent can return. None of them can dispatch, so an external claim comes back unresolved and you send it on. checklists.md holds what each returns and how to brief it.

Brief a lane with evidence, never with a verdict. Findings and file:line locate the work, and that is the whole of what travels. A severity, a disposition, or an aside that something is probably fine decides the review before it runs. A lane handed the answer reports the answer. Suspect a finding will be a false positive? Let it be raised and adjudicate it afterwards, where the reasoning is visible.

Report which lanes ran and which did not, with the reason; a lane silently skipped reads as a lane that found nothing. An always-on lane that found nothing says so. "Tests: coverage adequate for the changed paths" is a result, and its absence is indistinguishable from never having looked.

performance.md is not a lane, it is the discipline for changing something on performance grounds. Reporting a hot-path finding needs only the lane; for an optimisation applied or accepted, open performance.md first. A change that does not beat the noise is reverted rather than kept, and that is not a call to make from recall.

Two lanes reading the same bytes and agreeing is not corroboration. Dispatch more than one and at least two get different evidence. checklists.md names the four sources, and which one is the cheap win.

Then one adversarial pass, where the cost of missing is asymmetric. It runs on a diff that touches the content list — auth, money, permissions, secrets, a migration, a delete, a published response shape — and on any diff above the dispatch threshold that this session wrote. Line count is not a proxy for risk, and a five-line auth change can be the worst thing in the release.

It does not run on a trivial change outside that list, and that is measured rather than preferred. Anthropic's Sonnet 5.5 page says reviewer subagents self-launch at xhigh and max effort, and that telling the model not to launch them unless the user asked for a review cut session cost by about a third with no change in quality. Where you skip it, say so on the Adversarial: line with the reason.

Run it in a fresh context. A subagent that did not write this code and holds no checklist, told what the lanes already found and asked for what they missed. No component here can be it. checklists.md says why, and carries the brief. A pass that both wrote a change and blesses it is not a review, however carefully it reads. The reasoning that produced the bug is still resident, and still finds it reasonable. This is the one step you cannot do to yourself.

Where a checklist partitions the work, the gaps between the partitions are where the real bug lives. Ask what is absent, explicitly: the unhandled case, the untested branch, the rollback that does not exist. And do not stop at the first few findings: surface problems mask structural ones. checklists.md names the seams to aim at.

5. Gates every finding passes

Filter at the end, never while looking. Surface everything during discovery: low severity, half-formed, uncertain. Filtering instructions are followed faithfully, so a filter applied while reading suppresses the bug before it is ever seen. Every gate here runs at report time, on a full list. "Only important issues" and "don't nitpick" rank; they are not permission to look less hard.

Quote the code, or you do not have a finding. Quote the file:line that motivates it. Field does not exist? Quote the class where it would live. Value can be null? Quote where it is initialised. Race? Quote both sides. Trying to quote the absent thing is what reveals it was there all along. Frameworks declare away from where things are used: an ORM base, a migration, a decorator, a generated client. So quote the construct that creates the symbol. The bar is "I read the source that defines this", not "I grepped and missed it". Cannot quote it, it is speculation: do not report it, and do not invent a higher confidence to get around the gate.

Cite the source, or you do not have a claim. The quote gate covers this repository. Anything outside it is checked against a current source, never recalled. An API signature, a default, a deprecation, a "recommended way", whether an advisory is reachable. A reviewer citing an argument that moved two versions ago is the most expensive false positive there is: specific, and it sounds researched. You send it to the omc-slim:librarian agent or the doc server for this stack; a dispatched lane cannot. Carry the source into the finding. An unsourced external claim is indistinguishable from a recalled one.

The remedy gets the same rigour as the finding. Reviewers are audited on the bug and trusted on the fix, which is backwards. Check whether the platform, the framework or a newer dependency already solves it. And before anything bespoke look for prior art: a named algorithm, a standard, an RFC, a widely used implementation. "Add a retry loop with jitter" is worse than naming the backoff the ecosystem already settled on.

Write the fix, and let it test the finding. Before reporting, name the change that would resolve it, then ask what input behaves differently before and after. If you cannot name one, or the "fix" changes nothing observable, the finding was a false positive. Drop it from the list and carry the count. One line per drop, not one line per review: file:line what it was, and what the fix would not have changed. A bare total is a disappearance nobody can audit, and it is exactly what makes this filter launderable. The laundering move is to propose an anaemic fix, watch nothing change, and drop anything that is not Critical. It never drops a Critical. One you cannot yet cost out goes to Open questions, per the confidence rule below.

Clearance needs evidence too. "Handled elsewhere" cites the handling code; "tests cover this" names the test. Likely handled and probably tested are not review outputs: verify, or record it unverified. "Looks fine" is not a finding and not a clearance.

Severity, by consequence. Critical: a security hole, data loss or broken behaviour, do not ship. Required: fix before merge. Optional: a real improvement, the author's call. Security is a product, consequence × exploitability × blast radius: a dramatic hole nothing can reach ranks below a dull one on the public path.

Pre-existing is a flag, not a level. It stacks on a severity rather than replacing one. So a real hole this diff did not introduce is a CRITICAL · PRE-EXISTING: full severity, not a blocker. Report it, rank it below everything the diff introduced, and let the author decide.

Confidence 1–10, independent of severity: 8+ report. 6–7 report and say it needs confirming. 3 to 5 goes to Open questions, not to the findings list, phrased as the question you could not settle and what would settle it. Below 3 you have a hunch, not a finding, and hunches are noise. A Critical survives at any confidence as an open question, never a blocker, because the cost of missing it is asymmetric. Suppressing one is how a real Critical gets deleted before anyone sees it. That is the one carve-out, not a licence to keep hunches. The verdict is set by the worst finding you are confident about, not the worst you can imagine: counting only what this diff introduced. A Pre-existing Critical is reported at full severity and does not set the verdict: "ship it; there is a Critical here that predates you."

Check yourself once, before writing anything down.

  • Could the author refute this in one sentence with context you lack? Then it is a question, not a finding.
  • Flaw, or preference? A preference is a nit or it is nothing.
  • Rating it high because it is bad, or because you found momentum and are now hunting? Use the realistic worst case, not the theoretical maximum, and count what already mitigates it: an existing test, a flag, a deploy gate.
  • Every downgrade names what mitigates it. A quiet re-rating is how a real finding disappears. Data loss, a security breach and money never get downgraded.

Inventing a problem to look thorough costs more than missing one. A clean review is worth something only because it can happen.

Propose the move, not just the problem. "This is complex" leaves the author guessing. Name it. Typed dispatch for the conditional chain, the canonical helper instead of the third copy, the type boundary made explicit so the downstream branching disappears. Prefer the remedy that removes moving pieces over one that spreads the same complexity around. Correct is only the floor. Where a meaningfully better approach existed, that is a finding too: Optional, unless the chosen one carries real risk.

Report at most five nits, then a count, in the NITS block. "…and 6 further minor points, say the word" is a complete disposition. Every suppressor carries the drop filter's audit trail: a count for the nits held back, one line for anything Do not flag removed. A suppression nobody can see and one that never happened read identically. List every small thing and the reader skims all of it, the structural finding included.

One structural problem beats ten nits. With both, the structural problem is the review. Correctness and security are read before style, the algorithm before the pattern it is written in. Twenty smells catalogued over a wrong core is the classic way to review nothing.

Machine-written code gets more scrutiny, not less. Fluent and plausible exactly where it is wrong. The empty catch, the return await, the memo around everything, the test that asserts the mock, the abstraction built for a second caller that never came.

checklists.md closes with Do not flag, the report-time suppression list.

6. Act

Every finding gets an action; there is no informational graveyard.

Fix directly what is mechanical and a senior engineer would apply without discussion. An import or variable this diff orphaned, a stale comment, a magic number, a version mismatch.

Two things are deliberately not on that list. Pre-existing dead code is reported, never deleted. The omc-slim:simplify skill treats "dead" as a claim about your search, not a property of the code. And a performance fix is never mechanical: performance.md requires a before-and-after measurement, which a review pass has no baseline to produce. Ask where reasonable engineers could disagree, or where it changes user-visible behaviour, removes functionality, touches security or concurrency, or runs past a handful of lines. Critical findings lean towards asking; small mechanical ones lean towards fixing.

Severity and mechanicalness are separate questions though: severity decides whether the decision is yours, mechanicalness whether the edit is. A Critical with one unambiguous fix gets fixed: the missing enum branch, the interpolated query. Name the judgement that remains: "added the branch; confirm the wording". A Critical with two defensible fixes gets asked about, however small the diff.

Batch every ask into one question with a recommendation. No asks, no question.

More than a line or two of simplicity work, hand it to omc-slim:simplify, the deletion skill. It has the pin-down check for untested code and this does not. Missing coverage goes to the omc-slim:verification-planning skill.

Never commit, push or open a PR from a review. Reviewing and publishing are different decisions.

7. Close

Re-run the project's own checks whose inputs the review changed, not every check. Report what they said, failures included; a skipped check is named with its reason.

Evidence has a shelf life: output from before the last edit describes a tree that no longer exists. A green build says the code compiles, not that it does what was asked. "All tests pass" with no output, or a conclusion carried by should, seems to or probably, is a claim, not a result.

Then stop. This budget covers one invocation of this skill. Invoked without a gate marker, three invocations in a session is the ceiling: nothing else counts them, so review→fix→review otherwise has a per-invocation budget and no total. At the third, say what is still open. One review and at most two re-reviews, three while a Critical is still open, each stating where it is (review attempt 2 of 3). Invoked as a gate by the omc-slim:deepwork skill, you carry the marker it gave you, Gate 2 — attempt 2 of 3, and the budget with it. And one invocation is one gate. You do not issue either: two components keeping their own count is how one gate quietly becomes two. A re-review covers what was unresolved and what the remediation broke; it does not reopen concerns already accepted. Spend one only when remediation changed the picture, or the concern survived focused evidence: never to re-confirm a mechanical fix. Budget gone with real risk still open: name it and ask whether to accept it, cut scope, or authorise another pass. Never quietly loop, and never keep polishing because polishing is possible.

Output

Review: <ship | fix first | needs a decision> [attempt N of M]. N findings (X critical, Y required, Z optional; P of them pre-existing)
Lanes: <ran>. Skipped: <lane (reason)>. Adversarial: <N found | nothing | skipped (reason)>

DROPPED
- file:line  what it was, and what the proposed fix would not have changed

FIXED
- file:line  problem, then what you did

NITS
- file:line  the small thing. "…and N more, say the word" closes it

NEEDS A DECISION
- [CRITICAL] (8/10) file:line  problem
  Fix: the specific change
- [REQUIRED] (7/10) file:line  problem
  Fix: the specific change
- [CRITICAL, PRE-EXISTING] (8/10) file:line  problem, not introduced here

OPEN QUESTIONS
- file:line  what you could not confirm, and the check that would settle it

Clean is Review: ship. 0 findings. plus the Lanes: line, and DROPPED if any candidates were filtered. Then stop. A review that dropped everything it considered is not one that found nothing, and that difference is the reader's to judge.

One line for the problem, one for the fix. Name the user-visible consequence, not the smell: "returns undefined when the session cookie expires, so the user gets a white screen" beats "missing null check". Every finding carries file:line; a claim about code without a location is a guess.

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.