All skills
aktsmm avatar

/web-accessibility

@848fd9b
by yamapanaktsmm/agent-skills26 stars
4

Build and review accessible web products using WCAG 2.2 AA. Use when implementing or reviewing forms, dialogs, navigation, keyboard flows, focus management, ARIA, color contrast, responsive UI, or framework-specific accessibility in React/Next.js, Angular, and Vue.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/web-accessibility

This session only. Nothing lands on disk.

referencescommon-ui-failures.md

≈587 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Common UI Failures

実装で頻出する欠陥を、直し方の方向まで含めて短くまとめる。

Structure and Semantics

  • div soup で landmark がない
    • header nav main footer を使う
  • Heading level が飛ぶ
    • 見た目ではなく文書構造で選ぶ
  • Link text が click here や more
    • 行き先や動作が text だけで分かるようにする
  • Layout table と data table が混ざる
    • Layout は CSS、data table には caption と th を付ける

Keyboard and Focus

  • div や span に click だけある
    • <button> へ戻す。戻せないなら role、tabIndex、Enter / Space を実装する
  • outline: none で focus ring が消えている
    • :focus-visible を作る
  • Custom dialog に Escape、Tab trap、focus return がない
    • Native dialog か、等価の keyboard/focus 管理を入れる
  • Hover-only UI
    • focus / blur でも同じ内容へ到達できるようにする

Forms and Validation

  • Placeholder を label 代わりにしている
    • Visible label を置く
  • Error message が input と結び付いていない
    • aria-describedby と aria-invalid を使う
  • Required が色や * だけ
    • required と説明文を加える
  • Submit 後に最初の error へ focus しない
    • error summary か first invalid field へ誘導する

Dynamic Content

  • Toast や save message が screen reader に届かない
    • role="status" または role="alert"
  • Icon-only button に name がない
    • aria-label を付ける
  • Hidden 状態と focusable 状態が矛盾する
    • aria-hidden、hidden、inert、focusability の整合を取る

Visual Access

  • Text contrast 不足
    • Normal text は 4.5:1、large text は 3:1 を下回らない
  • Color だけで error / success を伝える
    • icon、text、border などを重ねる
  • Narrow viewport で横スクロール前提になる
    • 320px 幅で reflow する layout に戻す
  • 強い motion を常時出す
    • prefers-reduced-motion を考慮する

Media

  • Informational image に alt がない
    • 意味を伝える alt か、装飾なら空 alt にする
  • Video に captions がない
    • track kind="captions" を付ける
  • Audio / video autoplay
    • 原則避ける。必要でも mute と control を前提にする

Source: SKILL.md on GitHub

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill is a purely informational set of guidelines and checklists focused on improving web accessibility based on WCAG 2.2 AA standards. It contains no executable scripts, shell commands, remote dependencies, or network-enabled operations.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

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

Last checked against GitHub 18 hours ago.

Activeupdated 3 months ago
argument-hint
対象ファイル、画面、コンポーネント、または気になる accessibility 課題
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/web-accessibility