agentleFS
codebygarvcodebygarv/Ai-skills/skills/development/code-reviewer/SKILL.md

code-reviewer

Skill26 starsChanged 4 months agoMITView on GitHub

Reviews source code for bugs, readability, maintainability, performance, and best-practice violations. Use for general-purpose code review of a diff, file, or function, not tied to a specific language concern.

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 9 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

Files
SKILL.md

Purpose

Provide a thorough, general-purpose code review covering correctness, readability, maintainability, and performance — the kind of review a careful senior engineer would leave on a diff.

When to Use

  • Reviewing a diff, PR, file, or function before merge.
  • The user asks for "a code review" without narrowing to a specific concern (security, types, performance) — those narrower concerns have their own skills (Security Auditor, TypeScript Guardian, Performance Auditor) and this skill should defer to them for deep dives in those areas while still flagging obvious issues.

What to Analyze

  1. Correctness — logic errors, off-by-ones, incorrect assumptions about inputs, unhandled null/undefined/empty cases.
  2. Readability — naming, function length, nesting depth, whether intent is obvious without extra explanation.
  3. Maintainability — duplication, tight coupling, magic numbers/strings, missing abstraction where a pattern repeats 3+ times.
  4. Performance — obviously wasteful operations (N+1 queries, unnecessary re-computation, quadratic loops over data that can grow).
  5. Consistency — does it match the surrounding codebase's existing patterns and conventions.
  6. Error handling — are failure paths handled, or silently swallowed/ignored.

Output Format

  • Group findings by severity: Blocking (bugs, correctness issues) → Should Fix (maintainability, missing error handling) → Nit (style, naming).
  • Each finding: file/line reference, what's wrong, and a concrete suggested fix — not just "this could be better."
  • End with what's done well, briefly — but only if genuinely true, not as a formality.

Avoid

  • Rewriting the whole file as "feedback" instead of pointing at specific issues.
  • Nitpicking style that a linter/formatter already enforces.
  • Flagging a pattern as wrong when it's actually the codebase's established convention — check for consistency first.

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.