gpt-taste
gpt taste
documenting-ui-states
Documents all UI state variations (default, empty, error, loading, success) from Figma designs. Use when defining complete UI specifications before implementation.
Full skill instructions
Figmaデザインから全てのUI状態バリエーション(default, empty, error, loading等)を抽出・整理するスキルです。
このスキルは以下のタスクをサポートします:
以下は絶対に行わないこと:
このスキルの目的は「どのような状態があるか」の情報整理のみです。
このスキルは画面仕様書(spec.md)の「UI状態」セクションを更新します。
.outputs/{screen-id}/
├── spec.md # ← このスキルが「UI状態」セクションを更新
├── index.html # converting-figma-to-htmlで生成済み
└── assets/ # 画像等
重要: 単独ファイル(ui_states.md)は生成しません。必ず spec.md 内のセクションを更新してください。
以下のFigma画面のUI状態を整理してください:
https://figma.com/design/XXXXX/Project?node-id=1234-5678
エージェントは自動的に:
詳細な情報は以下のファイルを参照してください:
状態整理時にこのチェックリストをコピー:
UI States Documentation Progress:
- [ ] Step 0: spec.md の存在確認(なければ初期化)
- [ ] Step 1: Figmaフレーム一覧を取得
- [ ] Step 2: 状態バリエーションを検出
- [ ] Step 3: 各状態のデザイン情報を取得
- [ ] Step 4: 状態一覧を整理
- [ ] Step 5: 未定義状態を特定
- [ ] Step 6: 状態遷移条件を整理
- [ ] Step 7: spec.md の「UI状態」セクションを更新
# spec.md が存在するか確認
ls .outputs/{screen-id}/spec.md
# 存在しない場合はテンプレートから初期化
cp .agents/templates/screen-spec.md .outputs/{screen-id}/spec.md
# 基本情報({{SCREEN_NAME}}等)を置換
mcp__figma__get_metadata(fileKey, nodeId)
親フレーム(ページまたはセクション)を指定し、子フレーム一覧を取得。
フレーム名から状態を自動検出:
| パターン | 検出される状態 |
|---|---|
Screen_Default, Screen | default |
Screen_Empty, Screen_NoData | empty |
Screen_Error, Screen_Failed | error |
Screen_Loading, Screen_Skeleton | loading |
Screen_Success, Screen_Complete | success |
Screen_Disabled | disabled |
Screen_Selected, Screen_Active | selected |
Screen_Expanded, Screen_Open | expanded |
Screen_Collapsed, Screen_Closed | collapsed |
検出した各状態フレームに対して:
mcp__figma__get_screenshot(fileKey, nodeId)
mcp__figma__get_design_context(fileKey, nodeId)
各状態について以下を文書化:
一般的に必要だがFigmaに存在しない状態を明示。
状態間の遷移を文書化(Mermaid stateDiagram-v2)。
重要: 以下の手順で spec.md を更新
<!--
================================================================================
SECTION: UI状態
Generated by: documenting-ui-states
================================================================================
-->
## UI状態
> **ステータス**: 完了 ✓
> **生成スキル**: documenting-ui-states
> **更新日**: {DATE}
プレースホルダー {{UI_STATES_CONTENT}} を内容に置換
完了チェックリストを更新
- [x] UI状態 (documenting-ui-states)
| {DATE} | UI状態 | documenting-ui-statesにより生成 |
## UI状態
> **ステータス**: 完了 ✓
> **生成スキル**: documenting-ui-states
> **更新日**: 2024-01-15
### 状態一覧
| 状態 | 条件 | Figma Node |
|------|------|------------|
| default | データが正常に取得できた場合 | `1234:5679` |
| empty | データが0件の場合 | `1234:5680` |
| loading | API通信中 | `1234:5681` |
| error | API通信失敗 | `1234:5682` |
### 状態詳細
#### default
- **条件**: データが正常に取得できた場合
- **表示内容**: メインコンテンツを表示
- **Figma Node**: `1234:5679`
#### empty
- **条件**: データが0件の場合
- **表示内容**: 空状態イラスト + メッセージ + アクションボタン
- **Figma Node**: `1234:5680`
- **default との差分**: リスト部分が空状態UIに置換
[他の状態も同様...]
### 未定義状態
| 状態 | 必要性 | 推奨対応 |
|------|--------|----------|
| partial_error | 🟡 中 | 一部成功時の表示を設計者に確認 |
### 状態遷移図
\```mermaid
stateDiagram-v2
[*] --> loading
loading --> default: データあり
loading --> empty: データなし
loading --> error: API失敗
error --> loading: リトライ
\```
### 状態遷移表
| From | To | トリガー | 条件 |
|------|-----|----------|------|
| [*] | loading | 画面表示 | - |
| loading | default | APIレスポンス | 成功 & データあり |
| loading | empty | APIレスポンス | 成功 & データなし |
| loading | error | APIレスポンス | 失敗 |
| error | loading | リトライボタン | - |
生成後、以下を確認:
- [ ] spec.md の「UI状態」セクションが更新されている
- [ ] ステータスが「完了 ✓」になっている
- [ ] 全ての状態バリエーションが記載されている
- [ ] 各状態の条件が明確に記載されている
- [ ] default状態との差分が明示されている
- [ ] 未定義状態がリストアップされている
- [ ] 状態遷移が整理されている
- [ ] 完了チェックリストが更新されている
- [ ] 変更履歴に記録が追加されている
このスキルは「UI状態」セクションのみを更新します。 他のセクション(構造・スタイル、インタラクション等)は変更しないでください。
状態バリエーションの検出はFigmaのフレーム命名規則に依存します。 命名規則が不明確な場合は、設計者に確認してください。
gpt taste
Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.
Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.
Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.
Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.
Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.
Frontend design and iteration for production-grade interfaces, from concept to ship.
Reverse-engineer design tokens from public websites into starter token files for your project.
Builds an animation from scratch by making the decisions in the order that determines whether it feels right.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
Chat-to-edit AI studio for product photos, portraits, branding, and video.
Generate your dream room in seconds.
Redesign your interior in seconds using AI
Transform rooms with AI-generated designs.
Transform Your Space with AI-Powered Japanese Interior Designs by Jife
AI-powered wireframes for non-designers.
Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours
Transform sketches into stunning architectural renders with AI.