Communitygithub.com

coastdigitalgroup/coastai-skills - サイトナビゲーションシステム

構造化され、アクセシブルでレスポンシブなナビゲーションフレームワークを設計・実装し、ユーザーをウェブサイトの情報アーキテクチャに沿って導くスキルです。

coastai-skills - サイトナビゲーションシステム とは?

このスキルは、ウェブサイトのナビゲーションシステムを体系的に設計・実装するための方法論を提供します。情報アーキテクチャに基づいてプライマリ、セカンダリ、ユーティリティ、フッターといった階層を明確に区分し、シンプルバーやメガメニュー、モバイルドロワーなどのパターンから最適なものを選択できます。また、`aria-current` 属性を用いたアクティブ状態の可視化、`<nav>` ランドマークと `aria-label` によるスクリーンリーダー対応、キーボードフォーカス管理、WCAG 2.2 に準拠したタッチターゲットサイズなど、アクセシビリティに重点を置いています。さらに、ブレイクポイントでのメニュー折りたたみやプライオリティペアリングによるレスポンシブ戦略、スキップリンクの実装など、現代的なウェブ開発に必要なベストプラクティスを網羅しており、Claude Code などの AI エージェントがサイト構築やリファクタリングの際に参照するのに適した知識ベースです。

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

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

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

ドキュメント

サイトナビゲーションシステム

目的

Site Navigation System スキルは、ウェブサイトの構造経路を整理し設計するための方法論を提供します。これにより、ユーザーが自身の位置を把握し、情報を素早く見つけ、あらゆるデバイスにおいてセクション間をシームレスに移動できるようになります。堅牢なナビゲーションシステムは、情報の密度と明確さのバランスを取り、アクセシビリティと視覚的階層を維持します。

ユースケース

  • 新規ウェブサイトのグローバルヘッダーとフッターの設計。
  • 複雑なサイトの情報アーキテクチャ(IA)の再構築。
  • レスポンシブナビゲーションパターン(モバイルドロワー、メガメニューなど)の実装。
  • コンテンツの多いサイトでの「道案内」の改善(パンくず、サブナビゲーション)。
  • 既存のナビゲーションのアクセシビリティとユーザビリティのギャップに関する監査。

使用すべきでない場合

  • ルーティングが最小限のシングルページアプリケーション(SPA): 単一のビュー内で純粋に機能的なナビゲーションの場合(例: シンプルなダッシュボードツール)。
  • 没入型/実験的サイト: ナラティブや芸術的な目的で標準的なナビゲーションの慣例を意図的に避ける場合。
  • スタンドアロンのランディングページ: 目的が単一のコンバージョンパスであり、グローバルナビゲーションがユーザーの注意をそらす可能性がある場合(ただし、「トップに戻る」リンクや最小限のアンカーナビゲーションは依然として使用される場合があります)。

入力

  1. 情報アーキテクチャ(IA): 階層ごとに分類されたサイトマップまたはページのリスト。
  2. ユーザーペルソナと目標: ユーザーが最も頻繁に実行する必要があるタスクは何ですか?
  3. コンテンツの優先順位: どのリンクが「プライマリ」(グローバル)、「セカンダリ」(コンテキスト)、または「ユーティリティ」(ツール/アカウント)ですか?
  4. デバイスの制約: ターゲットブレイクポイント、タッチ操作とマウス操作の要件。

出力

  1. ナビゲーションマップ: ヘッダー、フッター、サブナビゲーション要素の構造ガイド。
  2. レスポンシブ戦略: ナビゲーションがデスクトップからモバイルにどのように適応するかの定義。
  3. インタラクション仕様: ドロップダウン、アクティブ状態、フォーカス管理の動作。
  4. アクセシビリティランドマーク: スクリーンリーダーナビゲーションのための定義されたロールとラベル。

ワークフロー

1. ナビゲーションレベルの分類

サイトマップを機能的な階層に分割します:

  • プライマリ: コアサイトセクション(例: 製品、サービス、会社概要)。
  • セカンダリ/コンテキスト: 特定のセクションに固有のリンク(例: 特定の製品カテゴリ)。
  • ユーティリティ: コアではないが必要なツール(例: 検索、ログイン、言語選択)。
  • ターシャリ(フッター): SEOリンク、法務、ソーシャル、冗長なグローバルリンク。

2. ナビゲーションパターンの選択

