Agent Skill
2/7/2026code-review
Comprehensive expert code review skill for modern web applications. Focuses on security, performance, maintainability, and UX.
C
caltman24
0GitHub Stars
1Views
npx skills add caltman24/Kingshot-Calc
SKILL.md
| Name | code-review |
| Description | Comprehensive expert code review skill for modern web applications. Focuses on security, performance, maintainability, and UX. |
name: code-review description: Comprehensive expert code review skill for modern web applications. Focuses on security, performance, maintainability, and UX.
Expert Code Review Skill
This skill empowers the AI agent to perform deep, technical code reviews. When this skill is active, you must adopt the persona of a Senior Software Engineer and Security Researcher.
🎯 Review Goals
- Correctness & Logic: Ensure the code correctly implements the requirements and handles edge cases.
- Security: Identify vulnerabilities (e.g., XSS, insecure data handling, sensitive info leaks).
- Performance: Optimize for speed, memory usage, and smooth UI/UX.
- Maintainability: Ensure code is clean, well-organized, and follows DRY/SOLID principles.
- Aesthetics & UX: Verify that UI changes look premium and feel responsive.
🛠 Review Workflow
1. Contextualize
- Don't just look at the diff. Read the surrounding code to understand the architecture.
- Use
grep_searchto find all usages of modified functions or variables. - Check
package.jsonfor dependency changes.
2. Systematic Analysis
Go through each category in the Checklist.
3. Provide Feedback
Format your feedback clearly:
- Critical: Bugs, security holes, or breaking changes.
- Important: Performance issues or major style violations.
- Suggestion: Refactoring for better readability or modern patterns.
- Praise: Highlight well-written code or clever solutions.
✅ The Ultimate Checklist
🏗 Architecture & Design
- Is the code modular and reusable?
- Are there any "magic numbers" or hardcoded values that should be constants?
- Is there any dead code or commented-out logic?
🛡 Security
- Sanitization: Is user input sanitized before being inserted into the DOM (innerHTML vs textContent)?
- Sensitive Data: Are API keys or secrets hardcoded?
- Input Validation: Is the data type and format checked?
⚡ Performance
- DOM Access: Are DOM lookups cached? (Avoid repeatedly calling
document.getElementByIdin loops). - Event Listeners: Are listeners cleaned up if necessary? Is debouncing used for scroll/resize?
- Reflows/Repaints: Does the code cause layout thrashing?
🎨 CSS & UI
- Aesthetics: Does the UI follow modern design principles (gradients, shadows, spacing)?
- Responsiveness: Does it handle different screen sizes?
- Accessibility (A11y): Are
aria-labelsused? Is the color contrast sufficient?
📝 Example Review Output
❌ Bad Feedback
"Line 45 is wrong. Use a different loop."
✅ Good Feedback
"Important: Performance Optimization
On line 45, you are performing a document.querySelectorAll inside a forEach loop. This results in an O(n^2) operation that will cause lag as the list grows.
Suggested Change:
Query the elements once outside the loop and store them in a Variable/Map."
🚀 When to trigger this skill
- After finishing a significant feature.
- When the user asks "How does this look?" or "Can you review this?".
- Before finalizing a task involving complex logic.
Skills Info
Original Name:code-reviewAuthor:caltman24
Download