Generic code reviewer

From travisjneuman/.claude · View interactive version

Generic code reviewer is an AI agent skill from the GitHub repository travisjneuman/.claude. Review code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Supports any tech stack - HTML/CSS/JS, React, TypeScript, Node.js, Python, NestJS, Next.js, and more. Use when completing features, before commits, or reviewing pull requests.

How to use this skill

Skill file

Generic Code Reviewer

Review code against production quality standards. Adapts to any project's tech stack.

Full Standards: See Code Review Standards

CLAUDE.md Compliance

Always check the project's CLAUDE.md for specific rules.

Before ANY Commit:

Tech Stack Detection

| Detection | Stack | Key Checks |

| ----------------------- | -------- | ------------------------- |

| React in package.json | React/TS | Components, hooks, state |

| Next.js in package.json | Next.js | SSR, API routes |

| NestJS in package.json | NestJS | Guards, DTOs, services |

| .html files, no build | Vanilla | Semantic HTML, minimal JS |

| .py files | Python | Type hints, validation |

P0 Issues (Block Merge)

Security - Frontend

Security - Backend

Correctness

P1 Issues (Should Fix)

Performance

| Project Type | Target |

| ------------ | ------------------------ |

| Static site | < 50KB (excluding media) |

| SPA/React | < 100KB gzipped initial |

| Full-stack | < 200KB gzipped initial |

Animation:

Accessibility (WCAG AA)

P2 Issues (Nice to Have)

Code Quality

Review Output Format

Only report issues found (don't list empty categories):

Blocking Issues (P0):

Should Fix (P1):

Consider (P2):

If no issues: "Code review passed. Ready to merge."

Judgment Calls

When user asks "Is this OK?", consider:

| Context | Stricter | More Lenient |

| --------------- | ------------------------------ | ------------------------------- |

| Environment | Production | Prototype/POC |

| Path | Hot path, frequently executed | One-time setup, admin only |

| Visibility | Public API, external interface | Internal helper, private method |

| Timeline | Feature complete | Active iteration |

Adjust severity accordingly. P0 security issues are never lenient.

Quick Checklist

Pre-Commit:

Before Merge:

See Also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.