← ClaudeAtlas

code-reviewlisted

Code review guidance.
shipshitdev/skills · ★ 26 · Code & Development · score 71
Install: claude install-skill shipshitdev/skills
# Code Review Comprehensive code review focusing on quality, security, performance, and testing. ## Quick Review ```bash git status git diff HEAD~1 git log --oneline -5 git branch --show-current ``` ## Critical Checklist ### 1. Security and Data Isolation - ALL queries filter by tenant/organization (if multi-tenant) - ALL queries filter soft-deleted records (if applicable) - No cross-tenant data access - Auth guards on protected routes - Input validation via DTOs/schemas ### 2. TypeScript - No `any` types — define proper interfaces - Interfaces/props in dedicated files, not inline - Return types on all functions - No `console.log` — use project logger ### 3. Pattern Compliance - Follows existing codebase patterns (check 3+ similar implementations) - Path aliases over relative imports - Consistent with project conventions ### 4. Database - Tenant/organization filter in ALL queries (if applicable) - Soft delete filter in ALL queries (if applicable) - Projections for large documents - Indexes exist for query patterns - No N+1 queries ### 5. Error Handling - Try/catch blocks present - Framework-specific exceptions (not generic Error) - Errors logged via logger service - Generic messages to client (no internals exposed) ### 6. Testing - Unit tests exist and pass - All public methods tested - Error cases tested - Coverage > 70% for new code ### 7. Frontend - Cleanup in useEffect with async calls (AbortController) - Loading and error states handled - Semantic HTML