Skip to content
managing-screen-specs logo

Screen Spec Management Skill

managing-screen-specs

Initializes and updates screen specification documents. Use as a foundation skill for all screen documentation workflows.

SKILL.md

Full skill instructions

Screen Spec Management Skill

画面仕様書の初期化とセクション更新を管理するヘルパースキルです。

概要

各スキル(converting-figma-to-html, documenting-ui-states等)は、このスキルの手順に従って画面仕様書を更新します。

ファイル構造

.agents/
├── templates/
│   └── screen-spec.md          # 画面仕様書テンプレート
└── tmp/
    └── {screen-id}/
        ├── spec.md             # 画面仕様書(メインドキュメント)
        ├── index.html          # 参照用HTML
        └── assets/             # 画像等のアセット

テンプレート構造

統一テンプレートは以下のセクションで構成されます:

セクション説明
概要画面の基本情報(名前、Figma URL、HTML、説明)
構造・スタイルHTML構造とdata-figma属性
コンテンツ分析静的/動的コンテンツの分類とAPI依存
UI状態デフォルト状態、ボタン状態、タブ状態など
インタラクションINT-XXX形式でトリガー、アクション、遷移先を定義
APIマッピングAPIエンドポイントとの関連付け
アクセシビリティセマンティック要件、フォーカス管理、キーボード操作
デザイントークンカラー、タイポグラフィ、スペーシング
画面フローmermaid stateDiagram-v2と遷移テーブル
変更履歴日付、変更内容、担当の履歴

ワークフロー

1. 仕様書の初期化

新しい画面の仕様書を作成する場合:

# テンプレートをコピー
cp .agents/​templates/​screen-spec.md .outputs/​{screen-id}/​spec.md

# 基本情報を置換
- {{SCREEN_NAME}} → 画面名
- {{SCREEN_ID}} → 画面識別子
- {{FIGMA_URL}} → Figma URL
- {{HTML_FILE}} → HTMLファイル名
- {{ROOT_NODE_ID}} → ノードID
- {{DATE}} → 作成日
- {{DESCRIPTION}} → 画面の説明

2. セクションの更新

各スキルは担当セクションのみを更新します。

更新手順
  1. セクション位置を特定
## {セクション名}

### {サブセクション名}
  1. プレースホルダーを内容に置換
{{PLACEHOLDER}} → 実際の内容
  1. 変更履歴に追記
| {DATE} | {セクション名}を更新 | {担当} |

3. セクション別の責任範囲

セクション担当スキル主なプレースホルダー
概要managing-screen-specs{{SCREEN_NAME}}, {{FIGMA_URL}}, {{HTML_FILE}}, {{DESCRIPTION}}
構造・スタイルconverting-figma-to-html{{HTML_STRUCTURE}}, {{SCREEN_ID}}, {{ROOT_NODE_ID}}
コンテンツ分析converting-figma-to-html{{CONTENT_NAME}}, {{DATA_ATTRIBUTE}}, {{API_SOURCE}}
UI状態documenting-ui-states{{ELEMENT_NAME}}, {{ELEMENT_STATE}}, ボタン状態各種
インタラクションextracting-interactions{{INTERACTION_NAME}}, {{TRIGGER}}, {{ACTION}}, {{DESTINATION}}
フォーム仕様defining-form-specs(テンプレートには含まない、必要時に追加)
APIマッピングmapping-html-to-api{{API_MAPPING_DESCRIPTION}}
アクセシビリティdefining-accessibility-requirements{{ELEMENT}}, {{ROLE}}, {{ARIA_ATTRS}}, フォーカス/キーボード設定
デザイントークンextracting-design-tokensカラー/タイポグラフィ/スペーシングの各トークン
画面フローdocumenting-screen-flows{{CURRENT_SCREEN}}, {{NEXT_SCREEN}}, 遷移テーブル

セクション更新のルール

必須

  • 自分の担当セクションのみを更新する
  • 変更履歴に記録を追加する
  • プレースホルダーを具体的な内容に置換する

