agentleFS
michael-muirmichael-muir/agentic-dev-kit/skills/independent-review/SKILL.md

independent-review

Skill1 starsChanged 15 days agoMITView on GitHub

Use when reviewing a diff as spec-reviewer or standards-reviewer, for an isolated single-lens review with restricted inputs, cited findings, a severity scale, and a built-in code-smell baseline.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-review.

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.
  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    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:

    Pin the range: Use git diff <base>...HEAD (three dots, so it's measured from the merge-base) and git log <base>..HEAD --oneline.

    line 14
  2. Distinctive:

    Done when: every changed file was looked at, and every finding has all three.

    line 22
  3. Distinctive:

    Report your lens only: Keep the other lens out, and compare severity only within your lens.

    line 27

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

Independent review

Each review looks through one lens, in a fresh context, with restricted inputs. Running two lenses separately means a clean result on one can't hide a failure on the other. Code can follow every standard and still build the wrong thing, or build the right thing and break every convention.

Common steps

  1. Pin the range. Use git diff <base>...HEAD (three dots, so it's measured from the merge-base) and git log <base>..HEAD --oneline. Confirm the diff isn't empty. Done when: the base, the HEAD sha and the file count are recorded at the top of your findings.
  2. Read only your lens's inputs (listed in your role file). Use no implementer reasoning, and no other reviewer's output.
  3. Review hunk by hunk. Each finding cites a location (path:line), the rule or spec line it breaks (quoted), and the evidence (a quoted hunk, a failing test, or a command and its output). Done when: every changed file was looked at, and every finding has all three.
  4. Classify each finding with the findings template's severities: critical, major, minor, judgement. A judgement call is never major.
  5. Verdict. changes-requested if any critical or major finding exists; needs-human if the right answer depends on a decision nobody has made; otherwise pass.
  6. Report your lens only. Keep the other lens out, and compare severity only within your lens.

Spec lens (spec-reviewer)

Look for:

  • Missing or partial: an AC with no implementation, or one that covers only some of its cases.
  • Wrong: it looks implemented, but behaves differently from the AC on some input. Show the input.
  • Unproven: a test that names the AC but would still pass if the behaviour were removed.
  • Unrequested: behaviour that no AC or non-goal covers (scope creep).
  • Spec gaps: cases the spec doesn't decide, which come out as needs-human.

Standards lens (standards-reviewer)

Sources, in priority order: the project's CODING_STANDARDS.md and contributor docs, then the ADRs and the glossary, then the baseline below. A documented project rule overrides the baseline. Skip what the gate's linters already enforce.

Baseline smells. Each is always a judgement, never a hard violation:

SmellWhat it looks likeUsual direction
Unclear nameName doesn't say what it is, or uses a word the glossary says to avoidRename with the glossary term
DuplicationThe same logic in two or more places in the diff, or copied from existing codeExtract once, call twice
Long functionOne function doing several things you'd describe with "and"Split by step
Long parameter listMore than about 4 parameters, or parameters that always travel togetherIntroduce a parameter object
Primitive obsessionDomain concepts passed as bare strings or ints (ids, money, units)A small type
Feature envyA function mostly using another module's dataMove the behaviour to the data
Shotgun surgeryOne conceptual change needing edits in many unrelated placesGather the responsibility
Leaky abstractionCallers must know internals to use an interface correctlyDeepen the module, and narrow the interface
Speculative generalityOptions, hooks or layers no test or AC needsDelete until needed
Dead codeUnreachable branches, unused exports, commented-out blocksDelete
Hidden side effectA function whose name suggests a query but which mutates state or does I/OSeparate query from command, or rename
Inconsistent errorsMixed error styles: exceptions, codes, silent nulls, printingFollow the project's documented style
Magic valuesUnexplained literals, especially units, limits and timeoutsA named constant with its unit

Mechanical issues (formatting, import order, a banned API) are tagged automatable, so the retro agent can turn them into a check.

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.