frontend-code-review

Reviews React and TypeScript frontend code and produces structured audit reports.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/shengmingzhishu/LeeCommonVideoCut --skill frontend-code-review-shengmingzhishu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-code-review
Source: https://github.com/shengmingzhishu/LeeCommonVideoCut/tree/main/.rules-skills/react-stack/.trae/skills/frontend-code-review
Command: npx skills add https://github.com/shengmingzhishu/LeeCommonVideoCut --skill frontend-code-review-shengmingzhishu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manual frontend code review is inconsistent and easy to miss issues in hooks, performance, accessibility, and type safety. This Skill provides a systematic checklist-driven review process for React/TypeScript codebases, producing a structured report with prioritized findings. ## Core Features & Use Cases - Nine-dimension audit checklist: Covers correctness, type safety, component design, Hook usage, performance, state management (Zustand), accessibility, styling, and security, each with priority levels (P0/P1/P2). - Structured review report template: Outputs a per-dimension pass/fail table plus a detailed issue list with file paths, descriptions, and concrete fix suggestions. - Use Case: Before merging a PR that adds a new list page, run this Skill to verify useEffect dependencies, check for missing virtual scrolling on large lists, confirm no any types remain, and receive a merge-readiness conclusion. ## Quick Start Review the React components in my pull request for hook usage, performance, and accessibility issues and generate a structured review report.

Frequently Asked Questions about frontend-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review React code for hook usage problems?▼

Check that hooks are never called inside conditions or loops, useEffect dependency arrays are complete, cleanup functions are returned where needed, and useState uses lazy initialization for expensive initial values. Custom hooks should start with 'use' and have independent tests.

What should a frontend code review checklist include?▼

A thorough checklist covers correctness, type safety, component design, hook usage, performance, state management, accessibility, styling, and security. Prioritize findings as P0 (blocking), P1 (should fix), and P2 (nice to have) so reviewers know what blocks a merge.

How to check React performance issues during code review?▼

Verify list items have stable unique keys, large lists over 100 items use virtual scrolling, expensive computations are wrapped in useMemo, callbacks passed to children use useCallback, and routes use React.lazy for code splitting.

Does this review approach work with Zustand state management?▼

Yes, the checklist includes Zustand-specific checks: stores split by domain, selective subscriptions via useStore(selector) to avoid global re-renders, derived state computed in selectors rather than synced with useEffect, and separation of server and client state.

What are the limits of checklist-based code review?▼

Checklist review catches known pattern violations but cannot verify runtime behavior, business logic correctness, or visual regressions. Combine it with automated tests, type checking via tsc --noEmit, and manual exploratory testing for full coverage.