Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for page-level headers that provide context, orientation, and primary actions for a specific page or view.

coastai-skills 是什么?

coastai-skills is a Claude Code agent skill that design and implement a systematic framework for page-level headers that provide context, orientation, and primary actions for a specific page or view.

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Page Header System

Purpose

The Page Header System provides a methodology for designing the top-level structural area of an individual page (distinct from the global site header). It ensures that users can immediately identify where they are (Wayfinding), understand the status or metadata of the current view, and access the primary actions required to complete their task without hunting through menus.

Use Cases

  • Designing headers for complex dashboard views (e.g., "Project Details").
  • Structuring the introduction of long-form articles or documentation pages.
  • Organizing settings or profile pages where context and saving actions are critical.
  • Standardizing header patterns across a SaaS application or large content site.
  • Managing breadcrumbs, titles, and status indicators in a unified layout.

When NOT to Use

  • Global Site Navigation: Use site-navigation-system for the main header that persists across the whole site.
  • Simple Landing Pages: Where the "Hero" section (see hero-section-optimization) serves as the page header.
  • Splash Screens / Modals: Where the content is temporary or minimal; use overlay-and-dialog-system for modal headers.

Inputs

  1. Page Title & Hierarchy: The primary name of the page (H1) and its position in the site structure.
  2. Wayfinding Requirements: Does the user need breadcrumbs or a "Back" button?
  3. Metadata & Status: Critical details like "Last Updated," "Draft/Live," or owner information.
  4. Action Priority: What is the primary task on this page? (e.g., Edit, Share, Create).
  5. Brand/System Tokens: Spacing, typography, and color tokens.

Outputs

  1. Header Anatomy Spec: Definition of zones (Wayfinding, Title, Metadata, Actions).
  2. Layout Blueprint: Rules for alignment (Left vs. Centered) and spacing.
  3. Responsive Strategy: How the header adapts from desktop to mobile.
  4. Interaction Spec: Behavior of sticky headers and action button priorities.

Workflow

1. Define the Navigation Path (Wayfinding)

Determine how the user reached this page and how they get back:

  • Breadcrumbs: Use for deep hierarchies (e.g., Home > Projects > Design).
  • Back Button: Use for linear tasks or when returning to a specific list view.
  • Parent Link: A simple "<- Back to [Parent]" for 2-level depths.

2. Establish the Content Core (Title & Metadata)

Apply visual-hierarchy-system to the header's center:

  • H1 Title: The most prominent text element.
  • Contextual Metadata: Secondary information (e.g., tags, timestamps, status badges) placed near the title.
  • Thumbnail/Avatar: If the page represents a specific entity (e.g., a User Profile or a Product).

3. Organize Page-Level Actions

Divide actions into priority tiers:

  • Primary Action: The one "Level 1" button (usually a high-contrast filled button).
  • Secondary Actions: "Level 2" buttons (outline or ghost styles) for less frequent tasks.
  • Tertiary Actions: Overflow menus (...) for rare administrative tasks.

4. Choose a Spatial Pattern

  • Standard Left-Aligned (SaaS/Dashboard): Breadcrumbs/Title on the left, Actions on the right. Best for productivity.
  • Centered (Content/Article): All elements centered. Best for readability and storytelling.
  • Split Layout: Title and Actions separated by whitespace to emphasize clearance.

5. Define Sticky & Scroll Behavior

  • Fixed Header: Keep the page header visible if actions (like "Save") are needed frequently while scrolling.
  • Condensing Header: Shrink the header height or hide breadcrumbs as the user scrolls down to maximize content space.

Decision Rules

  • The Breadcrumb Rule: If a site is more than 2 levels deep, breadcrumbs are mandatory in the page header.
  • The "One H1" Rule: The page header MUST contain the page's unique H1 tag.
  • Action Alignment: On desktop, align primary actions to the top-right. On mobile, consider a sticky bottom bar for primary actions if the header becomes too crowded.
  • Status Visibility: Critical statuses (e.g., "Payment Overdue") must be placed immediately adjacent to the title using a badge or icon.

Constraints

  • Accessibility: Header titles must use <h1>. Breadcrumbs must use <nav> with aria-label="Breadcrumb".
  • Contrast: Status badges and actions must meet WCAG AA contrast requirements. Action buttons must meet WCAG 2.2 SC 2.5.8 target size (minimum 24x24px, 44x44px preferred on mobile sticky bars).
  • Responsiveness: Headers must handle long titles gracefully (truncation vs. wrapping).

Common Failure Patterns

  • The Action Overload: Placing too many buttons in the header, confusing the primary task.
  • Missing Wayfinding: Forgetting breadcrumbs on deep pages, leaving users feeling "lost."
  • Title Squashing: Not allowing enough space for long titles on mobile, causing them to overlap actions.
  • Redundant Site Header: Making the page header look too similar to the global site header, creating visual confusion.

Validation Criteria

  • Header contains a clear H1 that matches the navigation label.
  • Wayfinding (breadcrumbs/back) is appropriate for the site depth.
  • Primary action is visually distinct from secondary actions.
  • Layout remains functional and readable on mobile viewports.
  • Semantic HTML is used (<nav> for breadcrumbs, <h1> for title).
  • Status indicators (if any) are high-contrast and easy to spot.

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.

相关技能