From brnby
Perform a comprehensive code review of current uncommitted changes in a git repository. Analyzes for bugs, security vulnerabilities, best practices, DRY violations, code smells, performance issues, and areas of improvement. Use when: review changes, code review, check my code, review diff, pre-commit review, PR review, quality check. Works with any language or framework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/brnby:code-changes-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Perform a thorough, professional code review of uncommitted changes in the current git working copy.
Perform a thorough, professional code review of uncommitted changes in the current git working copy.
This skill analyzes all staged and unstaged changes, providing actionable feedback across multiple quality dimensions:
First, collect all changes to be reviewed:
# Check repository status
git status
# Get the full diff of all changes (staged + unstaged)
git diff HEAD
# If only staged changes should be reviewed
git diff --cached
Important: Review BOTH staged and unstaged changes unless the user specifically requests otherwise.
Before reviewing changes, understand the broader context:
git log -5 --oneline for contextFor each modified file, evaluate against the Review Checklist:
Organize findings by severity and category:
## Code Review Summary
**Scope**: [X files changed, Y insertions, Z deletions]
**Overall Assessment**: [Brief summary]
---
### Critical Issues (Must Fix)
These issues must be resolved before merging:
1. **[SECURITY]** `path/to/file.js:42` - SQL injection vulnerability
- **Problem**: User input directly interpolated into query
- **Fix**: Use parameterized query with `db.query(sql, [param])`
2. **[BUG]** `path/to/file.py:87` - Off-by-one error in loop
- **Problem**: Loop iterates one extra time causing IndexError
- **Fix**: Change `range(len(items) + 1)` to `range(len(items))`
---
### Important Issues (Should Fix)
These issues should be addressed:
1. **[PERFORMANCE]** `path/to/file.ts:23` - N+1 query in loop
- **Problem**: Database query inside forEach loop
- **Suggestion**: Batch fetch with single query using `IN` clause
---
### Suggestions (Nice to Have)
These are recommendations for improvement:
1. **[DRY]** `path/to/utils.js:15-30` - Duplicated validation logic
- **Current**: Same email regex in 3 places
- **Suggestion**: Extract to shared `validateEmail()` function
---
### Positive Observations
Good practices noticed in this change:
- Proper error handling with specific error types
- Clear function naming following conventions
- Comprehensive input validation on API endpoints
For each issue:
End with:
| Level | Label | Description | Action |
|---|---|---|---|
| Critical | [CRITICAL] | Security vulnerabilities, data loss, crashes | Must fix before merge |
| Bug | [BUG] | Incorrect behavior, logic errors | Must fix |
| Security | [SECURITY] | Potential security issues | Must fix |
| Performance | [PERFORMANCE] | Significant performance impact | Should fix |
| Warning | [WARNING] | Code smells, potential issues | Should fix |
| DRY | [DRY] | Duplication, reusability | Consider fixing |
| Style | [STYLE] | Conventions, formatting | Nice to have |
| Suggestion | [SUGGESTION] | Improvements, alternatives | Nice to have |
| Positive | [POSITIVE] | Good practices observed | Acknowledgment |
=== vs ==Focus on critical and important issues:
--thorough)Complete analysis including:
--security)Deep dive into security:
--performance)Focus on efficiency:
For automated reviews, output can be formatted as:
# JSON format for CI integration
--format json
# GitHub-compatible annotations
--format github
# GitLab-compatible notes
--format gitlab
User: Review my changes
Response: [Full review following the structure above]
User: Review my changes focusing on security
Response: [Security-focused review with OWASP considerations]
User: Quick review before I commit
Response: [Quick review highlighting only critical/important issues]
npx claudepluginhub yorch/claude-skills --plugin brnbyProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.