PixelPilot uiux-consistent-navigation.instructions.md

A set of rules for keeping a website's navigation consistent. The navigation bar and footer are shared across pages, and the current-page link is selected from the URL route.

In plain words
What is it for?
Use it when building a multi-page site, especially with Laravel Blade, to share the navbar and footer, highlight the current page, keep desktop and mobile menus aligned, and apply the same design tokens.
Why use it?
It prevents copied navigation code and mismatched menus, styles, mobile behavior, or active-link states. Changes can be made in shared components instead of several page files.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dev-lou/pixelpilot/uiux-consistent-navigation
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

Made for: GitHub Copilot.

Per session 4,885 This file is loaded in full into every session.
When invoked 4,885 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04885 $0.04885
Opus 5 $0.02442 $0.02442
Sonnet 5 $0.00977 $0.00977
Haiku 4.5 $0.00488 $0.00488

Measured 2d ago against content hash bda08af56005, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-consistent-navigation.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vscode/.github/instructions/uiux-consistent-navigation.instructions.md · 719 lines

How it starts

The opening of the file, as written. The whole thing — 719 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI/UX Consistent Navigation

Navbar and footer as shared components. Active states, responsive design, token-aware styling.


OVERVIEW

This skill ensures:

  1. Single source of truth for navigation
  2. Shared navbar component across all pages
  3. Shared footer component across all pages
  4. Active link highlighting with route matching
  5. Consistent styling (font, spacing, colors)

GOLDEN RULES

  1. Never duplicate navigation markup - use partials/components
  2. Active state comes from route matching - not manual classes
  3. Font sizes and spacing identical - use design tokens
  4. Mobile menu consistent - same items as desktop
  5. Footer on every page - with role="contentinfo"

LARAVEL BLADE STRUCTURE

resources/views/
├── layouts/
│   └── app.blade.php
├── partials/
│   ├── navbar.blade.php
│   ├── navbar-mobile.blade.php
│   └── footer.blade.php
└── pages/
    ├── home.blade.php
    ├── about.blade.php
    └── ...

SHARED NAVBAR (Laravel)

{{-- resources/views/partials/navbar.blade.php --}}
@props(['transparent' => false])

<header 
    class="navbar {{ $transparent ? 'navbar--transparent' : '' }}" 
    role="banner"
    x-data="{ mobileMenuOpen: false }"
>
    <div class="navbar__container">
        {{-- Logo --}}
        <x-logo class="navbar__logo" />
        
        {{-- Desktop Navigation --}}
        <nav class="navbar__nav" aria-label="Main navigation">
            @php
                $navItems = [
                    ['route' => 'features', 'label' => 'Features'],
                    ['route' => 'pricing', 'label' => 'Pricing'],
                    ['route' => 'about', 'label' => 'About'],
                    ['route' => 'contact', 'label' => 'Contact'],
                ];
            @endphp
            
            @foreach($navItems as $item)
                <a 
                    href="{{ route($item['route']) }}" 
                    class="navbar__link {{ request()->routeIs($item['route'] . '*') ? 'navbar__link--active' : '' }}"
                    @if(request()->routeIs($item['route'])) aria-current="page" @endif
                >
                    {{ $item['label'] }}
                </a>
            @endforeach
        </nav>
        
        {{-- Actions --}}
        <div class="navbar__actions">
            @auth
                <a href="{{ route('dashboard') }}" class="btn btn--ghost btn--sm">
                    Dashboard
                </a>
                <div class="navbar__user" x-data="{ open: false }">
                    <button 
                        @click="open = !open" 
                        class="navbar__avatar"
                        aria-haspopup="true"
                        :aria-expanded="open"
                    >
                        <img 
                            src="{{ Auth::user()->avatar_url ?? '/placeholder-avatar.jpg' }}" 
                            alt="{{ Auth::user()->name }}"
                            width="32"
                            height="32"
                        >
                    </button>
                    <div 
                        x-show="open" 
                        @click.away="open = false"
                        class="navbar__dropdown"
                    >
                        <a href="{{ route('profile') }}">Profile</a>
                        <a href="{{ route('settings') }}">Settings</a>
                        <hr>
                        <form method="POST" action="{{ route('logout') }}">
                            @csrf
                            <button type="submit">Sign Out</button>
                        </form>
                    </div>
                </div>
            @else
                <a href="{{ route('login') }}" class="btn btn--ghost btn--sm">
                    Sign In
                </a>
                <a href="{{ route('register') }}" class="btn btn--primary btn--sm">
                    Get Started
                </a>
            @endauth
        </div>
        
        {{-- Mobile Menu Toggle --}}
        <button 
            class="navbar__toggle"
            @click="mobileMenuOpen = !mobileMenuOpen"
            :aria-expanded="mobileMenuOpen"
            aria-label="Toggle navigation menu"
        >
            <i x-show="!mobileMenuOpen" data-lucide="menu"></i>
            <i x-show="mobileMenuOpen" data-lucide="x"></i>
        </button>
    </div>
    
    {{-- Mobile Menu --}}
    <div 
        class="navbar__mobile-menu"
        x-show="mobileMenuOpen"
        x-transition:enter="transition ease-out duration-200"
        x-transition:enter-start="opacity-0 -translate-y-2"
        x-transition:enter-end="opacity-100 translate-y-0"
        x-transition:leave="transition ease-in duration-150"
        x-transition:leave-start="opacity-100 translate-y-0"
        x-transition:leave-end="opacity-0 -translate-y-2"
    >
        @include('partials.navbar-mobile', ['navItems' => $navItems])
    </div>
</header>

Read the full file on GitHub · 719 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 719 lines · 4,885 tokens per session scan A bda08af56005

Subscribe to this mod's changes

PixelPilot uiux-consistent-navigation.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 4mo ago), licensed MIT. It adds 4,885 tokens to every session, about $0.0244 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.