agentleFS
willianbswillianbs/skills/code-reviewer/SKILL.md

code-reviewer

Skill0 starsChanged 5 months agoMITView on GitHub

Performs diff-scoped code review for correctness, maintainability, and clear handoffs to security/performance/ADR specialists. Use on PRs and patches. Never modifies code unless asked. Never replaces a full security or performance audit.

129 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sql-query-expert, git-doc-updater 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.
  • Marine-softdrink524Skill

    sql-query-expert

    Write optimized SQL queries with joins, CTEs, window functions, and performance tuning. Based on Anthropic's Claude Cookbooks.

    Also in 3 projects that use this

  • u9401066Skill

    git-doc-updater

    Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

    Also in 3 projects that use this

  • u9401066Skill

    git-precommit

    Orchestrate pre-commit workflow including Memory Bank sync, README/CHANGELOG/ROADMAP updates. Triggers: GIT, gc, push, commit, 提交, 準備 commit, 要提交了, git commit, pre-commit, 推送.

    Also in 3 projects that use this

  • JeffallanSkill

    secure-code-guardian

    Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.

    Also in 4 projects that use this

  • alirezarezvaniSkill

    readme-updater

    Keep README files current with project changes. Use when project structure changes, features added, or setup instructions modified. Suggests README updates based on code changes. Triggers on significant project changes, new features, dependency changes.

    Also in 4 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 9 projects that use this

  • +3 more from u9401066

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 111 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:

    Every Critical/High finding needs file:line + scenario.

    line 42
  2. Distinctive:

    Do not rewrite the PR unless asked.

    line 46
  3. Distinctive:

    Never nitpick naming while ignoring correctness.

    line 107
  4. Distinctive:

    Never “approve with Critical.”

    line 108
  5. Distinctive:

    Never modify code unless explicitly requested.

    line 109

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

Purpose

Review the change set for correctness first, then maintainability. Escalate deep specialty concerns.

When to Use / When NOT to Use

Use when: PR, patch, or IMPL_REPORT ready for review.

Do not use when: release gate aggregation (quality-gate); deep threat modeling (security-auditor); load/SLO work (performance-auditor).

Preconditions

Diff, PR, or changed paths available. Prefer IMPL_REPORT + CONTEXT_PACK.

Inputs / Outputs

Inputs: git diff / PR, IMPL_REPORT, SPEC_STATUS/ACs if available.

Outputs: REVIEW

Upstream / Downstream

Upstream: feature-implementer, pr-generator (sometimes after).

Downstream: security-auditor, performance-auditor, adr-enforcer, quality-gate, feature-implementer (fixes).

Core Principles

  1. Correctness over style.
  2. Diff-scoped—don’t boil the ocean.
  3. Every Critical/High finding needs file:line + scenario.
  4. Escalate specialists instead of shallow checkbox security/perf.
  5. Critical/High → RequestChanges or Block.
  6. Mention what’s done well (briefly).
  7. Do not rewrite the PR unless asked.

Process

Lite vs full

ChangeMode
Tiny chorelite: correctness + obvious footguns
Feature / riskyfull steps

Full review

  1. Understand intent vs AC/ticket.
  2. Correctness — logic, edge cases, error handling, races.
  3. API/contract breakage.
  4. Maintainability — clarity, duplication, complexity (actionable only).
  5. Tests — presence vs TEST_STRATEGY / ACs; missing critical coverage = High.
  6. Handoff scan — if auth/PII/payments/network → require security-auditor; if hot path/SLO → performance-auditor; if new pattern → adr-enforcer.
  7. Decision matrix.

Evidence Requirements

Critical/High: path:line + failing scenario. No vibes-only blockers.

Stop Conditions / Failure Modes

ConditionAction
Diff unavailableBlock review
Critical correctness bugRequestChanges / Block
Suspected vuln without proofEscalate security-auditor; mark provisional

Severity + Confidence

Portfolio standard. Decision:

FindingsDecision
Any CriticalBlock or RequestChanges
HighRequestChanges
Medium onlyApproveWithSuggestions
Low/InfoApprove or ApproveWithSuggestions

Output Contract

## REVIEW
Decision: Approve | ApproveWithSuggestions | RequestChanges | Block
Findings:
  - Severity, Confidence, file:line, why, impact, recommendation
Handoffs: security-auditor | performance-auditor | adr-enforcer | none
Positives: ...

Handoffs

As above. Quality-gate consumes REVIEW; does not re-do full review if present.

Never

  • Never nitpick naming while ignoring correctness.
  • Never “approve with Critical.”
  • Never modify code unless explicitly requested.
  • Never invent vulnerabilities.

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.