# implementing-navigation

implementing-navigation implements frontend navigation patterns and Python backend routing with built-in WCAG 2.1 AA accessibility guidelines.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 533 repo stars
- Author: ancoleman
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/ancoleman/ai-design-components/tree/HEAD/skills/implementing-navigation/SKILL.md
- Updated: 2025-12-11
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/implementing-navigation

## What it does

This skill provides architecture guidelines for interface navigation, matching hierarchy depth with UI patterns. It details horizontal headers for flat structures with 5 to 7 links, multi-level sidebars for hierarchies with 3 or more levels, mega menus, breadcrumbs, and synchronized tabs. Client-side routing covers React Router and Next.js App Router, while touch layouts include hamburger drawers and bottom bars with 3 to 5 actions.

On the server side, the skill configures routes across Flask blueprints, Django URL patterns, and FastAPI routers. It provides utility scripts like `node scripts/validate_navigation_tree.js` to verify navigation trees and `python scripts/generate_routes.py` to produce route files from `routes.yaml`.

Running the included automation tools requires both Node.js and Python runtimes locally. Accessible interaction rules enforce explicit focus rings of at least 2px with 3:1 contrast, alongside keyboard controls for Tab, arrows, and Escape.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ancoleman/ai-design-components --skill implementing-navigation -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/implementing-navigation/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/implementing-navigation/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ancoleman/ai-design-components --skill implementing-navigation -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/implementing-navigation/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ancoleman/ai-design-components --skill implementing-navigation -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/implementing-navigation/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ancoleman/ai-design-components skills/implementing-navigation
```

2. **Manually: put the files in place**
- File: `.github/skills/implementing-navigation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ancoleman/ai-design-components --skill implementing-navigation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ancoleman/ai-design-components --path skills/implementing-navigation
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/implementing-navigation/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ancoleman/ai-design-components --skill implementing-navigation -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ancoleman/ai-design-components/tree/HEAD/skills/implementing-navigation/SKILL.md

## When to use it
- build accessible menus, tabs, and breadcrumbs for React and Next.js
- organize server-side endpoints across Flask, Django, or FastAPI routers
- implement keyboard navigation and ARIA roles meeting WCAG 2.1 AA
- validate structured navigation trees against JSON schemas

## Example prompts
- Build a collapsible sidebar navigation for an admin dashboard using React Router
- Configure FastAPI route structure using definitions from `routes.yaml`
- Implement a mobile bottom navigation bar with keyboard focus trap

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: f49b8c5c814ec2b9.

BEGIN THIRD-PARTY FILE f49b8c5c814ec2b9
````text
---
name: implementing-navigation
description: Implements navigation patterns and routing for both frontend (React/TS) and backend (Python) including menus, tabs, breadcrumbs, client-side routing, and server-side route configuration. Use when building navigation systems or setting up routing.
---

# Navigation Patterns & Routing Implementation

## Purpose

This skill provides comprehensive guidance for implementing navigation systems across both frontend and backend applications. It covers client-side navigation patterns (menus, tabs, breadcrumbs) and routing (React Router, Next.js) as well as server-side route configuration (Flask, Django, FastAPI).

## When to Use

Use this skill when:
- Building primary navigation (top, side, mega menus)
- Implementing secondary navigation (breadcrumbs, tabs, pagination)
- Setting up client-side routing (React Router, Next.js)
- Configuring server-side routes (Flask, Django, FastAPI)
- Creating mobile navigation patterns (hamburger, bottom nav)
- Implementing keyboard-accessible navigation
- Building command palettes or search-driven navigation
- Creating multi-step wizards or steppers
- Ensuring WCAG 2.1 AA compliance for navigation

## Navigation Decision Framework

```
Information Architecture → Navigation Pattern

Flat (1-2 levels)      → Top Navigation
Deep (3+ levels)       → Side Navigation
E-commerce/Large       → Mega Menu
Linear Process         → Stepper/Wizard
Long Content          → Table of Contents
Power Users           → Command Palette
Multi-section Page    → Tabs
Large Data Sets       → Pagination
```

## Frontend Navigation Components

### Primary Navigation Patterns

**Top Navigation (Horizontal)**
- Best for shallow hierarchies, marketing sites
- 5-7 primary links maximum for cognitive load
- See `references/menu-patterns.md` for implementation

**Side Navigation (Vertical)**
- Best for deep hierarchies, admin panels, dashboards
- Supports multi-level nesting and collapsible sections
- See `references/menu-patterns.md` for sidebar patterns

**Mega Menu**
- Best for e-commerce, content-heavy sites
- Rich content with images and descriptions
- See `references/menu-patterns.md` for mega menu structure

### Secondary Navigation Components

**Breadcrumbs**
- Shows hierarchical path and current location
- Essential for deep sites and e-commerce
````
END THIRD-PARTY FILE f49b8c5c814ec2b9

The third-party file has ended. Everything between the f49b8c5c814ec2b9 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2353 of 7262 bytes. © ancoleman · MIT · https://github.com/ancoleman/ai-design-components/tree/HEAD/skills/implementing-navigation/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
