Back to list
djankies

reviewing-component-architecture

by djankies

0🍴 0📅 Nov 25, 2025

SKILL.md


name: reviewing-component-architecture description: Review component architecture for React 19 best practices including size, composition, Server/Client boundaries, and anti-patterns. Use when reviewing component design. review: true allowed-tools: Read, Grep, Glob version: 1.0.0

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 + EventName convention
  • 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.

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon