Communitygithub.com

ページヘッダーシステム

特定のページやビューに、コンテキスト、位置情報、主要なアクションを提供するページレベルヘッダーの体系的フレームワークを設計・実装します。

ページヘッダーシステム とは?

このスキルは、グローバルサイトヘッダーとは別の、ページトップレベルの構造領域を設計するための体系的な方法論を提供します。これにより、ユーザーは現在位置を即座に識別でき(位置特定)、現在のビューのステータスやメタデータを理解し、メニューを探し回ることなくタスクを完了するための主要アクションにアクセスできるようになります。入力としてページタイトル、階層情報、位置特定要件、メタデータ、アクション優先順位、ブランドトークンを受け取り、ヘッダーの構造仕様、レイアウト設計図、レスポンシブ戦略、インタラクション仕様を出力します。ワークフローは、ナビゲーションパスの定義、タイトルとメタデータによるコンテンツコアの確立、アクションの優先順位付け、空間パターンの選択、スティッキー/スクロール動作の定義を段階的に行います。決定ルールには「パンくずルール」「H1ルール」「アクション配置」「ステータス表示」が含まれ、アクセシビリティ(H1、nav要素、ARIAラベル)、コントラスト(WCAG AA)、レスポンシブ対応(長いタイトルの扱い)といった制約があります。主な用途は、複雑なダッシュボードビュー、長文記事、設定ページ、SaaSアプリケーションなどで、アクション過多や位置特定の欠如、タイトル圧縮、冗長なサイトヘッダーといった失敗パターンを回避するのに役立ちます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/page-header-system

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ページヘッダーシステム は何をしますか?

目的

ページヘッダーシステムは、個別ページのトップレベルの構造領域(グローバルサイトヘッダーとは区別されます)を設計するための方法論を提供します。これにより、ユーザーは自分がどこにいるのか(位置特定)を即座に識別し、現在のビューのステータスやメタデータを理解し、メニューを探し回ることなくタスクを完了するための主要なアクションにアクセスできるようになります。

使用例

  • 複雑なダッシュボードビュー(例:「プロジェクト詳細」)のヘッダーを設計する。
  • 長文の記事やドキュメントページの導入部分を構成する。
  • コンテキストと保存アクションが重要な設定ページやプロフィールページを整理する。
  • SaaSアプリケーションや大規模コンテンツサイト全体でヘッダーパターンを標準化する。
  • パンくずリスト、タイトル、ステータスインジケータを統一されたレイアウトで管理する。

使用しない場合

  • グローバルサイトナビゲーション: サイト全体にわたって持続するメインヘッダーには「site-navigation-system」を使用します。
  • シンプルなランディングページ: 「ヒーロー」セクション(「hero-section-optimization」を参照)がページヘッダーとして機能する場合。
  • スプラッシュスクリーン/モーダル: コンテンツが一時的または最小限である場合。「overlay-and-dialog-system」をモーダルヘッダーに使用します。

入力

  1. ページタイトルと階層: ページのプライマリ名(H1)とサイト構造内での位置。
  2. 位置特定要件: ユーザーにパンくずリストや「戻る」ボタンが必要かどうか。
  3. メタデータとステータス: 「最終更新日」「下書き/公開」、所有者情報などの重要な詳細。
  4. アクションの優先順位: このページでの主要なタスクは何か(例:編集、共有、作成)。
  5. ブランド/システムトークン: スペーシング、タイポグラフィ、カラートークン。

出力

  1. ヘッダー構造仕様: ゾーン(位置特定、タイトル、メタデータ、アクション)の定義。
  2. レイアウト設計図: 整列(左寄せ vs. 中央寄せ)とスペーシングのルール。
  3. レスポンシブ戦略: デスクトップからモバイルへのヘッダーの適応方法。
  4. インタラクション仕様: スティッキーヘッダーとアクションボタンの優先順位の動作。

ワークフロー

1. ナビゲーションパスを定義する(位置特定)

ユーザーがこのページにどのように到達したか、そしてどのように戻るかを決定します:

  • パンくずリスト: 深い階層に使用します(例:ホーム > プロジェクト > デザイン)。
  • 戻るボタン: 線形タスクや特定のリストビューに戻る場合に使用します。
  • 親リンク: 2階層の深さのために、シンプルな「<- [親] に戻る」を使用します。

2. コンテンツコアを確立する(タイトルとメタデータ)

visual-hierarchy-system をヘッダーの中央に適用します:

  • H1タイトル: 最も目立つテキスト要素。
  • コンテキストメタデータ: タイトルの近くに配置される二次情報(例:タグ、タイムスタンプ、ステータスバッジ)。
  • サムネイル/アバター: ページが特定のエンティティ(例:ユーザープロフィールや製品)を表す場合。

3. ページレベルのアクションを整理する

アクションを優先順位の階層に分割します:

  • プライマリアクション: 1つの「レベル1」ボタン(通常はハイコントラストの塗りつぶしボタン)。
  • セカンダリアクション: 頻度の低いタスクのための「レベル2」ボタン(アウトラインまたはゴーストスタイル)。
  • ターシャリアクション: まれな管理タスクのためのオーバーフローメニュー(…)。

4. 空間パターンを選択する

  • 標準左寄せ(SaaS/ダッシュボード): パンくず/タイトルを左に、アクションを右に。生産性に最適です。
  • 中央寄せ(コンテンツ/記事): すべての要素を中央に。読みやすさとストーリーテリングに最適です。
  • 分割レイアウト: タイトルとアクションを空白で分離し、余白を強調します。

