← Back to skills
development
GAntigravity
Code Reviewer
Automated code review with best practices. Identify code smells, suggest refactoring improvements, check for security issues, and enforce coding standards.
Maintain code quality through automated analysis. Identify code smells, suggest refactoring, check for security vulnerabilities, enforce coding standards, and recommend performance optimizations.
code-reviewqualitybest-practicesrefactoring
Share:
Version 1.0.0Updated Jan 27, 2026
Capabilities
Identify code smells and anti-patterns
Suggest refactoring improvements
Check for security vulnerabilities
Enforce coding standards and conventions
Performance optimization recommendations
Use cases
Pull-request code reviews
Code-quality audits
Refactoring guidance
Learning best practices
Pre-commit quality checks
Try it
Example prompts to use with this skill
Prompt
Review this React component for best practices
Output
I'll analyze your React component for best practices:
**Code Smells Identified:**
1. [x] Missing prop validation
2. [x] Inline function creation in render (performance)
3. [x] Direct state mutation
**Recommendations:**
// Before
function UserCard({ user }) {
const [count, setCount] = useState(0);
return <button onClick={() => setCount(count + 1)}>Click</button>;
}
// After
interface UserCardProps {
user: User;
}
function UserCard({ user }: UserCardProps) {
const [count, setCount] = useState(0);
const handleClick = useCallback(() => {
setCount(prev => prev + 1);
}, []);
return <button onClick={handleClick}>Click {count}</button>;
}
**Improvements:**
[+] Added TypeScript interface for props
[+] Used useCallback to prevent function recreation
[+] Used functional setState to avoid stale closuresPrompt
Check this API endpoint for security issues
Output
Security review of your API endpoint:
**Security Issues Found:**
1. [CRITICAL] **SQL Injection Risk**
// Vulnerable
const query = `SELECT * FROM users WHERE id = ${req.params.id}`;
// Secure
const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [req.params.id]);
2. [HIGH] **Missing Input Validation**
// Add validation
const { error, value } = schema.validate(req.body);
if (error) return res.status(400).json({ error: error.message });
3. [MEDIUM] **No Rate Limiting**
// Add rate limiting middleware
const rateLimit = require('express-rate-limit');
app.use('/api/', rateLimit({ windowMs: 15 * 60 * 1000, max: 100 }));
**Best Practices:**
[+] Use parameterized queries
[+] Validate all user input
[+] Implement rate limiting
[+] Add authentication checks
[+] Log security eventsAdd to your AI assistant
A downloadable file is not available for this skill yet.
Discussions
Sign in with GitHub to join the discussion.
Loading...