Agent skill
code-review-expert
Structured code review checklists: SOLID, security, performance, boundary conditions, removal planning. Injected into code-reviewer agent.
Install this agent skill to your Project
npx add-skill https://github.com/rocky2431/ultra-builder-pro/tree/main/skills/code-review-expert
SKILL.md
Code Review Expert Checklists
Provides structured review workflow and reference checklists for the code-reviewer agent.
Severity Levels
| Level | Name | Description | Action |
|---|---|---|---|
| P0 | Critical | Security vulnerability, data loss risk, correctness bug | Must block merge |
| P1 | High | Logic error, significant SOLID violation, performance regression | Should fix before merge |
| P2 | Medium | Code smell, maintainability concern, minor SOLID violation | Fix in this PR or create follow-up |
| P3 | Low | Style, naming, minor suggestion | Optional improvement |
Review Workflow
Step 1: Preflight Context
- Run
git status -sb,git diff --stat, andgit diffto scope changes - Use
git diff --cachedto include staged changes - If needed, use Grep to find related modules, usages, and contracts
Edge cases:
- No changes: Inform user, ask if they want to review staged changes or a specific commit range
- Large diff (>500 lines): Summarize by file first, then review in batches by module/feature area
- Mixed concerns: Group findings by logical feature, not just file order
Step 2: SOLID + Architecture Smells
Load references/solid-checklist.md for detailed prompts.
Look for SRP/OCP/LSP/ISP/DIP violations and common code smells. When proposing refactor, explain why it improves cohesion/coupling. Non-trivial refactors get incremental plans, not large rewrites.
Step 3: Removal Candidates
Load references/removal-plan.md for template.
Identify unused, redundant, or feature-flagged-off code. Distinguish safe delete now vs defer with plan. Provide follow-up steps with concrete checkpoints.
Step 4: Security and Reliability
Load references/security-checklist.md for coverage.
Check injection, auth gaps, secrets, race conditions, crypto, supply chain. Call out both exploitability and impact.
Step 5: Code Quality
Load references/code-quality-checklist.md for coverage.
Check error handling, performance/caching, boundary conditions. Flag issues that may cause silent failures or production incidents.
Step 5.5: Integration & Connectivity
Load references/integration-checklist.md for detailed prompts.
Check entry point tracing, contract validation, vertical slice assessment, integration test coverage, and data flow continuity. Flag orphan code, missing contracts, and horizontal-only changes.
Step 6: Output Format
## Code Review Summary
**Files reviewed**: X files, Y lines changed
**Overall assessment**: [APPROVE / REQUEST_CHANGES / COMMENT]
---
## Findings
### P0 - Critical
(none or list)
### P1 - High
- **[file:line]** Brief title
- Description of issue
- Suggested fix
### P2 - Medium
...
### P3 - Low
...
---
## Removal/Iteration Plan
(if applicable)
## Additional Suggestions
(optional improvements, not blocking)
Step 7: Next Steps Confirmation
After presenting findings, ask how to proceed:
- Fix all - Implement all suggested fixes
- Fix P0/P1 only - Address critical and high priority issues
- Fix specific items - User specifies which issues to fix
- No changes - Review complete, no implementation needed
Important: Do NOT implement any changes until user explicitly confirms.
Additional Resources
Reference Files
For detailed patterns and checklists, consult:
references/solid-checklist.md- SOLID violation detection and refactor heuristicsreferences/security-checklist.md- Security, reliability, and race condition checksreferences/code-quality-checklist.md- Error handling, performance, boundary conditionsreferences/removal-plan.md- Deletion candidates and iteration planning templatereferences/integration-checklist.md- Entry point tracing, contract validation, data flow continuity
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
recall
Search and manage cross-session memory. Query past sessions by keyword, semantic similarity, or hybrid search. Save summaries and tags for future recall.
use-railway
Operate Railway infrastructure: create projects, provision services and databases, deploy code, configure environments and variables, manage domains, troubleshoot failures, check status and metrics, and query Railway docs. Use this skill whenever the user mentions Railway, deployments, services, environments, build failures, or infrastructure operations, even if they don't say "Railway" explicitly.
security-rules
Ultra Builder Pro security rules
ai-collab-base
Shared collaboration protocol, modes, and prompt templates for AI collab skills. Consumed by gemini-collab, codex-collab, and ultra-verify as a shared foundation.
gemini-collab
This skill should be used when the user asks to 'ask Gemini', 'Gemini review', 'let Gemini check', 'Gemini analysis', 'dual AI', or mentions 'gemini' in any collaborative context for code review, project analysis, architecture opinions, or comparative verification.
Didn't find tool you were looking for?