agentleFS
futureteafuturetea/tea-stack/skills/review-code/SKILL.md

review-code

Skill5 starsChanged 3 days agoMITView on GitHub

Use when reviewing a diff, PR, or critical change. Performs an independent, evidence-based P0/P1/P2 code review.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-deps, audit-test-suite 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.
  • ba0918Skill

    review-deps

    A focused read-only review that treats manifests, lockfiles, and dependency diffs as first-class input and evaluates known vulnerabilities and supply chain signals. Use when the user says "review the dependencies", "look at the dependency vulnerabilities", "check the lockfile", "supply chain risk", "organize the npm audit output", "detect typosquats", "dependency health", or "review-deps". Its subject is the health of the dependencies, not test quality or code quality.

    Also in 4 projects that use this

  • yaohuangguanSkill

    audit-test-suite

    Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.

    Also in 3 projects that use this

  • yaohuangguanSkill

    change-data-safely

    Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    clear-caches

    Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.

    Also in 3 projects that use this

  • GeiserXSkill

    docs-loop

    Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.

    Also in 3 projects that use this

  • mrdulasolutionsSkill

    electron-devtools-testing

    Test the Electron app interactively using Chrome DevTools Protocol. Use when the user asks to test, verify, or interact with the running app via browser automation.

    Also in 3 projects that use this

  • +1 more from mrdulasolutions
  • +1 more from yaohuangguan

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the actual git diff, source files, and test output as the only source of truth—do not trust an author's summary at face value.

    line 13
  2. Very specific:

    No evidence, no severity: Every P0 or P1 must include path:line, a concrete trigger path, and the actual impact.

    line 31
  3. Very specific:

    Verify before claiming: Before flagging a broken caller or missing guard, check the callers and upstream code.

    line 32
  4. Very specific:

    Respect scope: Do not flood the report with P2 style nits on untouched legacy code.

    line 33
  5. Very specific:

    If there are no P0/P1 findings, say so plainly—never invent issues to look thorough.

    line 58

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

Inspect code changes from an independent reviewer's perspective to catch real defects without nitpicking or hallucinating risks.

Independence Rule

  • Run this in a fresh session or independent sub-agent whenever possible, rather than reviewing in the same context that authored the code.
  • Treat the actual git diff, source files, and test output as the only source of truth—do not trust an author's summary at face value.

Review Dimensions (Priority Order)

  1. Correctness & Edge Cases: Logic bugs, null/empty/zero values, off-by-one errors, swallowed errors, inconsistent state.
  2. Contracts & Compatibility: Broken callers, schema/serialization mismatches, changed error semantics, config drift.
  3. Security & Data Integrity: Auth/permission gaps, injection vectors, secret/PII leaks, races, partial writes leaving dirty state.
  4. Scope & Restraint: Unrelated edits, speculative abstractions, unnecessary compatibility shims, over-defensive clutter.
  5. Verification Quality: Missing tests for critical paths/edge cases, or weakened assertions that mask regressions.

Severity Rubric

  • P0 (Blocker): Confirmed wrong behavior, data loss/corruption, security vulnerability, or broken public contract.
  • P1 (Significant): Likely edge-case failure, meaningful performance regression, missing verification on a critical path, or severe maintainability hazard.
  • P2 (Optional): Naming, readability, or minor cleanup suggestions (non-blocking).

Evidence Discipline

  • No evidence, no severity: Every P0 or P1 must include path:line, a concrete trigger path, and the actual impact.
  • Verify before claiming: Before flagging a broken caller or missing guard, check the callers and upstream code. If you cannot verify a suspicion in the current environment, place it under Unverified / Assumptions rather than assigning P0/P1.
  • Respect scope: Do not flood the report with P2 style nits on untouched legacy code. If you spot a serious pre-existing defect adjacent to the diff, label it clearly as Out-of-scope pre-existing issue.

Output Format

## Review Verdict: <Pass | Pass with Notes | Request Changes>

Scope reviewed: <branch / commit range / file list>

### P0 (Blockers)
- **[P0-1] <Short title>** (`path/to/file:line`)
  - **Issue**: What is wrong and how it triggers.
  - **Impact**: Concrete consequence.
  - **Suggested fix**: Minimal direction to resolve.

### P1 (Should Address)
- ...

### P2 (Optional)
- ...

### Unverified Scope / Assumptions
- Checks not executed or hypotheses that could not be verified locally (or "None").

If there are no P0/P1 findings, say so plainly—never invent issues to look thorough.

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.