frontend-code-review
Frontend Code Review Skill
Intent: Use whenever requested to review frontend code (React, Next.js, TypeScript).
Supports:
- Pending-change review: Reviewing
git diffor staged files. - File-targeted review: Reviewing specific existing files.
Review Process
- Scan: Read the code to identify architectural patterns, hooks usage, and component structure.
- Check: Apply the Review Checklist.
- Report: Output findings in the Required Output Format.
Review Checklist
1. Code Quality & Style
- Naming: Are variables/functions named descriptively? (e.g.,
isLoadingvsflag) - Type Safety: Is
anyavoided? are interfaces defined clearly? - Constants: Are magic numbers/strings extracted to constants?
- Destructuring: Is consistent destructuring used for props?
2. React & Next.js Best Practices
- Hooks: Are hooks used correctly (dependency arrays, rules of hooks)?
- Server/Client: Is
'use client'used only when necessary? - Memoization: Are
useMemo/useCallbackused appropriately (not prematurely)? - Keys: Do lists have stable, unique keys?
3. Performance
- Bundle Size: Are large libraries imported entirely when tree-shaking is possible?
- Images: Is
next/imageused with proper sizing? - Renders: Are there obvious unnecessary re-renders?
4. Accessibility (a11y)
- Semantic HTML: Are
divs used wherebutton,section, etc., are needed? - Attributes: Do images have
alttext? Do inputs have labels?
Required Output Format
# Code Review
Found <N> urgent issues:
## 1. <Issue Title>
**File**: `<path>` line `<line>`
```typescript
<snippet of problematic code>
Reason: <Why is this urgent?> Suggested Fix:
<snippet of fixed code>
Found suggestions:
- <Refactor/Style>:
- :
More from first-fluke/fullstack-starter
fastapi-router-creator
Guide for creating and organizing FastAPI routes using a file-based routing system or modular router pattern. Helps organize complex API structures.
46component-refactoring
Refactor high-complexity React components. Use when complexity metrics are high or to split monolithic UI.
33ui-ux-pro-max
Advanced design intelligence for professional UI/UX. Use for implementing modern design patterns (Glassmorphism, Bento Grid), ensuring accessibility, and generating tailored design systems for web and mobile.
26frontend-engineer
Develop production-grade frontend code using shadcn/ui, best practices, and strict design alignment.
17skill-lookup
Discover, retrieve, and learn about available Agent Skills. key capability for finding tools to solve specific problems.
16fastapi-templates
Production-ready FastAPI project templates and patterns. Use when starting new FastAPI projects, services, or adding standard components like auth, DB connection, or middleware.
15