agentleFS
BappozBappoz/My-Claude-Skills/skills/design-systems/accessibility/SKILL.md

accessibility

Skill1 starsChanged 4 months agoMITView on GitHub

Acessibilidade web (a11y) aplicada: WCAG POUR, HTML semântico, ARIA com parcimônia, navegação por teclado, contraste, foco visível, leitores de tela e testes. Cross-cutting a QUALQUER UI. Use quando o usuário mencionar: "acessibilidade", "a11y", "WCAG", "leitor de tela", "navegação por teclado", "contraste", "ARIA", "screen reader", "inclusivo", "audit de acessibilidade", "foco".

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use author-contributions, tool-rename-deprecation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    author-contributions

    Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.

    Also in 7 projects that use this

  • gitpod-ioSkill

    tool-rename-deprecation

    Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

    Also in 5 projects that use this

  • DepressionCenterSkill

    project-preferences

    Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.

    Also in 6 projects that use this

  • MicrosoftSkill

    chat-perf

    Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

    Also in 5 projects that use this

  • DepressionCenterSkill

    create-media-pack

    Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.

    Also in 5 projects that use this

  • +7 more from microsoft

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 112 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use <nav>, <main>, <header>, <button>, <a href>, <label>, <h1-h6> na ordem, <ul>/<li>.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 112 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessibility (a11y)

Você atua como especialista em acessibilidade. Objetivo: interfaces usáveis por todos — teclado, leitor de tela, baixa visão, daltonismo, deficiência motora/cognitiva. A11y não é opcional nem "extra"; é qualidade e, muitas vezes, exigência legal (LGPD/ADA/EAA — ver [[legal-basics]]). Aplica-se a qualquer design system.

WCAG em 4 palavras: POUR

PrincípioSignificaNa prática
PerceptívelDá pra perceber o conteúdoAlt text, legendas, contraste, não depender só de cor
OperávelDá pra operarTeclado completo, sem armadilha de foco, tempo suficiente
UnderstandableDá pra entenderLinguagem clara, comportamento previsível, erros explicados
RobustoFunciona com tecnologias assistivasHTML válido, semântica, nome/função/estado corretos

Meta prática: WCAG 2.2 nível AA.

Regra nº1: HTML semântico primeiro

A melhor acessibilidade é HTML nativo correto. Um <button> já é focável, clicável por teclado/Enter/Espaço e anunciado como botão. Um <div onclick> não é nada disso.

<!-- ❌ inacessível -->
<div class="btn" onclick="save()">Salvar</div>
<!-- ✅ nativo faz tudo de graça -->
<button type="button" onclick="save()">Salvar</button>

Use <nav>, <main>, <header>, <button>, <a href>, <label>, <h1-h6> na ordem, <ul>/<li>. Estrutura semântica = navegação por landmarks/headings de graça.

ARIA: a primeira regra é não usar ARIA

"No ARIA is better than bad ARIA." Se dá para usar um elemento HTML nativo, use-o. ARIA só quando não há equivalente nativo (ex: tabs, combobox, dialog custom).

<!-- ARIA para o que o HTML não expressa -->
<button aria-expanded="false" aria-controls="menu">Menu</button>
<ul id="menu" hidden>…</ul>
<div role="alert">Erro: e-mail inválido</div>   <!-- anunciado imediatamente -->

Sempre reflita estado (aria-expanded, aria-selected, aria-checked) via JS quando muda. Siga os padrões do APG.

Teclado (sem mouse, tudo funciona)

  • Tudo operável por teclado: Tab navega, Enter/Espaço ativa, Esc fecha, setas dentro de widgets (menu/tabs).
  • Ordem de foco lógica — segue a leitura; não pule com tabindex positivo.
  • Foco visível SEMPRE — nunca outline: none sem substituir por um foco claro (contraste ≥ 3:1).
  • Sem armadilha de foco — exceto modais, que devem prender o foco enquanto abertos e devolvê-lo ao fechar.
  • Skip link — "Pular para o conteúdo" como primeiro focável.
:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }  /* nunca remova sem repor */

Cor e contraste

  • Texto normal ≥ 4.5:1, texto grande/ícones/UI ≥ 3:1.
  • Nunca só cor para transmitir informação (erro não é "campo vermelho" — precisa de ícone/texto). Pense no daltonismo.
  • Respeite prefers-reduced-motion — animação nunca é obrigatória para usar.

Formulários e imagens

  • Todo input tem <label> associado (for/id); placeholder ≠ label.
  • Erros: texto claro, associado ao campo (aria-describedby), não só cor.
  • alt descritivo em imagens informativas; alt="" em decorativas (some do leitor).

Testar (as três camadas)

  1. Teclado — desconecte o mouse e navegue tudo.
  2. Leitor de tela — VoiceOver (Mac), NVDA (Windows), TalkBack (Android). Faça uma tarefa só ouvindo.
  3. Automatizado — axe / Lighthouse pegam ~30-50% dos problemas (o resto é manual).

Recursos externos

RecursoO que pegar
WCAG 2.2 Quick ReferenceCritérios AA/AAA acionáveis.
ARIA Authoring Practices (APG)Padrões acessíveis de componentes (dialog, tabs, combobox…).
WebAIMArtigos práticos + Contrast Checker.
axe DevToolsAuditoria automatizada no navegador.
Inclusive ComponentsComo construir componentes acessíveis de verdade.
A11y Project ChecklistChecklist prático de a11y.

Do / Don't

DoDon't
<button>/<a> nativos<div onclick>
HTML semântico + landmarks<div> para tudo
Foco visível clarooutline: none sem repor
Info por cor + texto/íconeSó cor (erro vermelho e ponto)
ARIA só quando precisoARIA por reflexo

Checklist

  • HTML semântico (button/a/nav/main/headings em ordem)
  • Tudo operável por teclado, foco visível, ordem lógica, skip link
  • Contraste ≥ 4.5:1 (texto) / 3:1 (UI); nunca só cor
  • Inputs com label; erros associados e textuais
  • Imagens com alt correto (ou alt="" se decorativas)
  • ARIA só onde nativo não cobre, com estado sincronizado
  • Testado com teclado + leitor de tela + axe/Lighthouse
  • prefers-reduced-motion respeitado

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.