agentleFS
jakubsuplickijakubsuplicki/codument/skills/code-reviewer/SKILL.md

code-reviewer

Skill48 starsChanged 40 days agoApache-2.0View on GitHub

Perform thorough code reviews of a diff or set of files: correctness, security, performance, architecture fit, and tests, reported by severity. Covers TypeScript, JavaScript, Python, Go, Swift, and Kotlin, and the checks apply to any language. Use whenever the user asks to review a PR or diff, audit code quality, or check for bugs or security issues. Do NOT use for reviewing an entire codebase feature-by-feature or as a whole-project / multi-feature audit (use review-codebase), or for greenfield architecture design (use senior-architect).

182 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use git-doc-updater, git-precommit 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.
  • 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 5 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 5 projects that use this

  • JeffallanSkill

    shopify-expert

    Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing Shopify apps, implementing checkout UI extensions or Shopify Functions, optimizing performance, or integrating third-party services. Invoke for Liquid templating, Storefront API, app development, checkout customization, Shopify Plus features, App Bridge, Polaris, or Shopify CLI workflows.

    Also in 5 projects that use this

  • JeffallanSkill

    spec-miner

    Reverse-engineering specialist that extracts specifications from existing codebases. Use when working with legacy or undocumented systems, inherited projects, or old codebases with no documentation. Invoke to map code dependencies, generate API documentation from source, identify undocumented business logic, figure out what code does, or create architecture documentation from implementation. Trigger phrases: reverse engineer, old codebase, no docs, no documentation, figure out how this works, inherited project, legacy analysis, code archaeology, undocumented features.

    Also in 6 projects that use this

  • +4 more from u9401066
  • +4 more from Jeffallan

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 155 edited versions we read keep these.

  • 6

    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. Distinctive:

    When reviewing code, follow this structured process:

    line 15
  2. Distinctive:

    Read all changed files completely before writing any feedback.

    line 19
  3. Distinctive:

    Do tests verify behavior, not implementation?

    line 55
  4. Distinctive:

    Never nitpick formatting if a linter/formatter exists

    line 94
  5. Distinctive:

    Don't suggest adding features beyond the scope of the change

    line 95
  6. Distinctive:

    If the code is good, say so — don't manufacture issues

    line 96
  7. Very specific:

    After making any code changes, run codument context --file <path> --owner to find the owning doc — one line, not a read of the whole …

    line 98

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

Code Review

When reviewing code, follow this structured process:

1. Read First, Judge Second

Read all changed files completely before writing any feedback. Understand the intent and context before critiquing details.

2. Categorize Findings by Severity

  • Critical — Security vulnerabilities, data loss risks, correctness bugs
  • High — Performance issues that will bite in production, error handling gaps, race conditions
  • Medium — API design issues, missing validation at system boundaries, type safety gaps
  • Low — Style inconsistencies, naming, minor readability improvements

3. What to Check

Correctness

  • Does the code do what it claims to do?
  • Are edge cases handled (null, empty, boundary values)?
  • Are error paths tested and recoverable?

Security

  • Input validation at system boundaries (user input, external APIs)
  • SQL injection, XSS, command injection risks
  • Secrets or credentials in code
  • Dependency vulnerabilities

Architecture

  • Does this change belong in this module?
  • Are the abstractions at the right level?
  • Will this be maintainable in 6 months?
  • Does it follow the existing patterns in the codebase?

Performance

  • O(n²) or worse in hot paths?
  • Unbounded queries or collections?
  • Missing indexes on queried fields?
  • Unnecessary allocations in loops?

Testing

  • Are the critical paths covered?
  • Do tests verify behavior, not implementation?
  • Are edge cases and error paths tested?

4. How to Give Feedback

  • Lead with the specific file and line
  • State what the issue is, not just that there is one
  • Explain WHY it matters, not just that it's wrong
  • Suggest a fix when possible
  • Distinguish between "must fix" and "consider changing"

5. Output Format

## Code Review: [component/feature name]

**Overall Assessment**: [Good | Needs Work | Critical Issues] — one sentence summary

### Critical Issues
[numbered list or "None found"]

### High Priority
[numbered list with file:line references]

### Medium Priority
[numbered list]

### Low Priority
[numbered list]

### Architecture Positives
[what's done well — always include this]

### Recommended Priorities
[ordered list of what to fix first]

Rules

  • Never nitpick formatting if a linter/formatter exists
  • Don't suggest adding features beyond the scope of the change
  • If the code is good, say so — don't manufacture issues
  • One real bug is worth more than ten style comments
  • After making any code changes, run codument context --file <path> --owner to find the owning doc — one line, not a read of the whole registry — and update it. This is part of the project's Definition of Done.

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.