禁止

  • 他のセクションの内容を変更しない
  • プレースホルダーを削除せずに残さない

初期化の例

入力

画面名: TOP画面
画面ID: top
Figma URL: https://figma.com/​design/​xxx/​Project?node-id=2350:2662
HTMLファイル: top.html
説明: AskAI機能のエントリーポイント画面

出力(spec.md 冒頭部分)

# 画面仕様書: TOP画面

## 概要

| 項目 | 内容 |
| ---- | ---- |
| 画面名 | TOP画面 |
| Figma URL | https://figma.com/​design/​xxx/​Project?node-id=2350:2662 |
| HTML | top.html |
| 説明 | AskAI機能のエントリーポイント画面 |

セクション更新の例

documenting-ui-states による更新

Before:

## UI状態

### デフォルト状態

| 要素 | 状態 | 備考 |
| ---- | ---- | ---- |
| {{ELEMENT_NAME}} | {{ELEMENT_STATE}} | {{ELEMENT_NOTES}} |

After:

## UI状態

### デフォルト状態

| 要素 | 状態 | 備考 |
| ---- | ---- | ---- |
| 背景 | 水色グラデーション表示 | #e1f4ff基調 |
| ナビゲーション | 閉じるボタンのみ表示 | - |
| 写真を共有ボタン | 青背景、有効状態 | #0070e0 |

extracting-interactions による更新

Before:

### INT-001: {{INTERACTION_NAME_1}}

| 項目 | 内容 |
| ---- | ---- |
| トリガー | {{TRIGGER}} |
| 前提条件 | {{PRECONDITION}} |
| アクション | {{ACTION}} |
| API | {{API_CALL}} |
| 遷移先 | {{DESTINATION}} |

After:

### INT-001: 写真を共有ボタンタップ

| 項目 | 内容 |
| ---- | ---- |
| トリガー | 「写真を共有」ボタンをタップ |
| 前提条件 | - |
| アクション | OSのアクションシートを表示 |
| API | なし |
| 遷移先 | action-sheet.html |

仕様書の完了判定

全ての必須セクションが具体的な内容で埋まったら完了です。

必須セクション

  • 概要
  • 構造・スタイル
  • コンテンツ分析
  • UI状態
  • インタラクション
  • APIマッピング
  • アクセシビリティ
  • デザイントークン
  • 画面フロー
  • 変更履歴

条件付きセクション(必要に応じて追加)

  • フォーム仕様: 入力フォームがある場合

参照

More Design skills

brandkit logo
Design

brandkit

Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.

92.7K 345.8K
View

Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.

92.7K 341.7K
View

Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.

92.7K 337.8K
View

Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.

92.7K 331.8K
View

Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.

43.5K 323.4K
View

Frontend design and iteration for production-grade interfaces, from concept to ship.

76.8K 313.3K
View

Reverse-engineer design tokens from public websites into starter token files for your project.

232 129.9K
View
Animate logo
Design

Animate

Builds an animation from scratch by making the decisions in the order that determines whether it feels right.

43.5K 117.9K
View

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.

179.7K 114.2K
View

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.

179.7K 100.1K
View

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.

179.7K 89.5K
View

Design AI tools

Maze Guru logo
Images

Maze Guru

Chat-to-edit AI studio for product photos, portraits, branding, and video.

Freemium
View
R
Design

RoomGPT

Generate your dream room in seconds.

Paid
View

Redesign your interior in seconds using AI

Paid
View
Reroom logo
Design

Reroom

Transform rooms with AI-generated designs.

Freemium
View
Jife logo
Design

Jife

Transform Your Space with AI-Powered Japanese Interior Designs by Jife

Paid
View
Visily logo
Design

Visily

AI-powered wireframes for non-designers.

Free
View

Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours

Paid
View
Archsynth logo
Design

Archsynth

Transform sketches into stunning architectural renders with AI.

Paid
View