본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)12k · #11508

better-accessibility

하는 일

키보드만 쓰는 사용자와 스크린 리더 사용자가 쓸 수 있는 인터페이스를 만들고 검토하도록 AI 에이전트를 안내합니다. 웹 인터페이스를 만드는 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓키보드 지원이 필요한 모달, 메뉴, 양식, 맞춤 위젯을 만들 때.
  • ✓누군가 인터페이스에서 키보드나 스크린 리더 문제를 보고했을 때.
  • ✓페이지나 컴포넌트에 대한 접근성 검토를 원할 때.

스킬 링크

https://github.com/trycompai/crm/blob/release/.agents/skills/better-accessibility/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/trycompai/crm/blob/release/.agents/skills/better-accessibility/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 드롭다운 메뉴를 키보드와 스크린 리더로 사용할 수 있게 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 먼저 키보드 사용자의 관점으로, 그다음 스크린 리더 사용자의 관점으로 인터페이스를 점검하며, 추가 레이블이 있는 맞춤 요소보다 기본 요소를 우선합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Accessibility that comes with the craft

Accessibility is not a compliance checkbox bolted on at the end; it is the floor for interface craft. Most of it is free if you use the platform: native elements ship with keyboard support, real labels announce themselves, and a visible focus ring is one CSS rule. Apply these principles when building or reviewing UI code, and match the project's existing styling system (Tailwind vs. plain CSS vs. CSS-in-JS) when applying fixes.

When reviewing, walk the interface as a keyboard-only user first (every flow must complete without a mouse), then as a screen-reader user: does each control announce a name, a role, and its state? When unsure, prefer the platform default over a custom rebuild, and remove ARIA rather than add it.

Rendered-pair contrast measurement and color remediation are covered by the better-colors skill; visual text sizing and iOS input zoom by better-typography; spatial RTL layout by better-layout.

Quick Reference

Category When to Use
Focus & Keyboard Focus rings, skip links, tabindex, focus trapping, APG keyboard patterns
Semantics & ARIA Native elements first, button vs link, landmarks, accessible names, disabled states
Forms Labels, autocomplete, error messaging, input types
Screen Readers Visually hidden content, live regions, toasts, alt text, SVG
Hit Areas Target sizes, expanding hit areas, collision rules
Motion & Zoom prefers-reduced-motion, autoplay and timed UI, 200% zoom, reflow, rem vs px

Core Principles

1. Native Elements First

The first rule of ARIA: don't use ARIA when a native element exists. <button> for actions, <a href> for navigation (it must support Cmd/Ctrl/middle-click), never <div onClick>. No ARIA is better than bad ARIA.

2. Visible Focus Rings

Style :focus-visible, not bare :focus, so keyboard users get a ring and mouse users usually don't. Prefer the browser's unmodified focus indicator. If the design needs a custom ring, use a project focus token or another explicit color and verify the complete indicator against every adjacent color it crosses; currentColor is acceptable only after the same check. Use at least a 2px solid perimeter or an equivalent visible area. Never use outline: none without a verified replacement, and preserve system colors in forced-colors mode.

3. Full Keyboard Support

Every pointer interaction needs a keyboard path, following the ARIA APG patterns: Escape closes overlays, arrow keys move within composite widgets (tabs, menus, listboxes), Tab moves between widgets, Enter and Space activate. Only tabindex="0" (join the natural tab order) and tabindex="-1" (programmatic focus), never positive values, which break the natural order. Composite widgets use roving tabindex: the active item is 0, all others -1.

4. Trap and Restore Focus

Modals set inert on the background content, move focus inside on open, and return focus to the trigger on close. Add overscroll-behavior: contain so background content doesn't scroll.

5. Minimum Hit Area

WCAG 2.5.8's Level AA baseline is a 24×24 CSS-pixel target or one of its defined spacing, equivalent-control, inline, user-agent, or essential exceptions. For easier activation, aim for 44×44px in touch contexts and 40×40px in desktop interfaces when density permits. Extend with a pseudo-element if the visible element should stay smaller. Never let extended hit areas overlap.

6. Label and Type Every Control

Every input gets a <label for> or wrapping <label>; a placeholder is never a label, and label and control share one hit target: no dead zones between a checkbox and its text. Add autocomplete with a meaningful name, and the correct type and inputmode for the keyboard. Never block paste; users paste passwords and one-time codes.

7. Errors That Announce

Keep submit enabled until the request starts, then disable with a spinner while keeping the original label. Validate on submit: mark failing fields with aria-invalid="true", point aria-describedby at the inline error text, and focus the first invalid field. Use native disabled when a native control is genuinely unavailable. Use aria-disabled="true" only when retaining focusability or discoverability is intentional; then block pointer, keyboard, and form behav

자주 묻는 질문

색상 대비도 다루나요?

아닙니다. 색상 대비는 better-colors 스킬이 다룹니다.

항상 ARIA 속성을 추가해야 하나요?

아닙니다. 스킬은 가능하면 플랫폼의 기본 동작을 우선하고, ARIA를 추가하기보다 제거하라고 설명합니다.

양식도 다루나요?

네. 레이블, 자동 완성, 오류 메시지, 입력 타입을 다룹니다.

상세 정보

작성자의 원본 설명

Accessibility engineering for product interfaces, from focus states and keyboard support to ARIA, forms, and screen readers. Use when building or reviewing UI components, modals, menus, forms, custom widgets, or when the user says "make this accessible" or reports keyboard or screen-reader issues. Triggers on accessibility, a11y, WCAG, aria, focus ring, focus-visible, focus trap, keyboard navigation, tab order, tabindex, screen reader, sr-only, aria-live, alt text, hit area, touch target, prefers-reduced-motion, autoplay, toast duration, skip link, semantic HTML, aria-label, form errors, disab

repo: trycompai/crm

인기도

GitHub 스타
12k
순위
#11508
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