| name | frontend-code-review |
| description | Standardized checklist and process for reviewing frontend code (.tsx, .ts, .js). |
Frontend Code Review Skill
Intent: Use whenever requested to review frontend code (React, Next.js, TypeScript).
Supports:
- Pending-change review: Reviewing
git diff or 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
2. React & Next.js Best Practices
3. Performance
4. Accessibility (a11y)
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: