Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement a persistent, hierarchical vertical navigation framework for complex web applications, dashboards, and documentation sites.

O que é coastai-skills?

coastai-skills is a Claude Code agent skill that design and implement a persistent, hierarchical vertical navigation framework for complex web applications, dashboards, and documentation sites.

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

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Sidebar Navigation System

Purpose

The Sidebar Navigation System provides a methodology for designing persistent vertical navigation structures. Unlike horizontal headers, sidebars are optimized for high-density information architectures, supporting deep nesting, secondary utility actions, and workspace switching. This system ensures that users can navigate complex applications with minimal cognitive load while maintaining a clear sense of their current location within a hierarchical environment.

Use Cases

  • SaaS Dashboards: Managing multiple workspaces, tools, and data views.
  • Admin Panels: Organizing extensive management functions and system settings.
  • Documentation Sites: Navigating deep hierarchies of articles, sections, and API references.
  • Internal Tools: Structuring complex workflows and data-entry modules.
  • Content Management Systems (CMS): Switching between page editing, media libraries, and user permissions.

When NOT to Use

  • Marketing Landing Pages: Where a simple horizontal header is more appropriate for conversion-focused navigation.
  • Simple Blog Sites: Where breadcrumbs and top-level links provide sufficient wayfinding.
  • Mobile-First Consumer Apps: Where a bottom tab bar is better suited for primary thumb-zone interaction.
  • Immersive Narrative Sites: Where persistent UI elements might distract from the storytelling experience.

Inputs

  1. Information Architecture (IA): A map of all pages and tools, grouped by functional relationship.
  2. User Contexts: Identifying different user roles and the primary tasks they perform.
  3. Workspace Levels: Determining if the app requires switching between different accounts or projects.
  4. Brand Style Tokens: Colors, typography, and spacing from the existing design system.
  5. Interactive Component Inventory: Standardized icons, badges (for notifications), and buttons.

Outputs

  1. Sidebar Anatomy Spec: Defined regions (Branding, Workspace Switcher, Primary Nav, Secondary Nav, User Footer).
  2. Interaction Matrix: Behavior for hover, focus, active states, and nesting (expand/collapse).
  3. Responsive Mapping: Rules for how the sidebar transforms (e.g., Fixed -> Collapsed Rail -> Mobile Drawer).
  4. State Specifications: Defined visual treatments for different navigation levels and notification indicators.

Workflow

1. Define the Navigation Levels

Organize the IA into a vertical hierarchy:

  • Level 1 (Direct): Core sections always visible in the primary list.
  • Level 2 (Nested): Sub-sections revealed via expansion or drill-down.
  • Global Actions: Secondary utilities like "Settings," "Help," or "Notifications" usually placed at the bottom.

2. Establish the Visual Anatomy

Divide the sidebar into functional zones:

  • Header: Brand logo and workspace/account switcher.
  • Body (Scrollable): The primary navigation list.
  • Footer (Fixed): User profile, system settings, and collapse/expand trigger.

3. Design the Nesting Pattern

Choose how to handle deep hierarchy:

  • Accordion: Expanding sections that push other items down. Best for 2 levels.
  • Flyout: Sub-menus that appear next to the sidebar on hover/click. Best for narrow "rail" sidebars.
  • Drill-down: The entire sidebar view swaps for a sub-level view. Best for very deep structures.

4. Create the State Matrix

Apply consistent visual feedback (from interactive-state-system):

  • Active State: Use a high-contrast indicator (e.g., color bar or background shift) to show the current page.
  • Hover/Focus: Subtle background change to indicate interactivity.
  • Notification Badges: Use the badge-and-tag-system to show unread items or status.

5. Plan Responsive Adaptation

Map the sidebar's behavior across breakpoints:

  • Desktop (>1200px): Fixed, wide sidebar (240px-280px).
  • Tablet (768px-1200px): Collapsed "Rail" showing only icons, expanding on hover/click.
  • Mobile (<768px): Hidden by default, appearing as a full-screen drawer triggered by a hamburger icon. Apply the inert attribute (or equivalent) to the main content while the drawer is open so keyboard and screen-reader users can't tab into content hidden behind it.

Decision Rules

  • The "Seven Item" Rule: Limit top-level groups to seven or fewer to ensure they are easily scannable without scrolling.
  • Iconography Requirement: Always use icons for Level 1 items. Icons provide a visual anchor that aids recognition, especially in collapsed states.
  • Label Persistence: Labels should never be hidden in the desktop view unless the user explicitly collapses the sidebar.
  • Visual Distinction: Ensure Level 2 items are visually distinct from Level 1 (e.g., through indentation, smaller font size, or muted color).
  • Active Page Visibility: The active page indicator must be the most prominent visual state in the sidebar.

Constraints

  • Accessibility: The sidebar must be wrapped in a <nav> with a unique aria-label. Use aria-expanded for nested items. When the sidebar or its flyouts overlay content, ensure the currently focused item is never fully hidden behind another layer (WCAG 2.2, 2.4.11 Focus Not Obscured).
  • Responsiveness: The sidebar must not overlap content on desktop; it should push or squeeze the main content area.
  • Visual Hierarchy: Branding and Workspace switchers must be at the top; User settings and help must be at the bottom.
  • Touch Targets: All links and expand triggers must meet at least the WCAG 2.2 24x24px minimum target size (2.5.8); 44x44px is preferred for primary nav items given how frequently they're used.

Common Failure Patterns

  • Scroll-within-Scroll: Having a scrollable sidebar and a scrollable content area that compete for user focus, leading to "scroll hijacking" feel.
  • The "Invisible Active" State: Making the current page indicator so subtle that the user loses their place.
  • Over-nesting: Going deeper than 3 levels, making the navigation feel like a file-system rather than an application.
  • Hidden Collapse Trigger: Hiding the "Close" or "Collapse" button in a place where users can't find it.
  • Unlabeled Icons: Using icons without text labels in the primary view, relying on "mystery meat" navigation.

Validation Criteria

  • Sidebar is structured into clear zones (Header, Body, Footer).
  • Active state is clearly distinct from hover and default states.
  • All Level 1 items have a unique and recognizable icon.
  • Nested items are visually subordinated to their parent items.
  • The sidebar is fully keyboard navigable (Tab and Arrow keys).
  • Mobile and Tablet responsive states are defined and functional.
  • ARIA landmarks and states are correctly implemented.
  • Contrast ratios for text and indicators meet WCAG AA (4.5:1).
  • Touch targets meet at least the WCAG 2.2 24x24px minimum.
  • Mobile drawer applies inert (or equivalent) to background content while open.

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.

Habilidades Relacionadas