navigation
Skill1 starsChanged 3 months agoMITView on GitHub
Design and build the site header and menus for an ultraweb site — four named variants (slim-bar, centered-logo, floating-pill, mega-menu), sticky hide-on-scroll-down/show-on-up behavior, a mobile menu designed as a moment rather than a bare drawer, active-link indication, a mandatory skip-link, and complete keyboard support. Invoke during the Build phase for any header or menu work — trigger phrases — "navbar", "header", "navigation", "menu", "mobile nav", "hamburger", "sticky header", "mega menu".
9 other projects use a version of this.
Adopted by
Most recently taken up by
- astriaai/skillstheir own version, first seen Sep 12, 2026
- VeryGoodOpenSource/vgv-ai-flutter-plugintheir own version, first seen Aug 20, 2026
- robium-ai/robiumtheir own version, first seen Aug 7, 2026
- mgifford/accessibility-skillstheir own version, first seen Jul 27, 2026
- TheBeardedBearSAS/claude-crafttheir own version, first seen Jul 22, 2026
- AlexeyPerov/Unity-Open-MCPtheir own version, first seen Jul 14, 2026
Used with
Projects with it also use testing.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- VeryGoodOpenSource/vgv-ai-flutter-plugin★ 168same name
- TheBeardedBearSAS/claude-craft★ 106same name
- mgifford/accessibility-skills★ 50same name
- robium-ai/robium★ 21same name
- AlexeyPerov/Unity-Open-MCP★ 15same name
- moasq/ios-dev-agent★ 4same name
- astriaai/skills★ 2same name
- aubynsamuel/android-dev-skills★ 1same name
- miovrag/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- ultrawebSkill
- analyticsSkill
- animejsSkill
- api-designSkill
- app-structureSkill
- assetsSkill
- authSkill
- award-canonSkill
- briefSkill
- buttonsSkill
- cardsSkill
- cartSkill
- checkpointSkill
- colorSkill
- command-paletteSkill
- component-apiSkill
- consentSkill
- content-cmsSkill
- copywritingSkill
- databaseSkill
- data-displaySkill
- data-fetchingSkill
- depthSkill
- directionSkill
- emailSkill
- faqSkill
- feature-sectionsSkill
- footerSkill
- formsSkill
- gate-accessibilitySkill
- gate-antislopSkill
- gate-codeSkill
- gate-contentSkill
- gate-performanceSkill
- gate-responsiveSkill
- gate-visualSkill
- handoffSkill
- heroSkill
- hidden-craftSkill
- i18nSkill
- iconsSkill
- identitySkill
- imagerySkill
- iterateSkill
- layout-gridSkill
- marginaliaSkill
- media-optimizationSkill
- micro-interactionsSkill
- mockupSkill
- motion-languageSkill
- overlaysSkill
- page-transitionsSkill
- paymentsSkill
- physicsSkill
- previewSkill
- pricingSkill
- print-craftSkill
- product-detailSkill
- retrofitSkill
- routingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Read SITEMAP.md for the destination list.
- Very specific: line 88
No skip-link; focus:outline-none with no focus-visible replacement.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
navigation — chrome that recedes, never disappears
Stage: Phase 6 — Build - Reads: design/SYSTEM.md, design/SITEMAP.md, design/DIRECTION.md - Writes: components/layout/header.tsx (+ mobile-menu.tsx when extracted)
Standard
Navigation is judged by how little you notice it until you need it — then it must be instant, obvious, and keyboard-perfect. First-grade means:
- Sticky with intent: hides on scroll-down, returns on scroll-up. Never an always-fixed bar eating 64-80px of every viewport.
- The mobile menu is a designed moment — typography, choreography, one extra beat of personality — not a shadcn Sheet with a link list dropped in.
- Skip-link, aria-current, focus-visible, Escape handling: all present, all verified by an actual keyboard walkthrough.
- <=7 top-level destinations. More is an information-architecture problem — push back to SITEMAP.md, or go mega-menu deliberately.
- On a multi-section or multi-world page the incoming section's brand color doubles as wayfinding (
award-canon: The Masked Cut — section color as a location signal, owned bypage-transitions); the nav's active/location state mirrors it, but never by color alone — always keep the aria-current underline, dot, or weight shift. - Where SITEMAP.md holds an index or archive, offer Archive-as-Toy browse affordances (
award-canon): filter by unexpected axes (mood, colour, medium — Frans Hals, SOTD 2018 — not just date) and a "surprise me," layered over a working, crawlable, filterable list, never replacing it.
Process
- Read SITEMAP.md for the destination list; the header CTA mirrors the site's #1 conversion goal.
- Pick a variant below per DIRECTION.md. Bar height 56-72px desktop, 56-64px mobile.
- Build the scroll behavior (rules below). The header is a
"use client"leaf — the surrounding layout stays server. - Build the mobile menu as its own moment (rules below).
- Keyboard pass from a fresh page load: skip-link first, then logo, links in order, CTA, hamburger. Escape closes anything open.
Variants
slim-bar — logo left, links right, one CTA. Default for SaaS/product/local business. The CTA is the only filled element in the bar.
centered-logo — links split around a centered logo. Editorial, fashion, boutique. Requires an explicit balance decision: which side carries the extra link or the CTA.
floating-pill — detached rounded bar inset 12-24px from the viewport top, solid surface from SYSTEM tokens. Modern product/portfolio directions. Backdrop blur only if SYSTEM.md §depth explicitly designed glass — never as a default.
mega-menu — grouped panels under 2-3 trigger items. Only when SITEMAP.md holds 12+ real destinations (docs, multi-product). Panels open on click (hover-intent as enhancement), close on Escape and focus-out, arrow keys move within a panel.
Scroll behavior
- Track direction with an 8px threshold (ignores trackpad jitter); hide only after 96px of scroll depth. Plain React, no library:
"use client";
const [hidden, setHidden] = useState(false);
useEffect(() => {
let last = window.scrollY;
const onScroll = () => {
const y = window.scrollY;
if (Math.abs(y - last) < 8) return;
setHidden(y > last && y > 96);
last = y;
};
window.addEventListener("scroll", onScroll, { passive: true });
return () => window.removeEventListener("scroll", onScroll);
}, []);- Apply as
translateY(-100%)with a 200-250ms transition from SYSTEM's easing family — animate transform only, nevertop. - Force-visible when: the mobile menu is open, focus is inside the header (focus-within), or
prefers-reduced-motion— then it is plain sticky, no hide. - Scrolled state at y > 16px: only then add border/shadow/surface tint. At page top the bar sits flush with the hero; chrome appears once content slides beneath it.
Mobile menu — a designed moment
- Full-screen or near-full panel; links at display scale — the one place nav type gets big: 2-3.5rem via clamp().
- Choreography: panel 300-450ms, links stagger 40-80ms apart, 400-700ms total. Exit via
AnimatePresence(import from"motion/react", file marked"use client"). Reduced motion: instant open/close, no stagger. - One extra beat: a contact/social row, a surface color shift, or the signature motif — something that makes it THIS site's menu.
- Mechanics:
<button>trigger (44px target) witharia-expanded+aria-controls; focus moves into the panel on open and returns to the trigger on close; focus trapped inside; Escape closes; body scroll locked while open. Build on a restyled shadcn dialog primitive or hand-roll — either way all six behaviors are verified, not assumed.
Active link + states
- Current page:
aria-current="page"(derive via usePathname) plus a non-color-only indicator — underline, dot, or weight shift. One-pagers: section highlight via IntersectionObserver. - Hover: 150-250ms, ONE move (underline draw, color, or slight shift) — the same move on every nav link, from the
ultraweb:micro-interactionsvocabulary. - focus-visible: palette-token ring on every interactive element;
outline-nonewithout a replacement is a defect.
Skip-link (mandatory)
First focusable element on the page, before the header:
<a href="#main" className="sr-only focus:not-sr-only focus:absolute focus:z-50">Skip to content</a>Pair with <main id="main" tabIndex={-1}> so the jump actually moves focus. Style the visible state deliberately — it is part of the design, not a legal fig leaf.
Anti-patterns
- No skip-link;
focus:outline-nonewith no focus-visible replacement. hidden md:flexon the link list with no mobile menu shipped — mobile users get nothing.<div onClickhamburger — it is a<button>, always.backdrop-bluron the bar by default — glass is a depth decision, not a nav reflex.- Hide-on-scroll with no threshold — the bar flickers on rubber-band scroll.
z-[9999]— layering was never designed; use SYSTEM's z-scale.- Menu open but body still scrolls behind it; focus escaping the open panel.
- 10+ flat links crammed in the bar; hover-only dropdowns keyboard users cannot open.
Worked example — Tidepool, port-logistics analytics site header
Moved to references/example.md — read only when this build's case is genuinely ambiguous; the sections above are the decision material.
Composes with
Moved to references/composes.md — the handoff map; load it when orchestrating this skill against its neighbors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

