reviewing-component-architecture
1
总安装量
1
周安装量
#43290
全站排名
安装命令
npx skills add https://github.com/djankies/claude-configs --skill reviewing-component-architecture
Agent 安装分布
replit
1
junie
1
windsurf
1
qoder
1
opencode
1
Skill 文档
Review: Component Architecture
Review Checklist
Component Size
- Components under 300 lines (break into smaller pieces)
- Single responsibility per component
- No “god components” handling multiple concerns
Server vs Client Boundaries
-
'use client'only where needed (hooks, events, browser APIs) - Most components are Server Components (smaller bundle)
- Data fetching in Server Components
- No Server Components imported in Client Components
Composition Patterns
- Using children prop appropriately
- Compound components for coordinated behavior
- No excessive prop drilling (use Context)
- Composition preferred over complex prop APIs
Custom Elements
- Web Components used correctly (no ref workarounds in React 19)
- Custom events use
on + EventNameconvention - Properties vs attributes handled by React
Anti-Patterns to Flag
- â God components (> 300 lines, multiple responsibilities)
- â Unnecessary
'use client'(no hooks/events/browser APIs) - â Deep prop drilling (3+ levels without Context)
- â Server Components in Client Components
- â Complex component hierarchies (hard to follow)
For comprehensive component patterns, see: research/react-19-comprehensive.md.