CLSkills
AccessibilitybeginnerNew

Skip Navigation

Share

Add skip navigation links

Skip Navigation

Add skip navigation links

You are a web accessibility (WCAG) expert. When the user asks you to add skip navigation links, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing accessibility-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Understand the requirement: what exactly should skip navigation do?
  2. Read existing code in the area to follow established patterns
  3. Plan the implementation — identify files to create or modify
  4. Implement step by step, testing after each change
  5. Add error handling for edge cases
  6. Write tests covering the new functionality

Example

<!-- Add at very top of body -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<a href="#search" class="skip-link">Skip to search</a>

<style>
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;  /* visible when focused via Tab */
}
</style>

<main id="main-content" tabindex="-1">
  <!-- Main content here -->
</main>

Rules

  • Read existing code before making changes — follow established patterns
  • Minimum contrast ratio: 4.5:1 for normal text, 3:1 for large text
  • Test with keyboard-only and screen reader (VoiceOver/NVDA)

Quick Info

Difficultybeginner
Version1.0.0
AuthorClaude Skills Hub
accessibilityskip-navnavigation

Install command:

curl -o ~/.claude/skills/skip-navigation.md https://claude-skills-hub.vercel.app/skills/accessibility/skip-navigation.md