npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

code-review-agent-skill

v1.0.0

Published

Universal code review skill for Claude Code and OpenCode AI agents - SOLID, security, performance analysis

Downloads

94

Readme

Code Review Agent

Universal code review skill for Claude Code and OpenCode AI agents. Performs structured reviews with a senior engineer lens, covering SOLID principles, security, performance, and code quality.

Features

  • SOLID Principles - Detect SRP, OCP, LSP, ISP, DIP violations
  • 🔒 Security Scan - XSS, injection, SSRF, race conditions, auth gaps, secrets leakage
  • Performance - N+1 queries, CPU hotspots, missing cache, memory issues
  • 🛡️ Error Handling - Swallowed exceptions, async errors, missing boundaries
  • 📏 Boundary Conditions - Null handling, empty collections, off-by-one, numeric limits
  • 🗑️ Removal Planning - Identify dead code with safe deletion plans

Installation

Install globally via npm:

npm install -g code-review-agent

Or use npx without installation:

npx code-review-agent init --ai claude

Usage

Initialize in Your Project

Navigate to your project directory and run:

For Claude Code:

code-review-agent init --ai claude

For OpenCode:

code-review-agent init --ai opencode

This will:

  1. Create the skill directory structure (.claude/skills/code-review-expert/ or .opencode/skills/code-review-expert/)
  2. Copy all skill files and reference checklists
  3. Update CLAUDE.md or AGENTS.md with skill reference

Run Code Review

After initialization, simply run in your AI agent:

/code-review-expert

The skill will automatically review your current git changes.

Command Options

code-review-agent init [options]

Options:
  --ai <platform>   AI platform: claude or opencode (default: "claude")
  --force          Overwrite existing files
  -h, --help       Display help
  -V, --version    Display version

Workflow

  1. Preflight - Scope changes via git diff
  2. SOLID + Architecture - Check design principles
  3. Removal Candidates - Find dead/unused code
  4. Security Scan - Vulnerability detection
  5. Code Quality - Error handling, performance, boundaries
  6. Output - Findings by severity (P0-P3)
  7. Confirmation - Ask user before implementing fixes

Severity Levels

| Level | Name | Action | |-------|------|--------| | P0 | Critical | Must block merge | | P1 | High | Should fix before merge | | P2 | Medium | Fix or create follow-up | | P3 | Low | Optional improvement |

Directory Structure

After initialization, your project will have:

your-project/
├── .claude/                     # For Claude Code
│   └── skills/
│       └── code-review-expert/
│           ├── SKILL.md
│           ├── agent.yaml
│           └── references/
│               ├── solid-checklist.md
│               ├── security-checklist.md
│               ├── code-quality-checklist.md
│               └── removal-plan.md
└── CLAUDE.md                    # Updated with skill reference

# OR

your-project/
├── .opencode/                   # For OpenCode
│   └── skills/
│       └── code-review-expert/
│           ├── SKILL.md
│           ├── agent.yaml
│           └── references/
│               ├── solid-checklist.md
│               ├── security-checklist.md
│               ├── code-quality-checklist.md
│               └── removal-plan.md
└── AGENTS.md                    # Updated with skill reference

Examples

Example 1: Review with Fix

User: /code-review-expert

Agent: [Performs review, finds 3 P1 issues, 5 P2 issues]

Agent: How would you like to proceed?
1. Fix all
2. Fix P0/P1 only
3. Fix specific items
4. No changes

User: 2

Agent: [Implements fixes for P1 issues]

Example 2: Review Only

User: /code-review-expert

Agent: [Performs review, finds no critical issues]

Agent: ✅ Clean review - no blocking issues found.
Checked: SOLID, security, performance, error handling

Customization

You can customize the skill by editing the installed files:

  • SKILL.md - Modify workflow and review criteria
  • references/*.md - Add/remove checklist items
  • agent.yaml - Change display name or default prompt

Contributing

Issues and pull requests are welcome!

License

MIT

Related Projects

Support

For issues or questions:

  • File an issue on GitHub
  • Check existing documentation in the skill files