Index of every page on this site: llms.txt
All skills
amanktyr avatar

/accessibility

@5711aad
by Aman Ktyramanktyr/tailor6 stars
Run it yourself

Enforces web accessibility (a11y), WCAG 2.1 AA guidelines, keyboard navigation, focus management, semantic HTML, and ARIA patterns.

Use this Skill: https://skilld.dev/gh/amanktyr/tailor/accessibility

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈37 tokens for metadata: the name and description. ≈764 when used: this file.

Description uses 1.8% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈147 characters, or 1.8%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Accessibility (a11y) Skill

Activate this skill when creating or modifying user interfaces, form inputs, modal dialogs, menus, navigation bars, interactive widgets, or visual styling.

Accessibility Law: Accessible software is usable software for everyone. Use semantic HTML first and manage focus and motion rigorously.


1. Semantic HTML First (First Line of Defense)

  • Always prefer native HTML5 elements (<button>, <nav>, <main>, <dialog>, <header>, <article>, <section>, <aside>) over generic <div> or <span> elements with click handlers.
  • Do NOT add redundant ARIA attributes when native elements already provide implicit roles (e.g. avoid <button role="button"> or <nav role="navigation">).

2. Keyboard Navigation & Focus Management

  • Full Keyboard Operability: Every interactive element must be reachable and actionable via keyboard (Tab, Shift+Tab, Enter, Space, Escape, and arrow keys).
  • Visible Focus Indicators: Never remove focus outlines (outline: none without providing an accessible :focus-visible replacement).
  • Focus Trapping in Modal Dialogs:
    • When a modal opens, trap keyboard focus within the dialog container.
    • Pressing Escape must close the dialog.
    • When closed, restore focus back to the triggering element.

3. Forms & Labeling

  • Every form control (<input>, <select>, <textarea>) must have an associated <label for="inputId"> or aria-labelledby.
  • Provide clear, inline error messages linked to inputs via aria-describedby="errorId" and marked with aria-invalid="true".

4. Visual Contrast & Media

  • Color Contrast (WCAG 2.1 AA):
    • Normal text: Minimum contrast ratio of 4.5:1 against its background.
    • Large text (18pt+ or 14pt bold): Minimum contrast ratio of 3.0:1.
    • Interactive UI components & graphical objects: Minimum 3.0:1.
  • Informative vs Decorative Images:
    • Informative images: Descriptive alt="User profile photo of Jane Doe".
    • Purely decorative images: Explicit empty alt="" and aria-hidden="true".

5. Dynamic Announcements (Live Regions)

  • For dynamic asynchronous updates, notifications, toast messages, and shopping cart counters:
    • Use aria-live="polite" for non-disruptive announcements (e.g. "Item added to cart", "Save completed").
    • Use aria-live="assertive" or role="alert" strictly for critical errors requiring immediate user intervention.
    • Ensure live region containers exist in the DOM before dynamic content is injected into them.

6. Motion Sensitivity (Vestibular Safety)

  • Respect user motion preferences by wrapping non-essential animations, transitions, and parallax scrolling with the prefers-reduced-motion media query:
    @media (prefers-reduced-motion: reduce) {
      *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts27d3 checks · Risk SAFE
  • Gen Agent Trust Hub27d

    This skill is safe. It provides instructional guidelines for web accessibility (a11y) and does not contain any executable code, network operations, or security risks.

  • Socket27d

    No alerts

  • Snyk27d

    Risk: LOW · No issues

Signed by skilld at 5711aad. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month

README badge

README badge for amanktyr/tailor/accessibility