← スキル一覧に戻る

reviewing-state-management
by djankies
⭐ 0🍴 0📅 2025年11月25日
SKILL.md
name: reviewing-state-management description: Review state management patterns for React 19 best practices. Use when reviewing component state, Context usage, or state architecture. review: true allowed-tools: Read, Grep version: 1.0.0
Review: State Management
Checklist
State Immutability
- No direct state mutation
- Using spread operators or immutable update patterns
- Arrays updated with map/filter/concat (not push/splice)
- Objects updated with spread or Object.assign
State Location
- Local state used when appropriate
- Context only for cross-cutting concerns
- No prop drilling through 3+ levels
- Frequently changing state not in Context
useReducer Usage
- Used for complex state logic
- Reducer functions are pure
- Action types are consistent
- State updates follow patterns
Context Patterns
- Split contexts for different concerns
- Using
use()API in React 19 (notuseContext) - Context providers at appropriate level
- No unnecessary re-renders
Anti-Patterns
- ❌ Direct state mutation (
state.push(),state.x = y) - ❌ Context for frequently changing values
- ❌ Excessive prop drilling
- ❌ God components managing too much state
For comprehensive state patterns, see: research/react-19-comprehensive.md.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です