expert-code-reviewer
Performs a deep-dive code review based on industry standards and local project rules. Trigger this when a user asks to "review", "audit", or "check" code.
When & Why to Use This Skill
The Expert Code Reviewer skill automates comprehensive code audits by evaluating source code against industry best practices and custom project-specific rules. It streamlines the software development lifecycle by identifying security vulnerabilities, performance bottlenecks, and maintainability issues, providing structured, actionable feedback through a prioritized traffic-light reporting system.
Use Cases
- Automated Security Auditing: Detect hardcoded secrets, SQL injection risks, and insecure dependencies to prevent vulnerabilities before they reach production.
- Enforcing Team Coding Standards: Automatically verify compliance with local project rules and 'Modern Clean Code' standards defined in configuration files.
- Performance Optimization: Identify inefficient loops and heavy computations within render cycles to improve application speed and resource management.
- Technical Debt Reduction: Analyze function length and variable naming conventions to ensure long-term code maintainability and readability.
- Pre-Merge Quality Checks: Use the structured 'Traffic Light' feedback to quickly prioritize critical fixes and architectural improvements during the Pull Request process.
| name | expert-code-reviewer |
|---|---|
| description | Performs a deep-dive code review based on industry standards and local project rules. Trigger this when a user asks to "review", "audit", or "check" code. |
Expert Code Reviewer Skill
1. Context Discovery (Mandatory First Step)
Before providing feedback, you MUST:
- Check the root directory for a
skill-config.jsonfile. - If found, identify the
coding_standardandforbidden_patternsdefined there. - If not found, use the default "Modern Clean Code" standards.
2. Review Process
Follow these steps in order:
- Security Check: Look for hardcoded secrets, SQL injection risks, and insecure dependencies.
- Maintainability: Ensure functions are under 30 lines and variables are descriptively named.
- Performance: Identify unnecessary loops or heavy computations inside render cycles.
- Project Alignment: Verify the code follows the directory structure defined in the project's
README.md.
3. Output Format
Always present your review in a "Traffic Light" format:
- 🔴 Critical: Fix immediately (Security/Bugs).
- 🟡 Warning: Architectural improvements.
- 🟢 Praise: Point out what was done well.