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.
How do I install this agent skill?
npx skills add https://github.com/coleam00/skills --skill piv-review-changesIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill facilitates technical code reviews by identifying changed files via git and analyzing their content. It operates locally, reading codebase files and writing reports to a specific directory. The analysis identifies a minor risk associated with processing untrusted file content.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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:
-
Logic Errors
- Off-by-one errors
- Incorrect conditionals
- Missing error handling
- Race conditions
-
Security Issues
- SQL injection vulnerabilities
- XSS vulnerabilities
- Insecure data handling
- Exposed secrets or API keys
-
Performance Problems
- N+1 queries
- Inefficient algorithms
- Memory leaks
- Unnecessary computations
-
Code Quality
- Violations of DRY principle
- Overly complex functions
- Poor naming
- Missing type hints/annotations
-
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/coleam00/skills/piv-review-changes">View piv-review-changes on skillZs</a>