5. スティッキーとスクロール動作を定義する

  • 固定ヘッダー: スクロール中に「保存」などのアクションを頻繁に必要とする場合、ページヘッダーを表示したままにします。
  • 縮小ヘッダー: ユーザーが下にスクロールするにつれてヘッダーの高さを縮小するか、パンくずリストを非表示にしてコンテンツスペースを最大化します。

決定ルール

  • パンくずルール: サイトが2階層より深い場合、ページヘッダーにパンくずリストが必須です。
  • 「1つのH1」ルール: ページヘッダーには、そのページ固有のH1タグが含まれている必要があります。
  • アクションの配置: デスクトップでは、プライマリアクションを右上に配置します。モバイルでは、ヘッダーが混雑しすぎる場合、プライマリアクションのためにスティッキーな下部バーを検討します。
  • ステータスの表示: 重要なステータス(例:「支払い期限超過」)は、バッジまたはアイコンを使用してタイトルのすぐ隣に配置する必要があります。

制約

  • アクセシビリティ: ヘッダータイトルには <h1> を使用する必要があります。パンくずリストには <nav> と aria-label="Breadcrumb" を使用する必要があります。
  • コントラスト: ステータスバッジとアクションはWCAG AAのコントラスト要件を満たす必要があります。アクションボタンはWCAG 2.2 SC 2.5.8のターゲットサイズ(最小24x24px、モバイルスティッキーバーでは44x44px推奨)を満たす必要があります。
  • レスポンシブ対応: ヘッダーは長いタイトルを適切に処理する必要があります(省略 vs. 折り返し)。

一般的な失敗パターン

  • アクション過多: ヘッダーにボタンを配置しすぎて、主要なタスクがわかりにくくなる。
  • 位置特定の欠如: 深いページでパンくずリストを忘れ、ユーザーが「迷子」になったように感じさせる。
  • タイトルの圧縮: モバイルで長いタイトルに十分なスペースを確保せず、アクションと重なってしまう。
  • 冗長なサイトヘッダー: ページヘッダーをグローバルサイトヘッダーと酷似させ、視覚的な混乱を引き起こす。

検証基準

  • ヘッダーには、ナビゲーションラベルと一致する明確なH1が含まれている。
  • 位置特定(パンくず/戻る)がサイトの深さに適切である。
  • プライマリアクションがセカンダリアクションと視覚的に区別されている。
  • モバイルビューポートでもレイアウトが機能し、読みやすい。
  • セマンティックHTMLが使用されている(パンくずには <nav>、タイトルには <h1>)。
  • ステータスインジケータ(ある場合)はハイコントラストで、見つけやすい。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for progressive disclosure using accordions, ensuring structural integrity, visual affordances, and accessibility across different content densities and devices.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for long-form content, managing readability, vertical rhythm, and information density to ensure a superior reading experience.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for informational elements that communicate state (Badges) and categorization (Tags) with clarity and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for non-overlay notifications, managing global announcements and contextual inline alerts to communicate system states without interrupting the user's flow.

coastdigitalgroup/coastai-skills

Design and implement a systematic, asymmetrical bento-grid layout framework to organize diverse content types cohesively while maintaining strict visual hierarchy, logical focus order, and responsive flexibility.

coastdigitalgroup/coastai-skills

Design a responsive, mobile-first bottom navigation bar and persistent action dock system for mobile websites and web applications, establishing spatial anchors, tab bar anatomy, badge indicators, thumb-zone ergonomics, safe area inset handling, active/inactive state contrast, and desktop responsive adaptation rules.

coastdigitalgroup/coastai-skills

Design a mobile-first bottom sheet overlay system with configurable detents, drag affordances, safe area padding, responsive desktop modal/popover adaptation, and WCAG AA accessibility compliance.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for secondary navigation trails that provide orientation, context, and one-click access to parent levels in deep information architectures.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for buttons and interactive triggers, managing visual hierarchy, variant logic, and action grouping to ensure clear intent and accessible interaction.

coastdigitalgroup/coastai-skills

Design a systematic framework for date and time selection, managing calendar grids, range pickers, and scheduling interfaces to ensure precision and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for modular content containers that maintain hierarchy, structural integrity, and action alignment across variable content and responsive viewports.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for horizontal discovery components, managing navigation affordances, scroll behavior, and accessibility to ensure effective content density without compromising usability.

coastdigitalgroup/coastai-skills

Design a systematic, highly accessible, and developer-friendly UI layout framework for code blocks, snippet showcases, multi-file code tabs, line-highlighting, diff views, and syntax token contrast in technical documentation and developer platforms.

coastdigitalgroup/coastai-skills

Design a systematic framework for global command menus (Cmd+K panels) that combines keyboard-driven navigation, command execution, and shortcut discovery into an accessible, responsive overlay.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for threaded conversations, managing nesting depths, action hierarchies, and community signaling to foster engagement and readability.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for side-by-side comparison interfaces, managing high attribute density and responsive complexity to support informed decision-making.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for user privacy, managing consent banners, preference centers, and persistent privacy controls to balance legal compliance with user trust.

coastdigitalgroup/coastai-skills

Design and implement a systematic, highly accessible, and responsive visual layout framework for conversational chat widgets, live chat boxes, and chatbot panels that ensures clear message scannability, native focus flow, and seamless mobile keyboard adaptation.

coastdigitalgroup/coastai-skills

Design a systematic, accessible, and high-conversion framework for custom select dropdowns and comboboxes, defining anatomy, states, search-filtering, and responsive mobile-adaptive patterns.

coastdigitalgroup/coastai-skills

Design and implement a systematic color palette that ensures WCAG 2.2 accessibility compliance. Trigger this skill when asked to define brand colors, create UI themes, or establish a visual system for a website.

関連スキル