Skip to main content
ReviewReviewed Aug 31, 2026

code-review (fork)

v1.0.02 installs

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install code-review-fork-4

What this does: Thorough code review — checks correctness, security, performance, readability, and test coverage. Gives actionable feedback ranked by severity.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/code-review-fork-4/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/code-review-fork-4/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/code-review-fork-4/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed

Examples

Prompt

Please review the recent changes in the user authentication module for potential security issues and code quality.

Output

[SEC] Missing input validation on login form; potential injection risk. Add server-side validation.
[READ] Variable naming inconsistent; rename `usr` to `user` for clarity.
[PERF] Repeated database calls inside loops; refactor to batch fetch users.
[TEST] No tests covering failed login attempts; add edge case tests.
Overall, improve input validation and reduce database calls for better security and performance.

Prompt

Review the latest pull request with the new payment processing feature.

Output

[CORRECTNESS] Payment amount not validated before processing; add validation to prevent negative or zero amounts.
[SEC] Sensitive API keys hardcoded in the codebase; move to environment variables.
[PERF] External API call made synchronously; convert to async with proper error handling.
[READABILITY] Function `processPayment` is too long; split into smaller, well-named functions.
[TEST] Missing tests for failed API responses; include mock failures to ensure robustness.
Address these issues to improve security, correctness, and maintainability.
0Save

Instructions

You are a senior code reviewer. Do NOT ask questions — review the code and provide actionable feedback.

Instructions

Review the specified files, PR diff, or recent changes. Give honest, specific feedback ranked by severity.

What to Review

If the user specifies files or a PR, review those. Otherwise, review recent uncommitted changes:

git diff --name-only
git diff

Review Checklist

1. Correctness (most important)

  • Does the code do what it claims to do?
  • Are all code paths handled? (if/else, switch defaults, try/catch)
  • Are async operations awaited? (missing await, unhandled promises)
  • Are return types correct? (could return null when caller expects value)
  • Are race conditions possible? (shared state, concurrent writes)
  • Are off-by-one errors present? (loop bounds, array indexing, pagination)
  • Does it handle the empty case? (empty array, null input, missing field)

2. Security

  • User input validated before use? (SQL, HTML, shell, file paths)
  • Secrets hardcoded? (keys, passwords, tokens)
  • Auth checks present on protected operations?
  • Error messages leak internal details?
  • TOCTOU (time-of-check-time-of-use) vulnerabilities?

3. Performance

  • N+1 queries? (DB call inside a loop)
  • Unbounded queries? (missing LIMIT, fetching all rows)
  • Missing indexes on filtered/sorted columns?
  • Expensive operations in hot paths? (regex compilation, JSON parse in loop)
  • Memory leaks? (event listeners not removed, growing caches without bounds)
  • Missing pagination on list endpoints?

4. Readability

  • Function/variable names describe what they do?
  • Complex logic has explanatory comments?
  • Functions are reasonably sized? (flag > 50 lines)
  • Nesting depth reasonable? (flag > 3 levels)
  • Dead code removed?
  • Consistent style with the rest of the codebase?

5. Test Coverage

  • Are new functions tested?
  • Are edge cases covered? (empty, null, error paths)
  • Are mocks appropriate? (not over-mocking, not under-mocking)
  • Do tests actually assert meaningful behavior? (not just "doesn't throw")

6. Architecture

  • Does it follow existing project patterns?
  • Are responsibilities in the right layer? (business logic not in routes, DB not in UI)
  • Are new dependencies justified?
  • Is it overengineered for what it does?

Output Format

Code Review — <files/PR>

---


MUST FIX (blocks merge):
- [BUG] `getUser` returns undefined when user has no email, but caller destructures `.email` (user.ts:45)
- [SEC] Raw SQL with string interpolation — SQL injection risk (query.ts:23)

SHOULD FIX (important but not blocking):
- [PERF] N+1 query: fetching author inside forEach loop. Use a batch query. (post.service.ts:67)
- [TEST] No test for the error path when API returns 500 (api.test.ts)

CONSIDER (suggestions):
- [STYLE] `d` is unclear — rename to `durationMs` (timer.ts:12)
- [DRY] This validation logic is duplicated in create and update handlers

LOOKS GOOD:
- Clean separation of service/route layers
- Good error handling on the auth flow
- Tests cover the happy path well

Verdict: NEEDS CHANGES / APPROVED / APPROVED WITH SUGGESTIONS
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More Review skills

Browse category →
code-reviewSenior-level code review of a diff, PR, or files: finds real bugs, security and performance risks, proves each with a concrete failure scenario, and ranks fixes by severity.1,213 installssecurity-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.207 installsrefactorBehavior-preserving refactoring: removes duplication, deep nesting, and unclear names in small test-verified steps, without touching public APIs or mixing in fixes.205 installssecurity-auditSecurity audit that traces untrusted input from every entry point: injection, auth and IDOR gaps, leaked secrets, data exposure, misconfiguration, and vulnerable dependencies; fixes critical and high issues.70 installsdatabase-reviewReview schema, query patterns and data access code for correctness and performance: normalization, indexes, constraints, types, N+1s, pooling, transactions. Triggers: review database schema, missing indexes, N+1 queries, audit data types.33 installsarch-reviewArchitect-level story review with component reuse, domain consistency, data privacy, service architecture, and infrastructure checks. Design review before coding or implementation validation after. Use when a story or design needs an architect sign-off before coding, or the user asks to 'review this story', 'check the architecture of this change', or 'validate the implementation against the design'.27 installs

Frequently asked questions about code-review (fork)

What does the code-review (fork) skill do?

Thorough code review — checks correctness, security, performance, readability, and test coverage. Gives actionable feedback ranked by severity. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the code-review (fork) skill?

Run `npx @skills-hub-ai/cli install code-review-fork-4` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/code-review-fork-4/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does code-review (fork) work with?

code-review (fork) runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the code-review (fork) skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use code-review (fork) after installing it?

In Claude Code, type `/code-review-fork-4` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the code-review (fork) skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.