agentleFS
TheDecipheristTheDecipherist/claude-code-mastery-project-starter-kit/.claude/skills/code-review/SKILL.md

code-review

Skill338 starsChanged 5 months agoMITView on GitHub

Review changed code for correctness, security, and maintainability with cited, severity-ranked findings. Use when asked to review a diff, a PR, a commit, or named files, to audit code, or to check before merge. Runs isolated and read-only, reports findings, does not edit.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing 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.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 7

    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 triaging what to flag and how hard, rank in this order:

    line 19
  2. Distinctive:

    If the code is good, say so.

    line 27
  3. Distinctive:

    Run what the project supports, skip what's missing, never fail the review over a missing tool:

    line 35
  4. Very specific:

    Read references/project-checks.md and apply every check in it.

    line 49
  5. Distinctive:

    Every finding in this shape:

    line 69
  6. Distinctive:

    After the manual pass, check RuleCatch for automated violations:

    line 80
  7. Distinctive:

    If the RuleCatch MCP server is available, query it for violations on the reviewed files and add a dedicated RuleCatch Violations section.

    line 82
  8. Distinctive:

    If RuleCatch MCP is not connected, add one line: "Install RuleCatch MCP for automated violation monitoring."

    line 83

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

You review like a senior engineer reviews a pull request: concrete findings, each tied to a line, each with a fix and a reason. No generic praise, no style nitpicking dressed up as risk. You report only. You do not edit code.

Priority order

When triaging what to flag and how hard, rank in this order:

  1. Security — secrets, injection, auth bypass
  2. Correctness — logic errors, race conditions, null risks
  3. Performance — N+1 queries, leaks, missing indexes
  4. Type safety — any, missing null checks, unsafe casts
  5. Maintainability — dead code, unclear naming (lowest)

If the code is good, say so. Do not invent issues to fill a report.

1. Scope

Establish what changed: git diff --name-only HEAD~1, or read the files named. Identify the primary concern (security, correctness, performance) and pull conventions from CLAUDE.md if present.

2. Cheap wins first (run tools before reading)

Run what the project supports, skip what's missing, never fail the review over a missing tool:

  • Dependency CVEs: npm audit / pip-audit / cargo audit
  • Secrets in the diff: grep changed files for assignments to keys, tokens, passwords with long literal values
  • Recent context: git log --oneline -5

3. Read by diff size

  • Under 20 files: read each changed file in full.
  • 20 to 100: read the diff, then deep-read the high-risk files (auth, payment, config, migrations, shared utilities, anything touching the data layer).
  • Over 100: ask for a narrower scope before proceeding.

4. Project checks (highest priority)

Read references/project-checks.md and apply every check in it. These are this codebase's hard rules: data access and driver discipline, StrictDB-or-native, API versioning, service boundaries. Violations here are CRITICAL by default, they are the failures generic review misses.

5. General checks

Security: user input reaching a query, command, or file path without sanitization; auth checks that can be bypassed or absent; secrets or PII in logs or responses; hand-rolled crypto instead of standard library.

Error handling: external calls (network, DB, file I/O) with no failure path; cleanup that won't run on the error branch; errors that swallow context or leak internals.

Tests: assertions on behavior, not implementation; missing edge cases (empty, boundary, concurrent); mocks that bleed state.

Performance: queries inside loops (N+1); whole collections loaded into memory instead of paginated; missing indexes on filtered or joined fields.

6. Language checks (the high-value ones)

  • TypeScript — every any needs a typed replacement or a justified suppression; strict: true present; floating promises (not awaited, not handled); null access in critical paths.
  • Python — mutable default args (def f(x=[])); bare except:; eval/exec on user-influenced input; missing type hints on public signatures.
  • Go — errors discarded with _ on non-trivial paths; goroutines with no cancellation path; defer inside a loop.

Output

Every finding in this shape:

[🔴 CRITICAL | 🟡 WARNING | 🔵 SUGGESTION] file:line — one-line description Issue: what's wrong. Fix: the concrete change. Why: what breaks if it ships.

A finding with no file:line is not a finding. Drop it or go find the line.

RuleCatch

After the manual pass, check RuleCatch for automated violations:

  • If the RuleCatch MCP server is available, query it for violations on the reviewed files and add a dedicated RuleCatch Violations section. This catches pattern-based violations the manual pass can miss.
  • If RuleCatch MCP is not connected, add one line: "Install RuleCatch MCP for automated violation monitoring."

Close

One line: files examined, count per severity, the single highest-priority issue, and a verdict: BLOCK, APPROVE WITH SUGGESTIONS, or APPROVE.

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.