Source profileQuality 87/100

gaia-react/gaia/.claude/skills/a11y-fixes/SKILL.md

a11y-fixes

Resolve axe-core accessibility violations reported by Vitest (test/a11y.ts), Playwright (.playwright/a11y.ts), or the code-audit-frontend agent's a11y bucket. Trigger on any axe rule id appearing in test output, not only the ones named here. Contains fix patterns for the most common violations (color-contrast, label, label-title-only, image-alt, button-name, link-name, region, landmark-one-main, heading-order, aria-allowed-attr, aria-required-attr, aria-required-children, aria-required-parent, a

Source repository stars
21
Declared platforms
0
Static risk flags
0
Last source update
2026-08-04
Source checked
2026-08-04

Decision brief

What it does—and where it fits

How to resolve specific axe-core violations in this project.

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/gaia-react/gaia --skill ".claude/skills/a11y-fixes"
    Safe inspection promptEditorial

    Inspect the Agent Skill "a11y-fixes" from https://github.com/gaia-react/gaia/blob/395b416ee24619690a051c4dbcf9dcd20895e95b/.claude/skills/a11y-fixes/SKILL.md at commit 395b416ee24619690a051c4dbcf9dcd20895e95b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      color-contrast

      WCAG AA requires 4.5:1 for normal text, 3:1 for large text. Use the project's semantic Tailwind tokens (see .claude/rules/tailwind.md) instead of arbitrary palette colors, they pair light/dark modes correctly.

      WCAG AA requires 4.5:1 for normal text, 3:1 for large text. Use the project's semantic Tailwind tokens (see .claude/rules/tailwind.md) instead of arbitrary palette colors, they pair light/dark modes correctly.
    2. 02

      label

      Form inputs need an associated . Use GAIA's Field wrapper from /components/Form/Field rather than a bare , it wires htmlFor, error text, and description automatically. See the form-components.md audit extension.

      Form inputs need an associated . Use GAIA's Field wrapper from /components/Form/Field rather than a bare , it wires htmlFor, error text, and description automatically. See the form-components.md audit extension.
    3. 03

      label-title-only

      title attributes are not labels, screen readers and mobile devices ignore them. Use aria-label or a real .

      title attributes are not labels, screen readers and mobile devices ignore them. Use aria-label or a real .
    4. 04

      image-alt

      Every needs alt. Content images describe the image; decorative images use alt="". See .claude/rules/accessibility.md.

      Every needs alt. Content images describe the image; decorative images use alt="". See .claude/rules/accessibility.md.
    5. 05

      button-name

      Buttons need an accessible name. Visible text is fine; icon-only buttons need aria-label.

      Buttons need an accessible name. Visible text is fine; icon-only buttons need aria-label.

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score87/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars21SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    gaia-react/gaia
    Skill path
    .claude/skills/a11y-fixes/SKILL.md
    Commit
    395b416ee24619690a051c4dbcf9dcd20895e95b
    License
    MIT
    Collected
    2026-08-04
    Default branch
    main
    View the original SKILL.md

    Accessibility Fix Patterns

    How to resolve specific axe-core violations in this project.

    Violations come from test/a11y.ts (Vitest), .playwright/a11y.ts (Playwright), or the code-audit-frontend agent's a11y bucket. General a11y guidance lives in .claude/rules/accessibility.md.

    color-contrast

    WCAG AA requires 4.5:1 for normal text, 3:1 for large text. Use the project's semantic Tailwind tokens (see .claude/rules/tailwind.md) instead of arbitrary palette colors, they pair light/dark modes correctly.

    // BAD, fails contrast in dark mode, raw colors
    <p className="text-gray-400 bg-white">Status</p>
    
    // GOOD, semantic tokens, contrast-safe in both modes
    <p className="text-body bg-body">Status</p>
    

    label

    Form inputs need an associated <label>. Use GAIA's Field wrapper from ~/components/Form/Field rather than a bare <label>, it wires htmlFor, error text, and description automatically. See the form-components.md audit extension.

    // BAD, bare input with no label association
    <input type="text" name="email" />
    
    // GOOD, Field wraps a project input with the right wiring
    <Field type="input" name="email" label={t('email')}>
      <InputText name="email" />
    </Field>
    

    label-title-only

    title attributes are not labels, screen readers and mobile devices ignore them. Use aria-label or a real <label>.

    // BAD, title is not an accessible name
    <input type="text" title="Search" />
    
    // GOOD, aria-label provides the accessible name
    <input type="text" aria-label={t('search')} />
    

    image-alt

    Every <img> needs alt. Content images describe the image; decorative images use alt="". See .claude/rules/accessibility.md.

    // BAD, no alt attribute
    <img src="/logo.png" />
    
    // GOOD, content image
    <img src="/logo.png" alt={t('companyLogo')} />
    
    // GOOD, decorative image, hidden from AT
    <img src="/divider.svg" alt="" />
    

    button-name

    Buttons need an accessible name. Visible text is fine; icon-only buttons need aria-label.

    // BAD, icon-only button with no name
    <button onClick={onClose}>
      <CloseIcon />
    </button>
    
    // GOOD, aria-label supplies the name
    <button aria-label={t('close')} onClick={onClose}>
      <CloseIcon />
    </button>
    
    // GOOD, visible text, no aria-label needed
    <button onClick={onSave}>{t('save')}</button>
    

    link-name

    Same pattern as button-name, anchors need an accessible name.

    // BAD, icon-only link
    <Link to="/settings"><GearIcon /></Link>
    
    // GOOD, aria-label on the link
    <Link to="/settings" aria-label={t('settings')}>
      <GearIcon />
    </Link>
    

    region / landmark-one-main

    Page content must live inside a landmark, and there must be exactly one <main>. GAIA's Layout component owns the <main> landmark, page components render inside it and should not add their own.

    // BAD, page component wraps itself in <main>, duplicating Layout's
    const Page = () => (
      <main>
        <h1>{t('title')}</h1>
      </main>
    );
    
    // GOOD, page renders into Layout's <main>
    const Page = () => (
      <>
        <h1>{t('title')}</h1>
      </>
    );
    

    heading-order

    One <h1> per page. Levels do not skip, h2 → h4 is a violation.

    // BAD, skips h3
    <h2>{t('section')}</h2>
    <h4>{t('subsection')}</h4>
    
    // GOOD, sequential levels
    <h2>{t('section')}</h2>
    <h3>{t('subsection')}</h3>
    

    aria-allowed-attr

    ARIA attributes are role-scoped. Look up the role; only attrs in its allowed list are valid. Common case: aria-checked only on role="checkbox", role="radio", role="menuitemcheckbox", role="menuitemradio", role="switch", role="treeitem".

    // BAD, aria-checked is not allowed on a button
    <button aria-checked={selected}>{t('toggle')}</button>
    
    // GOOD, aria-pressed for buttons, aria-checked for checkbox role
    <button aria-pressed={selected}>{t('toggle')}</button>
    

    aria-required-attr

    Some roles require companion attrs. Disclosure widgets (aria-expanded) need aria-controls pointing at the controlled element's id.

    // BAD, aria-expanded with no aria-controls
    <button aria-expanded={open}>{t('menu')}</button>
    
    // GOOD, aria-controls names the panel
    <button aria-expanded={open} aria-controls="menu-panel">
      {t('menu')}
    </button>
    <div id="menu-panel" hidden={!open}>...</div>
    

    aria-required-children / aria-required-parent

    Composite roles need their child roles, and child roles need the right parent. Prefer semantic HTML (<ul><li>, <select><option>) over recreating these structures with ARIA.

    // BAD, role="listbox" with no role="option" children
    <div role="listbox">
      <div>{t('one')}</div>
      <div>{t('two')}</div>
    </div>
    
    // GOOD, semantic <select> with <option> children
    <select aria-label={t('choose')}>
      <option value="1">{t('one')}</option>
      <option value="2">{t('two')}</option>
    </select>
    

    aria-valid-attr-value

    aria-* attrs that take id refs must point at existing ids; boolean attrs take true/false, not arbitrary strings.

    // BAD, aria-labelledby points at id that does not exist
    <input aria-labelledby="missing-id" />
    
    // GOOD, id exists in the DOM
    <>
      <span id="email-label">{t('email')}</span>
      <input aria-labelledby="email-label" />
    </>
    

    focus-trap (focus management)

    Modals must trap focus while open and return focus to the trigger on close. See .claude/rules/accessibility.md. Prefer a vetted dialog primitive (Radix, react-aria) over hand-rolled focus logic.

    // BAD, open modal leaves focus on body, close drops focus
    {
      open && (
        <div role="dialog">
          <button onClick={() => setOpen(false)}>{t('close')}</button>
        </div>
      );
    }
    
    // GOOD, primitive handles focus trap + restore
    <Dialog open={open} onOpenChange={setOpen}>
      <Dialog.Content>
        <Dialog.Close>{t('close')}</Dialog.Close>
      </Dialog.Content>
    </Dialog>;
    

    tabindex

    Positive tabindex (tabindex={1}, tabindex={2}, ...) reorders the tab sequence and is always a violation. Use tabIndex={0} to insert into natural order, tabIndex={-1} for programmatic-only focus.

    // BAD, positive tabindex skews tab order
    <div tabIndex={1}>{t('first')}</div>
    <div tabIndex={2}>{t('second')}</div>
    
    // GOOD, natural DOM order, programmatic focus on the panel
    <div tabIndex={0}>{t('first')}</div>
    <div tabIndex={0}>{t('second')}</div>
    <section tabIndex={-1} ref={panelRef}>...</section>
    

    html-has-lang

    <html> must have a lang attribute. The React Router root sets it from the i18n locale; if a violation appears, the root loader is not threading locale through. Verify the root layout reads locale from the request context and renders <html lang={locale}>.

    // BAD, hardcoded or missing lang
    <html>...</html>
    
    // GOOD, locale from the loader / i18n
    <html lang={locale}>...</html>
    

    document-title

    Every route needs a <title>. Set it via the route's meta export, and pull the string from i18n using the loader's getInstance(context) pattern (see .claude/rules/i18n.md).

    // BAD, no meta, or hardcoded title
    export const meta = () => [{title: 'Dashboard'}];
    
    // GOOD, i18n-resolved title in the loader
    export const loader = ({context}) => {
      const i18next = getInstance(context as RouterContextProvider);
      return {title: i18next.t('dashboard.meta.title', {ns: 'pages'})};
    };
    export const meta = ({data}) => [{title: data.title}];
    

    duplicate-id

    Every id in the rendered DOM must be unique. Common Conform pitfall: rendering the same field name twice in a fieldset produces duplicate ids. Pass an explicit unique id.

    // BAD, same field rendered twice, ids collide
    <InputText name="email" />
    <InputText name="email" />
    
    // GOOD, unique ids
    <InputText id="email-primary" name="emailPrimary" />
    <InputText id="email-secondary" name="emailSecondary" />
    

    listitem

    <li> must be a direct child of <ul> or <ol>. A standalone <li> is a violation.

    // BAD, <li> with no list parent
    <div>
      <li>{t('one')}</li>
    </div>
    
    // GOOD, wrapped in <ul>
    <ul>
      <li>{t('one')}</li>
    </ul>
    

    definition-list

    <dt> and <dd> must live inside <dl>. Group related term/description pairs in one <dl>.

    // BAD, dt/dd outside <dl>
    <div>
      <dt>{t('term')}</dt>
      <dd>{t('definition')}</dd>
    </div>
    
    // GOOD, wrapped in <dl>
    <dl>
      <dt>{t('term')}</dt>
      <dd>{t('definition')}</dd>
    </dl>
    

    Alternatives

    Compare before choosing

    Computed 10042,968

    coreyhaines31/marketingskills

    ab-testing

    When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

    Computed 100165

    JasonColapietro/suede-creator-skills

    suede-ab-testing

    Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).

    Computed 1007

    narrative-io/narrative-skills-marketplace

    design-analysis

    Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "

    Computed 97237,532

    affaan-m/ECC

    hexagonal-architecture

    Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.