gpt-taste
gpt taste
defining-accessibility-requirements
Defines accessibility requirements for UI elements including semantic markup, ARIA attributes, focus management, and screen reader support. Updates the "アクセシビリティ" section in screen spec.md.
Full skill instructions
UIのアクセシビリティ要件(セマンティックマークアップ、ARIA属性、フォーカス管理、スクリーンリーダー対応)を定義するスキルです。
このスキルは以下のタスクをサポートします:
以下は絶対に行わないこと:
このスキルの目的は「どのようなアクセシビリティ要件があるか」の情報整理のみです。
このスキルは主に WCAG 2.1 Level AA 準拠を目標とします。
| レベル | 対象 |
|---|---|
| A | 必須(最低限のアクセシビリティ) |
| AA | 推奨(このスキルの主な対象) |
| AAA | 任意(特別な要件がある場合) |
このスキルは画面仕様書(spec.md)の「アクセシビリティ」セクションを更新します。
.outputs/{screen-id}/
├── spec.md # ← このスキルが「アクセシビリティ」セクションを更新
├── index.html # 参照用HTML
└── assets/
以下のFigma画面のアクセシビリティ要件を定義してください:
https://figma.com/design/XXXXX/Project?node-id=1234-5678
エージェントは自動的に:
詳細な情報は以下のファイルを参照してください:
アクセシビリティ要件定義時にこのチェックリストをコピー:
Accessibility Requirements Progress:
- [ ] Step 0: spec.md の存在確認
- [ ] Step 1: 画面構造を分析
- [ ] Step 2: セマンティクス要件を定義
- [ ] Step 3: ARIA属性要件を定義
- [ ] Step 4: フォーカス管理を定義
- [ ] Step 5: 色・コントラストを確認
- [ ] Step 6: スクリーンリーダー対応を定義
- [ ] Step 7: キーボード操作を定義
- [ ] Step 8: spec.md の「アクセシビリティ」セクションを更新
ls .outputs/{screen-id}/spec.md
HTMLまたはFigmaから以下を特定:
各要素に適切なHTML要素とランドマークを指定:
| 要素 | 推奨タグ | role | 備考 |
|---|---|---|---|
| ヘッダー | <header> | banner | ページ内で1つ |
| ナビゲーション | <nav> | navigation | aria-label必須(複数ある場合) |
| メインコンテンツ | <main> | main | ページ内で1つ |
| フッター | <footer> | contentinfo | - |
| セクション | <section> | region | aria-labelledby推奨 |
| 記事 | <article> | article | 独立コンテンツ |
各インタラクティブ要素のARIA属性:
aria-label: 視覚的ラベルがない要素aria-labelledby: 別要素でラベル付けaria-describedby: 追加説明aria-expanded: 展開状態aria-selected: 選択状態aria-hidden: 支援技術から隠すaria-live: 動的更新の通知WCAGコントラスト比基準:
| 要素 | AA基準 | AAA基準 |
|---|---|---|
| 通常テキスト | 4.5:1 | 7:1 |
| 大きいテキスト(18pt+/14pt bold+) | 3:1 | 4.5:1 |
| UI要素・グラフィック | 3:1 | - |
## アクセシビリティ){{ACCESSIBILITY_CONTENT}} を内容に置換## アクセシビリティ
> **ステータス**: 完了 ✓
> **生成スキル**: defining-accessibility-requirements
> **更新日**: 2024-01-15
> **準拠レベル**: WCAG 2.1 AA
### セマンティクス
| 要素 | 推奨タグ | role | aria属性 | 備考 |
|------|---------|------|----------|------|
| ページヘッダー | `<header>` | banner | - | - |
| メインナビ | `<nav>` | navigation | aria-label="メインナビゲーション" | - |
| 検索フォーム | `<form>` | search | aria-label="サイト内検索" | - |
| メインコンテンツ | `<main>` | main | - | - |
| 講座リスト | `<ul>` | list | aria-label="講座一覧" | - |
| 講座カード | `<article>` | article | - | 見出し(h3)を含む |
### ARIA属性
| 要素 | 属性 | 値 | 説明 |
|------|------|-----|------|
| 検索ボタン(アイコン) | aria-label | "検索" | 視覚的ラベルなし |
| ハンバーガーメニュー | aria-expanded | "true/false" | メニュー展開状態 |
| ハンバーガーメニュー | aria-controls | "nav-menu" | 制御対象 |
| タブパネル | aria-selected | "true/false" | 選択状態 |
| 進捗バー | aria-valuenow | "75" | 現在値 |
| 進捗バー | aria-valuemin | "0" | 最小値 |
| 進捗バー | aria-valuemax | "100" | 最大値 |
### フォーカス管理
#### タブ順序
#### フォーカス移動
| イベント | フォーカス移動先 |
|----------|----------------|
| モーダル表示 | モーダル内の最初のフォーカス可能要素 |
| モーダル閉じる | モーダルを開いたトリガー要素 |
| フォームエラー | 最初のエラーフィールド |
| ページ内リンク | 対象セクションの見出し |
#### フォーカストラップ
- モーダル/ダイアログ表示中はモーダル内でフォーカスをトラップ
- Tabキーで最後の要素 → 最初の要素へループ
- Shift+Tabで最初の要素 → 最後の要素へループ
### 色・コントラスト
| 要素 | 前景色 | 背景色 | コントラスト比 | 判定 |
|------|--------|--------|---------------|------|
| 本文テキスト | #24243F | #FFFFFF | 14.5:1 | ✓ AA |
| 補足テキスト | #67717A | #FFFFFF | 5.2:1 | ✓ AA |
| ボタンテキスト | #FFFFFF | #0070E0 | 4.6:1 | ✓ AA |
| リンクテキスト | #0070E0 | #FFFFFF | 4.5:1 | ✓ AA |
| エラーテキスト | #D32F2F | #FFFFFF | 5.9:1 | ✓ AA |
#### 色に依存しない情報伝達
- エラー状態: 赤色 + アイコン + テキストメッセージ
- 必須項目: 色 + アスタリスク(*)マーク
- リンク: 色 + 下線
### スクリーンリーダー対応
#### 代替テキスト
| 要素 | alt / aria-label |
|------|-----------------|
| 企業ロゴ | "〇〇株式会社" |
| 講座サムネイル | 講座タイトルを含む説明 |
| 装飾アイコン | aria-hidden="true" |
| 機能アイコン(検索) | aria-label="検索" |
#### 読み上げテキスト
| 要素 | 読み上げ内容 |
|------|-------------|
| 進捗バー (75%) | "進捗 75パーセント" |
| 評価 ★★★★☆ | "評価 5段階中4" |
| 新着バッジ | "新着" |
| 残席わずか | "残席わずか 残り3席" |
#### ライブリージョン
| 要素 | aria-live | 用途 |
|------|-----------|------|
| トースト通知 | polite | 成功/エラーメッセージ |
| 検索結果件数 | polite | 結果更新時 |
| フォームエラー | assertive | 即座に通知が必要 |
### キーボード操作
| 操作 | キー | 動作 |
|------|------|------|
| フォーカス移動 | Tab | 次の要素へ |
| フォーカス移動(逆) | Shift + Tab | 前の要素へ |
| ボタン実行 | Enter / Space | クリックと同等 |
| モーダル閉じる | Escape | モーダルを閉じる |
| ドロップダウン開閉 | Enter / Space | 開閉トグル |
| ドロップダウン選択 | ↑ / ↓ | 項目選択 |
| タブ切り替え | ← / → | 前後のタブ |
### スキップリンク
ページ先頭に以下のスキップリンクを配置:
1. "メインコンテンツへスキップ" → #main-content
2. "ナビゲーションへスキップ" → #main-nav(任意)
### チェックリスト
- [ ] 全ての画像に適切な代替テキスト
- [ ] 全てのフォーム要素にラベル
- [ ] キーボードのみで全機能にアクセス可能
- [ ] フォーカスインジケーターが視認可能
- [ ] 色だけに依存しない情報伝達
- [ ] コントラスト比がWCAG AA基準を満たす
- [ ] スクリーンリーダーで論理的な読み上げ順序
- [ ] 動的コンテンツの変更が通知される
生成後、以下を確認:
- [ ] spec.md の「アクセシビリティ」セクションが更新されている
- [ ] ステータスが「完了 ✓」になっている
- [ ] セマンティクス要件が定義されている
- [ ] ARIA属性が明確
- [ ] フォーカス管理が定義されている
- [ ] コントラスト比が確認されている
- [ ] スクリーンリーダー対応が定義されている
- [ ] キーボード操作が定義されている
- [ ] 完了チェックリストが更新されている
- [ ] 変更履歴に記録が追加されている
このスキルは「アクセシビリティ」セクションのみを更新します。
Figmaデザインからアクセシビリティ情報が不足している場合:
デザイントークンまたは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.