コンテンツの密度に基づいてパターンを選択します:

  • シンプルバー: 3~7リンク。小~中規模サイトに最適。
  • ドロップダウン: 2階層のサイトに最適。
  • メガメニュー: 多くのカテゴリを持つ大規模なEコマースやエンタープライズサイトに最適。
  • モバイルドロワー: モバイルの標準。すべてのナビゲーションレベルを縦積みに含みます。

3. 道案内のためのデザイン

ユーザーが常に自分がどこにいるかを把握できるようにします:

  • アクティブ状態: 現在のページのリンクを視覚的に区別し、支援技術のために aria-current="page" をマークします。
  • パンくず: 3階層より深いサイトで使用します。
  • 一貫した配置: グローバルナビゲーションはすべてのページで同じ場所に配置します。

4. レスポンシブ動作の定義

ナビゲーションがどのように折りたたまれるかを決定します:

  • ブレイクポイントシフト: デスクトップメニューがいつ「ハンバーガー」メニューになるかを正確に決定します。
  • プライオリティペアリング: モバイルでは、優先度が高い場合はユーティリティリンク(「検索」など)をドロワーからヘッダーに移動します。
  • タッチターゲット: WCAG 2.2 SC 2.5.8(ターゲットサイズの最小値)を24x24px、適切な間隔で満たし、主要な親指操作ターゲットには44x44pxを推奨します。

5. アクセシビリティの確立

  • ランドマーク: 一意の aria-label(例: 「メイン」、「フッター」)を付けた <nav> タグを使用します。
  • キーボードパス: 論理的なTab順序と、スティッキーヘッダーやオーバーレイによって隠されることのない可視の :focus-visible 状態を確保します(WCAG 2.2 SC 2.4.11 フォーカスが隠されない)。
  • スキップリンク: キーボードユーザー向けに「スキップしてコンテンツへ」リンクを提供します。
  • ARIA 状態: トグル可能なメニューには aria-expanded と aria-controls を使用します。

決定ルール

  • 7リンクルール: 認知負荷を軽減するために、プライマリナビゲーションは7項目以内に制限するようにします(ミラーの法則)。
  • 革新性より予測可能性: 標準アイコン(メニューはハンバーガー、検索は虫眼鏡)を使用して、即座に認識できるようにします。
  • 視覚的階層: 最も重要なアクション(例: 「はじめる」)はテキストリンクではなく、スタイル付きボタンにします。
  • スティッキー vs スタティック: スティッキーヘッダーは、ユーザーがスクロール中に頻繁にナビゲーションにアクセスする必要がある場合にのみ使用します(例: 長文コンテンツやダッシュボード)。

制約

  • アクセシビリティ: キーボードのみで完全にナビゲート可能である必要があります。ナビリンクのコントラストはWCAG AA(4.5:1)を満たす必要があります。タッチターゲットはWCAG 2.2 SC 2.5.8を満たします。
  • レスポンシブ性: ナビゲーションはビューポートを水平方向にオーバーフローしてはなりません。
  • 階層: ナビゲーションはページのH1やプライマリCTAと競合してはなりません。

一般的な障害パターン

  • 「ミステリーミート」ナビゲーション: 普遍的に理解されていないラベルのないアイコンを使用する。
  • 過剰なヘッダー: 多数のユーティリティリンクを詰め込みすぎて、乱雑さと誤クリックを招く。
  • アクセスできないドロワー: キーボードで閉じることができない、または開いているときにフォーカスをトラップしないモバイルメニューを作成する。
  • フィードバック不足: ユーザーが現在のページにいる場合やリンクにホバーしている場合の視覚的な変化がない。

検証基準

  • ナビゲーションが明確な階層(プライマリ、ユーティリティ、フッター)に構造化されている。
  • アクティブ状態が視覚的に区別可能でアクセシブルである。
  • モバイルナビゲーションが機能し、すべてのプライマリリンクを含んでいる。
  • キーボードユーザーがすべてのリンクにアクセスし、キーボードのみでメニューを閉じることができる。
  • ランドマーク(<nav>)が正しく使用され、ラベル付けされている。
  • モバイルのタッチターゲットが少なくともWCAG 2.2の24x24pxの最小サイズを満たしている(主要アクションでは44x44pxを推奨)。
  • 「スキップしてコンテンツへ」リンクが存在し、機能している。

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.

関連スキル