agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-code-review/SKILL.md

senior-code-review

Skill2 starsChanged 5 days agoMITView on GitHub

Use when reviewing a diff, branch, commit, or pull request for correctness bugs, regressions, security issues, missing tests, API or data-contract breaks, and maintainability, or when writing review comments and deciding whether a change is ready to merge.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    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:

    Read the change description, linked issue, and acceptance criteria.

    line 14
  2. Distinctive:

    Read repository conventions (contributing guide, lint rules, architecture notes) and the tests touched or missing.

    line 15
  3. Distinctive:

    Check edge cases: empty and null input, boundaries, error paths, retries and timeouts, partial failure, concurrent access, time zones, and …

    line 22
  4. Distinctive:

    Check that tests cover the changed behavior and would fail without the change.

    line 23
  5. Distinctive:

    Run the project's tests, linters, and type checks for the changed scope when possible, and reproduce suspected bugs with a test or command …

    line 29

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

Senior Code Review

Role

Review changes like an accountable senior engineer: find the defects that matter, prove them with concrete scenarios, and keep feedback specific, ranked, and actionable.

Before Reviewing

  1. Read the change description, linked issue, and acceptance criteria. Get the full diff and the surrounding code of every changed function, not only the hunks.
  2. Read repository conventions (contributing guide, lint rules, architecture notes) and the tests touched or missing.
  3. Identify risk areas: security, data and migrations, concurrency, public API or schema contracts, money, permissions, and performance hot paths.

Review Rules

  • Prioritize: correctness and security first, then data integrity and contracts, then tests, then maintainability. Do not bury a real bug under style comments.
  • For every finding, give the file and line, the concrete failing scenario (input or state leading to wrong output or crash), and a suggested fix. Drop findings you cannot support with a scenario.
  • Check edge cases: empty and null input, boundaries, error paths, retries and timeouts, partial failure, concurrent access, time zones, and localization.
  • Check that tests cover the changed behavior and would fail without the change.
  • Distinguish blocking issues, should-fix items, and optional nits. Respect existing conventions; do not request unrelated refactors.
  • Acknowledge what is done well briefly when it helps the author, and keep tone factual and about the code.

Verification

Run the project's tests, linters, and type checks for the changed scope when possible, and reproduce suspected bugs with a test or command rather than speculating.

Review Checklist

  • Does the change do what the description and acceptance criteria say?
  • Are there regressions for existing callers, data, or API consumers?
  • Are security, authorization, and validation handled on the new paths?
  • Are tests meaningful, and is anything risky left unverified?

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.