agentleFS
Sagargupta16Sagargupta16/craftsmanship/skills/review/SKILL.md

review

Skill2 starsChanged 31 days agoMITView on GitHub

Use when reviewing code changes, examining PRs, or checking your own work before submitting. Covers what to look for (correctness, security, performance, style), how to review systematically, and how to give actionable feedback.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images 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.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 7

    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:

    Do tests actually test behavior, not implementation details?

    line 43
  2. Distinctive:

    Do existing tests still pass?

    line 45
  3. Distinctive:

    Don't nitpick on whitespace or import order in review comments

    line 49
  4. Distinctive:

    Before marking your own PR ready:

    line 108
  5. Distinctive:

    Read the comments already left -- don't duplicate

    line 144
  6. Distinctive:

    Check CI status -- is the author already fixing things?

    line 145
  7. Distinctive:

    Check how far behind the base branch -- outdated PRs may need rebase first

    line 146

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

What to Look For

Review in this priority order:

1. Correctness (highest priority)

  • Does the code do what the PR description claims?
  • Are there off-by-one errors, null/undefined cases, race conditions?
  • Does it handle errors properly?
  • Are edge cases covered (empty arrays, zero, negative, very large)?
  • Does it break existing behavior?

2. Security

  • Is user input validated at trust boundaries?
  • Are queries parameterized (no SQL injection)?
  • Is output encoded (no XSS)?
  • Are secrets absent from code and logs?
  • Are authentication/authorization checks in place?
  • Are dependencies up to date and trusted?

3. Performance

  • Are there N+1 queries?
  • Is pagination used for list endpoints?
  • Are loops doing synchronous I/O?
  • Any unnecessary re-computation or re-renders?
  • Are caches invalidated correctly?

4. Maintainability

  • Does the code match existing patterns in the codebase?
  • Are names clear and specific?
  • Is complexity proportional to the problem?
  • Are comments explaining WHY (not WHAT)?
  • Is there duplicated logic that should be extracted?

5. Testing

  • Are there tests for the new behavior?
  • Do tests actually test behavior, not implementation details?
  • Are both happy path AND error cases covered?
  • Do existing tests still pass?

6. Style (lowest priority, automated)

  • Let linters/formatters handle this
  • Don't nitpick on whitespace or import order in review comments

How to Review Systematically

1. Read the PR description -- what is this trying to do?
2. Check the test diff first -- does the tested behavior match the description?
3. Read the implementation diff
4. Run the code locally if the change is significant
5. Check CI status -- what's passing/failing?
6. Consider: how would this break in production?
7. Write comments grouped by severity

Giving Good Feedback

Categories of Comments

TagMeaningExample
blocking:Must fix before mergeblocking: SQL injection in line 42
needs-discussion:Design concern worth debatingneeds-discussion: should we use JWT or sessions?
suggestion:Optional improvementsuggestion: this could use Array.flatMap
nit:Trivial / stylisticnit: typo in comment
question:Asking to understandquestion: why did we choose this approach?
praise:Call out good workpraise: nice error handling here

What Makes a Good Comment

blocking: SQL injection risk in `getUserByEmail`

The query uses string concatenation:
```
db.query(`SELECT * FROM users WHERE email = '${email}'`)
```

Use parameterized queries instead:
```
db.query('SELECT * FROM users WHERE email = $1', [email])
```

This prevents attackers from injecting SQL via crafted email values.

Good comments:

  • State the problem
  • Explain the impact
  • Suggest a specific fix
  • Link to docs or examples if helpful

Bad comments:

  • "This is wrong" (no explanation)
  • "I don't like this" (not actionable)
  • Demanding changes without explaining why
  • Restating what the code does

Self-Review Before Submitting

Before marking your own PR ready:

CheckWhy
Re-read your own diffCatches obvious issues
Run the feature end-to-endVerifies it actually works
Remove debug logs, commented code, TODOsClean up
Update or add testsBehavior without tests is untested
Update docs if behavior changedFuture-you will forget
Check for secrets in diffLast chance to catch them
Write a clear PR descriptionReviewers need context

PR Description Template

## Summary
One sentence: what does this PR do?

## Why
The motivation / context / ticket link.

## Changes
- Bullet list of key changes
- Include new dependencies
- Flag breaking changes

## Testing
How was this tested? Include screenshots/logs for UI/output changes.

## Notes for Reviewer
Anything non-obvious? Trade-offs made? Open questions?

Reviewing Others' PRs

Before leaving comments:

  1. Read the comments already left -- don't duplicate
  2. Check CI status -- is the author already fixing things?
  3. Check how far behind the base branch -- outdated PRs may need rebase first
  4. Assume good intent -- ask questions before assuming mistakes

Anti-Patterns

Anti-PatternProblemDo Instead
Rubber-stamping without readingBugs ship to productionActually review the code
Reviewing only lines shown in diffMiss broken callersCheck related files too
Nit-picking styleWastes time, demoralizesLet linters handle style
Blocking on opinion disagreementsGridlockDistinguish blocking from suggestion
Vague comments ("this is bad")Author can't actState problem + impact + fix
Approving while CI is redMerges broken codeWait for CI green
Reviewing while tiredMiss obvious bugsBatch reviews, review fresh

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.