astro-navigation

Navigation patterns for Astro sites. Header, footer, mobile menu, breadcrumbs, skip links. Use for all navigation implementation.

16 stars

Best use case

astro-navigation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Navigation patterns for Astro sites. Header, footer, mobile menu, breadcrumbs, skip links. Use for all navigation implementation.

Teams using astro-navigation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/astro-navigation/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/fullstack-web/astro-navigation/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/astro-navigation/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How astro-navigation Compares

Feature / Agentastro-navigationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Navigation patterns for Astro sites. Header, footer, mobile menu, breadcrumbs, skip links. Use for all navigation implementation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Astro Navigation Skill

## Purpose

Provides navigation patterns for lead generation sites. Mobile-first, accessible, conversion-focused. Implements header, footer, mobile menu, breadcrumbs, and skip links with proper keyboard navigation and screen reader support.

## Core Rules

1. **Mobile-first** — Design for 375px, enhance for desktop
2. **Phone prominent** — Click-to-call in header on mobile
3. **CTA visible** — Primary CTA always accessible
4. **Accessible** — Keyboard navigable, screen reader friendly
5. **Fast** — No layout shift on menu toggle
6. **Sticky elements** — Header fixed top, mobile CTA bar fixed bottom
7. **Active states** — Indicate current page in navigation
8. **Skip link** — Allow keyboard users to skip to main content
9. **Escape key** — Close mobile menu with Escape
10. **Safe areas** — Account for iOS notch/safe areas

## Navigation Components

### Header
- Sticky header with logo, desktop nav, phone, and CTA
- Mobile menu button visible only on mobile
- Logo always links to homepage
- Phone number clickable with proper tel: link

### Mobile Menu
- Slide-in overlay from right
- Backdrop closes menu on click
- Escape key closes menu
- Prevents body scroll when open
- CTAs at bottom (Quote + Phone)

### Footer
- Four-column grid on desktop, stacked on mobile
- Company info, services, areas, quick links
- Bottom bar with copyright and legal links
- Extra padding on mobile to clear sticky CTA bar

### Breadcrumbs
- Schema.org structured data
- Current page indicated with aria-current
- Proper semantic markup with ol/li

### Skip Link
- Hidden by default, visible on focus
- Fixed position with high z-index
- Jumps to #main-content

### Active Link Styling
- Checks current pathname
- Applies aria-current="page"
- Visual indicator (color + font weight)

## Navigation Structure

```
Header (sticky top)
├── Logo (links to /)
├── Desktop Nav (hidden on mobile)
├── Desktop CTA (phone + button)
└── Mobile Menu Button (hidden on desktop)

Mobile Menu (overlay)
├── Close Button
├── Navigation Links
└── CTAs (Quote + Phone)

Footer (pb-24 on mobile, pb-12 on desktop)
├── Company Info
├── Services Links
├── Areas Links
├── Quick Links
└── Bottom Bar (copyright + legal)

Sticky Mobile CTA Bar (fixed bottom, mobile only)
├── Call Button
└── Quote Button
```

## References

Implementation details in references directory:

- [Header](./references/header.md) — Desktop header with nav and mobile menu button
- [Mobile Menu](./references/mobile-menu.md) — Slide-in menu with animation and script
- [Sticky CTA Bar](./references/sticky-cta-bar.md) — Fixed bottom bar for mobile
- [Footer](./references/footer.md) — Four-column footer with extra mobile padding
- [Breadcrumbs](./references/breadcrumbs.md) — Schema.org breadcrumb navigation
- [Skip Link](./references/skip-link.md) — Accessibility skip-to-content link
- [Active Link Styling](./references/active-link-styling.md) — Current page indication

## Key Patterns

**Mobile Menu Animation:**
- Hidden with `translate-x-full`, visible with `translate-x-0`
- Uses `requestAnimationFrame` for smooth transition
- 300ms duration matches CSS transition

