<< All versions
Skill v1.0.1
currentAutomated scan100/100majiayu000/claude-skill-registry/code-review-lewisperez999-v0-lewis-perez-p
3 files
──Details
PublishedMay 14, 2026 at 11:44 PM
Content Hashsha256:dce045579c409e86...
Git SHA63c042456db3
Bump Typepatch
──Files
Files (1 file, 3.1 KB)
SKILL.md3.1 KBactive
SKILL.md · 141 lines · 3.1 KB
version: "1.0.1"
Code Review
Perform code reviews following project standards.
Description
Review code changes for quality, security, performance, and adherence to project conventions.
Checklist
TypeScript
- [ ] No
anytypes without justification - [ ] Interfaces defined for all props and data shapes
- [ ] Proper error handling with typed errors
- [ ] Exports include types alongside functions
React/Next.js
- [ ] Server Components used by default
- [ ]
'use client'only where necessary - [ ] Proper use of Suspense for loading states
- [ ] No unnecessary re-renders
- [ ] Accessible (semantic HTML, ARIA)
Security
- [ ] No hardcoded secrets or API keys
- [ ] Input validated with Zod
- [ ] SQL queries are parameterized
- [ ] Auth checks on protected endpoints
- [ ] XSS prevention (no dangerouslySetInnerHTML with user content)
Performance
- [ ] Images optimized (next/image)
- [ ] Lazy loading for heavy components
- [ ] Database queries are indexed
- [ ] No N+1 query problems
- [ ] Appropriate caching
Code Style
- [ ] Consistent naming conventions
- [ ] Files named correctly (PascalCase for components, kebab-case for utils)
- [ ] Imports use
@/aliases - [ ] No commented-out code
- [ ] Clear, descriptive variable names
API Routes
- [ ] Proper HTTP status codes
- [ ] Error responses are consistent
- [ ] Rate limiting for public endpoints
- [ ] Request/response typed
- [ ] Logging for errors
Database
- [ ] Migrations are reversible
- [ ] Indexes on frequently queried columns
- [ ] Foreign key constraints where appropriate
- [ ] No raw SQL concatenation
Review Template
markdown
## Code Review: [PR/Change Title]### SummaryBrief description of the changes.### Checklist-[x] TypeScript types are correct-[x] Security considerations addressed-[ ] Performance optimized-[x] Tests added/updated### Issues Found#### Critical-None#### Major-[ ] Issue description - file:line#### Minor-[ ] Suggestion - file:line### Suggestions-Consider using X instead of Y-Could extract into reusable function### Approved: Yes/No
Common Issues
TypeScript
typescript
// ❌ Bad: Using anyconst data: any = await fetchData();// ✅ Good: Typed responseinterface ApiResponse {id: string;name: string;}const data: ApiResponse = await fetchData();
Security
typescript
// ❌ Bad: SQL injection riskconst result = await query(`SELECT * FROM users WHERE id = ${userId}`);// ✅ Good: Parameterized queryconst result = await query('SELECT * FROM users WHERE id = $1', [userId]);
React
typescript
// ❌ Bad: Unnecessary client component'use client';export function StaticContent() {return <div>Just static content</div>;}// ✅ Good: Server component (no directive needed)export function StaticContent() {return <div>Just static content</div>;}
Performance
typescript
// ❌ Bad: Fetching in loopfor (const id of ids) {const item = await query('SELECT * FROM items WHERE id = $1', [id]);}// ✅ Good: Batch queryconst items = await query('SELECT * FROM items WHERE id = ANY($1)', [ids]);