---
name: 3-ui-layout-component
user-invocable: true
description: "静的UI骨格からLayout/Componentを抽出して技術スタックの標準配置に分離する。UI骨格を再利用可能なコンポーネント構造に整理するときに使う。"
---

# [デザイン] 3. 静的UI骨格 → Layout/Component を抽出して分離

## コマンド: /design-components

## いつ使う？（位置づけ）
- `/design-ui` で静的UI骨格（見た目のみ）を生成したあと
- 「ページ固有レイアウト」と「再利用コンポーネント」を分離して、後続の `/design-assemble` をやりやすくしたいとき

## 次に何をする？
- variants（size/tone/state等）を型付きprops/属性に落として結合 → `/design-assemble`

## 入力: $ARGUMENTS（任意）
- 対象ディレクトリ（例: `src/` や `app/` など）

---

## 🎯 目的
- `/design-ui` で生成した **静的UI骨格（見た目のみ）** から、
  - **Layout**（ページ枠/セクション/グリッド）
  - **Component**（ボタン/カード/フォーム等の再利用部品）
  を抽出して分離し、保守しやすくする

---

## 抽出の判断基準（最小）
- **Layout にする**
  - ページ固有の枠組み（ヘッダー+本文+フッターなど）
  - セクションの並び（Hero/Features/Pricingなど）
  - グリッド/レイアウトの責務が主で、見た目の部品が複数集まっているもの
- **Component にする**
  - 同じ構造が3回以上出現する（同一の見た目/役割）
  - variants（size/tone/state）に落とせる
  - 画面を跨いで再利用したい意図がある
- **まだ抽出しない**
  - 1回しか出現しない、ページ固有の塊
  - 名前が付けられない（責務が曖昧）

---

## ルール
- **ロジック/状態/データ取得は入れない**（見た目の責務分離のみ）
- 既存のディレクトリ規約・命名規約を尊重する（新規規約を持ち込まない）
- 変更は差分最小で、レビュー可能な単位に分割する

---

## 出力（差分のみ）
- スタック別の標準配置に合わせて、コンポーネント/レイアウトを分割して反映

---

## ゲート
- 見た目が維持されている（主要ページ/主要コンポーネント）
- 重複UIが減っている（同じ構造が3回以上なら抽出を検討）
- ここで停止

---

## 次に推奨
→ `/design-assemble` でvariants → 型付きProps結合


---
Source attribution: mae616
Original project: https://github.com/mae616/ai-template/blob/65af96597292445cdebc026dbc1fb1169b87f4cd/.claude/skills/design-components/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Dave AI.

## Upstream license notice

MIT License

Copyright (c) 2024 AI Template Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Dave AI resource metadata

Creator / publisher: mae616
Original project: https://github.com/mae616/ai-template/blob/65af96597292445cdebc026dbc1fb1169b87f4cd/.claude/skills/design-components/SKILL.md
Attribution basis: Recovered original package and original project license at a pinned revision

Fields of work: Design, Development & Engineering
Roles: Frontend Developer, UI Designer, UX Designer
Specialties: Design
Tools: Tool not specified
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 588b9a650e61dc840b8ee0c787f36fe2d73129ddf2bf645b69650bea4460f4c2
Metadata reviewed: 2026-10-27
This metadata supersedes earlier Dave AI catalog attribution. Original instruction and supporting files are preserved.