**Sticky Elements:**
- Header: `sticky top-0 z-50`
- Mobile CTA: `fixed bottom-0 z-40`
- Footer: `pb-24` on mobile to clear CTA bar

**Accessibility:**
- `aria-expanded` on menu toggle
- `aria-current="page"` on active links
- `aria-label` on navigation landmarks
- Skip link for keyboard navigation

## Forbidden

- ❌ Hamburger menu on desktop
- ❌ Navigation without keyboard support
- ❌ Missing aria-expanded on toggles
- ❌ Logo without link to homepage
- ❌ Phone number not clickable on mobile
- ❌ Footer hidden by sticky mobile bar

## Definition of Done

- [ ] Mobile menu works (open/close/escape)
- [ ] Phone number clickable on mobile
- [ ] CTA visible on all viewports
- [ ] Skip link present
- [ ] Keyboard navigable
- [ ] Active page indicated
- [ ] Footer above mobile sticky bar
- [ ] Breadcrumbs on inner pages

Related Skills

astropy-fundamentals

16
from diegosouzapw/awesome-omni-skill

Work with astronomical data using Astropy for FITS file I/O, coordinate transformations, physical units, precise time handling, and catalog operations. Use when processing telescope images, matching celestial catalogs, handling time-series observations, or building photometry/spectroscopy pipelines. Ideal for astronomy research requiring proper unit handling, coordinate frame transformations, and astronomical time scales.

astrology-interpretation-guide

16
from diegosouzapw/awesome-omni-skill

Comprehensive astrology expert covering natal charts, transits, houses, aspects, and astrological traditions from Western to Vedic

astro-page-generator

16
from diegosouzapw/awesome-omni-skill

Generate Astro page components with islands architecture. Triggers on "create astro page", "generate astro component", "astro file", ".astro page".

astro-monorepo

16
from diegosouzapw/awesome-omni-skill

Guidelines for working on the Astro framework monorepo - covers build system, testing, coding conventions, and contribution workflow. Use when contributing to withastro/astro.

astro-testing

16
from diegosouzapw/awesome-omni-skill

Testing and QA gate for Astro lead gen sites. Manual + E2E + A11y + Performance. FAIL = no deploy.

astro-security

16
from diegosouzapw/awesome-omni-skill

Security patterns for Astro lead generation websites on Cloudflare. Forms, headers, bot protection, GDPR. Use for any production lead gen site.

astro-frontend-ui

16
from diegosouzapw/awesome-omni-skill

Build the Astro frontend with Tailwind CSS v4 via the Vite plugin, a WPGraphQL data layer, and React islands (shadcn/ui) only where needed. Use when implementing or fixing frontend files under frontend/ for this WordPress headless repo.

astro-developer

16
from diegosouzapw/awesome-omni-skill

Comprehensive Astro web framework development guidance for 2026. Use when building, configuring, or troubleshooting Astro projects; creating components; setting up routing; implementing islands architecture; working with React, Tailwind CSS, and Node.js integrations; testing; performance optimization; or deployment strategies. Includes TypeScript patterns, state management, API routes, and common pitfalls solutions.

astro-dev

16
from diegosouzapw/awesome-omni-skill

Comprehensive Astro development with React, Tailwind v4, and Cloudflare Workers deployment

managing-astro-deployments

16
from diegosouzapw/awesome-omni-skill

Manage Astronomer production deployments with Astro CLI. Use when the user wants to authenticate, switch workspaces, create/update/delete deployments, or deploy code to production.

medusa-astro-storefront

16
from diegosouzapw/awesome-omni-skill

Build blazing fast e-commerce storefronts using MedusaJS as headless backend and Astro for static-first rendering with React islands. Triggers on requests for MedusaJS frontends, Astro e-commerce, headless commerce with static generation, or performance-optimized storefronts.

astropy

16
from diegosouzapw/awesome-omni-skill

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.