majiayu000/claude-skill-registry-data/state-lifting-majiayu000-claude-skill-registr

Claude Code and agent skill by majiayu000/claude-skill-registry-data

Trust tier 3
  • community
  • ext:[{"type":"context","description":"Custom context provider definitions"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Reactにおける状態リフティングと状態配置判断を支援するスキル。 兄弟コンポーネント間の状態共有、Prop Drilling削減、Context導入判断、 Compound Componentパターンまで、React状態管理の全体像を扱う。 Anchors: • React Documentation (Lifting State Up) / 適用: 共有状態の配置判断 / 目的: 最小責務での共有設計 • Thinking in React / 適用: 状態配置の判断フロー / 目的: 最適な状態配置の特定 • Kent C. Dodds (Colocation) / 適用: 状態と利用箇所の距離 / 目的: 保守性とパフォーマンスの両立 Trigger: Use when lifting state between components, sharing state across siblings, reducing prop drilling, deciding on Context usage, or implementing compound components. state lifting, prop drilling, context api, state placement, compound component, react state, colocation

Install

npx vskill@latest install majiayu000/claude-skill-registry-data/state-lifting-majiayu000-claude-skill-registr

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

状態リフティング

概要

共有状態の配置と伝播設計を整理し、最小限の状態リフティングで一貫したデータフローを維持するスキル。 Reactにおける状態管理の基本原則から高度なパターンまでをカバーする。

ワークフロー

analyze-requirements → design-state-placement → implement-lifting → evaluate-context → apply-patterns
Phase 1: 状態共有の要件整理

目的: 共有状態と共通親の候補を特定する

アクション:

  1. コンポーネントツリーを把握する
  2. 状態を使用するコンポーネントを列挙する
  3. 最も近い共通親を特定する

参照: references/state-placement-guide.md

Task: agents/sl-001-analyze-requirements.md を参照

Phase 2: Props経由の状態伝播

目的: 状態と更新関数をpropsで一方向に伝播する

アクション:

  1. 親コンポーネントに状態を集約する
  2. 子コンポーネントへpropsで伝播する
  3. 更新関数をメモ化し依存関係を整理する

参照: references/colocation-principles.md

Task: agents/sl-003-props-state-passing.md を参照

Phase 3: Context導入判断

目的: Prop Drillingが過剰な場合にContext導入を判断する

アクション:

  1. Props伝播階層と頻度を確認する
  2. Prop Drillingの負荷を評価する
  3. Context導入のメリット/デメリットを整理する

参照: references/prop-drilling-solutions.md, references/context-patterns.md

Task: agents/sl-005-context-api-introduction.md を参照

Phase 4: 複合コンポーネント設計

目的: Compound Componentで共有状態を局所化する

アクション:

  1. 共有状態を局所化する構成を決める
  2. 子コンポーネントの役割を定義する
  3. APIと使用例を設計する

テンプレート: assets/compound-component-template.md

Task: agents/sl-007-compound-component-pattern.md を参照

Task仕様ナビ

Task起動タイミング入力出力
sl-001-analyze-requirementsPhase 1開始時コンポーネント情報、状態一覧状態共有要件レポート
sl-003-props-state-passingPhase 2開始時状態共有要件、既存コードProps伝播設計
sl-005-context-api-introductionPhase 3開始時Props伝播設計Context導入判断
sl-007-compound-component-patternPhase 4開始時Context判断、設計要件Compound Component設計

詳細仕様: 各Taskの詳細は agents/ ディレクトリを参照

ベストプラクティス

すべきこと
推奨事項理由
共通親が最小の箇所に状態を配置する過度なリフティングを避けられる
Props経由の一方向フローを維持するデバッグ容易性が高まる
Context導入は必要最小限に留める依存範囲が広がり過ぎるのを防ぐ
派生状態は計算で済ませる状態重複を避けられる
コンポジションパターンを検討するProp Drillingを根本解決できる
避けるべきこと
禁止事項問題点
深いProp Drillingを放置保守性と可読性が低下する
不要なグローバル化影響範囲が拡大する
状態の重複管理不整合が発生する
Contextの乱用再レンダリングを誘発する
高頻度更新データをContext化パフォーマンスが劣化する

リソース参照

references/(詳細知識)
リソースパス読込条件
状態配置ガイドreferences/state-placement-guide.md共有状態の配置判断時
Prop Drilling対策references/prop-drilling-solutions.mdProp Drilling対策検討時
Contextパターンreferences/context-patterns.mdContext導入判断時
Colocation原則references/colocation-principles.md状態と利用箇所の距離判断時
scripts/(決定論的処理)
スクリプト機能使用例
analyze-state-structure.mjs状態構造の分析node scripts/analyze-state-structure.mjs <file.tsx>
log_usage.mjs使用記録の保存node scripts/log_usage.mjs --result success
validate-skill.mjsスキル構造検証node scripts/validate-skill.mjs
assets/(テンプレート)
アセット用途
compound-component-template.mdCompound Component概要・索引
select-template.mdSelectコンポーネント
accordion-template.mdアコーディオンコンポーネント
tabs-template.mdタブコンポーネント
modal-template.mdモーダルコンポーネント
context-provider-template.mdContext Providerテンプレート

変更履歴

VersionDateChanges
2.2.02026-01-06compound-component-template分割、実装事例追加
2.1.02026-01-0318-skills.md仕様に完全準拠、構造整理
2.0.02026-01-02ワークフロー再編
1.0.02025-12-28初版作成

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationWarning, 83 of 100Marginal. 1 run. Evaluated 8 months ago.

Source

Popularity

Repository stars
2
Repository forks
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 8 months ago.

Extension points

  • contextCustom context provider definitions

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/majiayu000/claude-skill-registry-data/state-lifting-majiayu000-claude-skill-registr/badge)](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/state-lifting-majiayu000-claude-skill-registr)

Something wrong with this skill or its page? Tell us.