Skill

review

Install
1
Install the plugin
$
npx claudepluginhub mickaelmamani/saas-toolkit --plugin saas-toolkit

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Code review with parallel subagents for thorough analysis.

Tool Access

This skill is limited to using the following tools:

ReadGrepGlobTaskBash
Skill Content

/review — Code Review

Thorough code review using parallel subagents for comprehensive analysis.

Process

1. Identify scope

Determine what to review:

  • If the user specifies files, review those files
  • If no files specified, review recent changes: git diff --name-only HEAD~1 or git diff --staged --name-only
  • Group files by domain (frontend, API, database, config)

2. Parallel review

Launch these agents in parallel as appropriate:

  • frontend-code-reviewer agent for frontend files (components, pages, hooks, styles)
  • security-reviewer agent for a comprehensive security audit across all files

For backend files, review directly for:

  • API design — RESTful conventions, proper HTTP methods, status codes
  • Error handling — proper try/catch, meaningful error messages, no swallowed errors
  • Data access — efficient queries, proper indexing hints, no N+1 patterns
  • Type safety — proper TypeScript types, no any, validated inputs with Zod

3. SaaS-specific checks

Stripe compliance

  • Webhook handlers verify signatures with constructEvent()
  • Raw body parsing (not JSON parsed)
  • Idempotent event processing
  • No price/amount trust from client
  • Secret key not exposed to client

Supabase security

  • RLS enabled on all public tables
  • getUser() used instead of getSession() for auth checks
  • Service role key only in server-side code
  • No Supabase client with service role in Client Components

Next.js patterns

  • Server Components by default (no unnecessary "use client")
  • Server Actions for mutations (not API routes)
  • next/image, next/font, next/link used consistently
  • Proper Suspense boundaries
  • Metadata API for SEO

4. Cross-cutting concerns

After individual file reviews, check:

  • Consistency — do new files follow existing patterns?
  • Missing pieces — are there missing error boundaries, loading states, or edge cases?
  • Breaking changes — could these changes break existing functionality?
  • Test coverage — are there tests for the new code? Should there be?

5. Summary

Produce a final review with:

## Code Review Summary

**Files reviewed:** X
**Overall assessment:** [Good / Needs changes / Needs significant rework]

### Production Readiness

| Dimension | Status | Notes |
|-----------|--------|-------|
| Security | PASS/FAIL | ... |
| Stripe compliance | PASS/FAIL/N/A | ... |
| Supabase security | PASS/FAIL/N/A | ... |
| Next.js patterns | PASS/FAIL | ... |
| Error handling | PASS/FAIL | ... |
| Type safety | PASS/FAIL | ... |

### Critical issues (must fix)
1. ...

### Warnings (should fix)
1. ...

### Suggestions (nice to have)
1. ...

### Positive highlights
- ...

Rules

  • Be specific — reference exact files and line numbers
  • Distinguish severity levels clearly
  • Acknowledge good code, not just problems
  • Don't nitpick style if there's a formatter configured
  • Focus on logic, security, and correctness over aesthetics
Stats
Stars0
Forks0
Last CommitFeb 11, 2026
Actions

Similar Skills

cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.4k