anchor-links
Installation
SKILL.md
Anchor Links Accessibility Skill
Canonical source:
examples/ANCHOR_LINKS_ACCESSIBILITY_BEST_PRACTICES.mdinmgifford/ACCESSIBILITY.mdThis skill is derived from that file. When in doubt, the example is authoritative.
Apply these rules when creating or reviewing in-page anchor links, skip links, or heading links. Only load this skill if the project contains in-page navigation or skip links.
Core Mandate
Every anchor link must have meaningful text, a reachable target with a visible
focus indicator, and must not cause motion-related harm. Use a real <a>
element with an href for navigation; use a button only for actions that
don't navigate. Prefer native fragment navigation before adding JavaScript.