MCPInstall

piv-review-changes

Performs a technical code review of recently changed files for bugs, security issues, and standards compliance, then writes a report. Use before committing, as a pre-commit quality gate.

Installs
234
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/coleam00/skills --skill piv-review-changes
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads piv-review-changes automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Code Review

Perform technical code review on recently changed files.

Core Principles

Review Philosophy:

  • Simplicity is the ultimate sophistication - every line should justify its existence
  • Code is read far more often than it's written - optimize for readability
  • The best code is often the code you don't write
  • Elegance emerges from clarity of intent and economy of expression

What to Review

Start by gathering codebase context to understand the codebase standards and patterns.

Start by examining:

  • CLAUDE.md
  • README.md
  • Key files in the core module
  • Documented standards in the docs directory (and any .claude/references/ docs)

After you have a good understanding, run these commands:

git status
git diff HEAD
git diff --stat HEAD

Then check the list of new files:

git ls-files --others --exclude-standard

Read each new file in its entirety. Read each changed file in its entirety (not just the diff) to understand full context.

For each changed file or new file, analyze for:

  1. Logic Errors

    • Off-by-one errors
    • Incorrect conditionals
    • Missing error handling
    • Race conditions
  2. Security Issues

    • SQL injection vulnerabilities
    • XSS vulnerabilities
    • Insecure data handling
    • Exposed secrets or API keys
  3. Performance Problems

    • N+1 queries
    • Inefficient algorithms
    • Memory leaks
    • Unnecessary computations
  4. Code Quality

    • Violations of DRY principle
    • Overly complex functions
    • Poor naming
    • Missing type hints/annotations
  5. Adherence to Codebase Standards and Existing Patterns

    • Adherence to standards documented in the docs directory
    • Linting, typing, and formatting standards
    • Logging standards
    • Testing standards

Verify Issues Are Real

  • Run specific tests for issues found
  • Confirm type errors are legitimate
  • Validate security concerns with context

Output Format

Save a new file to .claude/code-reviews/[appropriate-name].md

Stats:

  • Files Modified: 0
  • Files Added: 0
  • Files Deleted: 0
  • New lines: 0
  • Deleted lines: 0

For each issue found:

severity: critical|high|medium|low
file: path/to/file.py
line: 42
issue: [one-line description]
detail: [explanation of why this is a problem]
suggestion: [how to fix it]

If no issues found: "Code review passed. No technical issues detected."

Important

  • Be specific (line numbers, not vague complaints)
  • Focus on real bugs, not style
  • Suggest fixes, don't just complain
  • Flag security issues as CRITICAL

FAQ

What does the piv-review-changes skill do?

Performs a technical code review of recently changed files for bugs, security issues, and standards compliance, then writes a report. Use before committing, as a pre-commit quality gate.

How do I install piv-review-changes?

Run npx skills add https://github.com/coleam00/skills --skill piv-review-changes in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/piv-review-changes/ (personal) or .claude/skills/piv-review-changes/ (project).

Which AI agents can use piv-review-changes?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is piv-review-changes safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains piv-review-changes?

It is published by coleam00 in coleam00/skills. It has 234 recorded installs.

More from coleam00/skills

View all →

prime-codebase

coleam00/skills

Open the skill to read its SKILL.md instructions.

Open the skill to read its SKILL.md instructions.

piv-implement

coleam00/skills

Open the skill to read its SKILL.md instructions.

248 installs

piv-validate

coleam00/skills

Open the skill to read its SKILL.md instructions.

247 installs

plan-architecture

coleam00/skills

Open the skill to read its SKILL.md instructions.

hooks-create

coleam00/skills

Open the skill to read its SKILL.md instructions.

240 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.