agentleFS
RileyCorneliusRileyCornelius/Code-Skills/skills/code-reviewing/SKILL.md

code-reviewing

Skill0 starsChanged 7 months agoMITView on GitHub

Review code changes for correctness, regressions, security, maintainability, test coverage, and production readiness. Use when asked to review a PR, audit a diff, look for bugs or risks, assess merge readiness, or do a final pass after a substantial implementation.

6 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-writing, infrastructure-setup and 2 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.
  • stepanenkoviktor0110-boopSkill

    code-writing

    Universal quality coding process: plan, TDD, reviews. Use whenever code needs to be written — ad-hoc or as part of a task.

    Also in 3 projects that use this

  • stepanenkoviktor0110-boopSkill

    infrastructure-setup

    Sets up dev infrastructure for new projects: framework init, folder structure, Docker, pre-commit hooks (gitleaks), testing infrastructure, .gitignore.

    Also in 3 projects that use this

  • nilecuiSkill

    documentation-writing

    Writing clear, discoverable software documentation following the Eight Rules and Diataxis framework. Use when creating README files, API docs, tutorials, how-to guides, or any project documentation. Automatically enforces docs/ location, linking requirements, and runnable examples.

    Also in 3 projects that use this

  • +1 more from stepanenkoviktor0110-boop

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    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:

    Check correctness, code quality, architecture, and testing

    line 13
  2. Distinctive:

    All plan requirements met?

    line 39
  3. Distinctive:

    Prefer findings over praise

    line 90
  4. Distinctive:

    Avoid giving a clear verdict

    line 99

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

Review code changes for production readiness.

Prioritize concrete findings over summary. Focus first on bugs, regressions, unsafe assumptions, and missing tests.

Your task:

  1. Check correctness, code quality, architecture, and testing
  2. Categorize issues by severity
  3. Assess production readiness

Review Checklist

Code Quality:

  • Clean separation of concerns?
  • Proper error handling?
  • Type safety (if applicable)?
  • DRY principle followed?
  • Edge cases handled?

Architecture:

  • Sound design decisions?
  • Scalability considerations?
  • Performance implications?
  • Security concerns?

Testing:

  • Tests actually test logic (not mocks)?
  • Edge cases covered?
  • Integration tests where needed?
  • All tests passing?

Requirements:

  • All plan requirements met?
  • Implementation matches spec?
  • No scope creep?
  • Breaking changes documented?

Production Readiness:

  • Migration strategy (if schema changes)?
  • Backward compatibility considered?
  • Documentation complete?
  • No obvious bugs?

Output Format

Strengths

[What's well done? Be specific.]

Issues

Critical (Must Fix)

[Bugs, security issues, data loss risks, broken functionality]

Important (Should Fix)

[Architecture problems, missing features, poor error handling, test gaps]

Minor (Nice to Have)

[Code style, optimization opportunities, documentation improvements]

For each issue:

  • File:line reference
  • What's wrong
  • Why it matters
  • How to fix (if not obvious)

Recommendations

[Improvements for code quality, architecture, or process]

Open Questions

[Questions or assumptions that materially affect the review]

Assessment

Ready to merge? [Yes/No/With fixes]

Reasoning: [Technical assessment in 1-2 sentences]

Critical Rules

DO:

  • Categorize by actual severity (not everything is Critical)
  • Be specific (file:line, not vague)
  • Explain WHY issues matter
  • Prefer findings over praise
  • Acknowledge strengths
  • Give clear verdict

DON'T:

  • Say "looks good" without checking
  • Mark nitpicks as Critical
  • Give feedback on code you didn't review
  • Be vague ("improve error handling")
  • Avoid giving a clear verdict

Example Output

### Strengths
- Clean database schema with proper migrations (db.ts:15-42)
- Comprehensive test coverage (18 tests, all edge cases)
- Good error handling with fallbacks (summarizer.ts:85-92)

### Issues

#### Important
1. **Missing help text in CLI wrapper**
   - File: index-conversations:1-31
   - Issue: No --help flag, users won't discover --concurrency
   - Fix: Add --help case with usage examples

2. **Date validation missing**
   - File: search.ts:25-27
   - Issue: Invalid dates silently return no results
   - Fix: Validate ISO format, throw error with example

#### Minor
1. **Progress indicators**
   - File: indexer.ts:130
   - Issue: No "X of Y" counter for long operations
   - Impact: Users don't know how long to wait

### Recommendations
- Add progress reporting for user experience
- Consider config file for excluded projects (portability)

### Assessment

**Ready to merge?** With fixes

**Reasoning:** Core implementation is solid with good architecture and tests. Important issues are easily fixed and don't affect core functionality.

Red Flags

Never:

  • Skip review because "it's simple"
  • Ignore Critical issues
  • Proceed with unfixed Important issues
  • Argue with valid technical feedback

If reviewer wrong:

  • Push back with technical reasoning
  • Show code/tests that prove it works
  • Request clarification

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.