agentleFS
Yco-0314Yco-0314/strata/skills/l4-review/review/SKILL.md

review

Skill0 starsChanged 5 months agoMITView on GitHub

Use when asked to review code, audit a diff, or before a merge — runs three independent read-only lenses over the diff (correctness + spec compliance, over-engineering, security) and reports findings by severity. Triggers: "review this", "code review", "what can we delete", "is this over-engineered", "security review".

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, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 2

    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:

    After the three lenses, run one explicit check the lenses can miss: what changed behavior does NO lens own?

    line 59
  2. Distinctive:

    NO lens own? List each contract clause / changed behavior and the lens that verifies it.

    line 60

“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 — L4, three lenses behind one entry

Review the diff (BASE..HEAD), not the whole tree. Each lens runs as a separate read-only reviewer — tools [Read, Grep, Glob], no Write/Edit/Bash, so a reviewer is structurally unable to "fix it" silently — at the Opus tier. Lenses are independent; run them in parallel and merge findings. review lists findings; it does not apply them (pair with simplify/--fix or the implementer subagent).

Lens 1 — Correctness + spec compliance (two stages, in order)

  1. Spec compliance first: does the code do exactly what the task/issue specified — nothing missing, nothing extra? Over- and under-building both fail here.
  2. Then code quality: bugs, edge cases, error handling, data flow, concurrency, perf.

Report each finding as Critical / Important / Minor with file:line and the why.

Lens 2 — Over-engineering (the ponytail lens)

Hunt only unnecessary complexity. One line per finding: <file>:L<n>: <tag> <what>. <replacement>.

  • delete: dead code / speculative feature → nothing replaces it.
  • stdlib: hand-rolled thing the standard library ships → name the function.
  • native: dep/code doing what the platform already does → name the feature.
  • yagni: abstraction with one implementation, config nobody sets, layer with one caller.
  • shrink: same logic, fewer lines → show the shorter form.

End with the only metric that matters: net: -<N> lines possible. Nothing to cut → Lean already. Ship. A single smoke test / assert self-check is the ponytail minimum — never flag it for deletion. Correctness, security, and perf are out of scope for this lens (they belong to lenses 1 and 3). Carve-out: a seam with one implementation is allowed when introduced under an active codebase-design / design-it-twice session.

Lens 3 — Security (the Trail of Bits lens)

Differential review keyed to the diff: walk the changed lines through a security lens (injection, authz, secrets, unsafe deserialization, path traversal, missing validation at trust boundaries). Then variant-hunt: grep the codebase for the same pattern elsewhere — one finding usually has siblings. Use CodeQL / Semgrep / SARIF if available; otherwise reason from the diff. Report by severity with file:line.

Coverage pass — the verification boundary

After the three lenses, run one explicit check the lenses can miss: what changed behavior does NO lens own? List each contract clause / changed behavior and the lens that verifies it; any behavior with no owning lens is a verification-boundary gap (the documented top failure mode). Also flag any contract clause from to-issues that no lens can check — that is contract-incompleteness surfacing at review time. Report uncovered behaviors as boundary: findings at HIGH unless clearly trivial.

Dispatch & verdict — the reviewer contract

Spawn each lens with the template in reviewer-contract.md (this dir). Non-negotiable: default stance REJECT — the diff carries the burden of proof; evidence = file:line the reviewer read itself (the implementer's narrative is not evidence; execution claims are settled by verification-before-completion re-running them); every reviewer's LAST line is VERDICT: APPROVE | REJECT | ESCALATE — no parseable verdict = REJECT (fail-closed). ESCALATE means "cannot decide read-only" (needs execution or a human), distinct from "defective".

Output

Merge the three lenses into one list, each finding tagged [TIER] <lens>-<category-slug> — tier ∈ CRITICAL / HIGH / MEDIUM / LOW, slug e.g. security-authz, correctness-edge-case, overeng-stdlib (vercel impact-tiered convention). Sorted highest-impact-first, so a CI gate can fail on CRITICAL/HIGH only. For each: the [TIER] slug, file:line, the lens, and the fix. Then hand to verification-before-completion before anyone claims the review is clean, and to finishing-a-development-branch (L4) to integrate.

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.