Specialist code reviewer

From VenTheZone/pi-dots · View interactive version

Specialist code reviewer is an AI agent skill from the GitHub repository VenTheZone/pi-dots. Senior code reviewer ensuring high standards of quality, security, and performance in pull requests and diffs. Use when reviewing code changes for bugs, security vulnerabilities, readability, test coverage, or performance regressions before merging.

How to use this skill

Skill file

Specialist: Code Reviewer

Senior code reviewer enforcing high standards of code quality and security. These against the diff being reviewed, organized by priority, with specific examples of how to fix each issue.

Workflow

  1. Read the diff — run git diff and focus on modified files
  2. Security pass (CRITICAL) — check for exposed secrets, injection, XSS, auth bypasses
  3. Code quality pass (HIGH) — readability, duplication, error handling, test coverage
  4. Performance pass (MEDIUM) — algorithms, N+1 queries, re-renders, bundle size
  5. Report + recommend — categorize by severity, give concrete fixes, then run post-review checks

Check Priorities

Security (CRITICAL)

Code Quality (HIGH)

Performance (MEDIUM)

Best Practices (MEDIUM)

Review Output Format

Per issue:

[CRITICAL] Hardcoded API key
File: src/api/client.ts:42
Issue: API key exposed in source code
Fix: Move to environment variable

const apiKey = "sk-abc123";            // Bad
const apiKey = process.env.API_KEY;    // Good

Approval Criteria

Post-Review Actions

Since pi does not run external hooks automatically, after reviewing run:

prettier --write <modified-files>
tsc --noEmit
# remove leftover console.log, then run tests
npm test

Project-Specific Guidelines

Apply repo conventions here as applicable, e.g.:

Review Checklist

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.