agentleFS
hackermanishackermanhackermanishackerman/claude-skills-vault/.claude/skills/code-reviewer/SKILL.md

code-reviewer

Skill2 starsChanged 11 months agoMITView on GitHub

A comprehensive code review skill that analyzes code quality, security, performance, and best practices. Invoke this skill when: - User asks to review code or a pull request - User requests code quality analysis - User wants security or performance audit - Commands: /review, /code-review, /pr-review For each issue found: Create .claude/review-config.json to customize:

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 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.
  • 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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 111 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the checklist at checklist.md to perform a thorough review.

    line 59
  2. Very specific:

    Create .claude/review-config.json to customize:

    line 163
  3. Distinctive:

    [Low]: Use const instead of var

    line 189
  4. Distinctive:

    [Low]: Add error handling

    line 190

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

A comprehensive code review skill that analyzes code quality, security, performance, and best practices.

When to Use

Invoke this skill when:

  • User asks to review code or a pull request
  • User requests code quality analysis
  • User wants security or performance audit
  • Commands: /review, /code-review, /pr-review

Capabilities

1. Code Quality Analysis

  • Dead code detection
  • Unused imports/variables
  • Code duplication (DRY violations)
  • Complexity metrics (cyclomatic complexity)
  • Function/method length analysis
  • Naming conventions

2. Security Review

  • SQL injection vulnerabilities
  • XSS vulnerabilities
  • Command injection risks
  • Hardcoded secrets/credentials
  • Insecure dependencies
  • Authentication/authorization issues
  • Input validation gaps

3. Performance Analysis

  • N+1 query detection
  • Inefficient algorithms
  • Memory leaks
  • Unnecessary re-renders (React)
  • Bundle size concerns
  • Caching opportunities

4. Best Practices

  • SOLID principles adherence
  • Design pattern usage
  • Error handling
  • Logging practices
  • Test coverage gaps
  • Documentation completeness

Review Process

Step 1: Understand Context

1. Identify the language/framework
2. Understand the purpose of the code
3. Check for existing patterns in the codebase
4. Review any related tests

Step 2: Systematic Review

Use the checklist at checklist.md to perform a thorough review.

Step 3: Categorize Findings

SeverityDescriptionAction Required
CriticalSecurity vulnerabilities, data loss risksMust fix before merge
HighBugs, significant performance issuesShould fix before merge
MediumCode quality issues, minor bugsConsider fixing
LowStyle issues, minor improvementsOptional
InfoSuggestions, alternative approachesFor consideration

Step 4: Provide Actionable Feedback

For each issue found:

**[SEVERITY] Issue Title**
- File: `path/to/file.ts:line`
- Problem: Clear description of the issue
- Impact: What could go wrong
- Fix: Specific code suggestion or approach

Output Format

# Code Review Summary

## Overview
- Files reviewed: X
- Issues found: Y (X Critical, Y High, Z Medium)
- Recommendation: [Approve / Request Changes / Needs Discussion]

## Critical Issues
[List critical issues with fixes]

## High Priority
[List high priority issues]

## Medium Priority
[List medium priority issues]

## Low Priority & Suggestions
[List minor issues and improvements]

## Positive Observations
[Highlight good practices found]

## Summary
[Brief summary and next steps]

Language-Specific Checks

TypeScript/JavaScript

  • Type safety (any usage, type assertions)
  • Null/undefined handling
  • Async/await patterns
  • React hooks rules
  • Memory management in closures

Python

  • Type hints usage
  • Exception handling
  • Resource management (context managers)
  • Import organization
  • PEP 8 compliance

Go

  • Error handling patterns
  • Goroutine leaks
  • Race conditions
  • Interface design
  • Context propagation

Rust

  • Ownership/borrowing patterns
  • Error handling (Result/Option)
  • Unsafe block justification
  • Memory safety

Integration

With Git

# Review staged changes
git diff --cached | claude review

# Review specific commit
git show <commit> | claude review

# Review PR (with gh cli)
gh pr diff <number> | claude review

Automated Checks

The skill can integrate with:

  • ESLint/Prettier configurations
  • SonarQube rules
  • Custom linting rules
  • CI/CD pipelines

Configuration

Create .claude/review-config.json to customize:

{
  "severity_threshold": "medium",
  "ignore_patterns": ["*.test.ts", "*.spec.ts"],
  "focus_areas": ["security", "performance"],
  "custom_rules": [],
  "max_file_size": 1000
}

Examples

Example 1: Quick Review

User: Review this function for issues

function getData() {
  var data = fetch('/api/data')
  return data
}

Response: Found 3 issues:

  1. [Medium] Missing async/await - fetch returns Promise
  2. [Low] Use const instead of var
  3. [Low] Add error handling

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.