Skip to content
Back to skills

A11y Accessible Name

ASecurity

画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
developmentgo

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add s977043/river-review --skill a11y-accessible-name --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of A11y Accessible Name?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for A11y Accessible Name
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s977043-a11y-accessible-name/badge)](https://www.skillsdirectory.com/skills/s977043-a11y-accessible-name)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: 'a11y-accessible-name'
name: a11y Accessible Name Basics
description: 画像・ボタン・フォーム要素に適切なアクセシブルネームがあるか確認する。
version: 0.1.0
category: midstream
phase: midstream
applyTo:
  - 'src/**/*.{ts,tsx,js,jsx,html}'
  - 'app/**/*.{ts,tsx,js,jsx,html}'
  - 'components/**/*.{ts,tsx,js,jsx,html}'
tags: [community, accessibility, ui, midstream]
severity: minor
inputContext: [diff]
outputKind: [findings, actions]
modelHint: balanced
---

## Goal / 目的

- 主要UI要素のラベル欠落による操作不能や誤解を防ぐ。

## Non-goals / 扱わないこと

- コントラスト比やキーボード操作などの包括的なa11y評価。
- 画面全体の情報設計の良し悪し。
- 動的UIのARIA設計(別スキルの対象)。

## False-positive guards / 抑制条件

- `aria-hidden="true"` が明示されている装飾要素は指摘しない。
- `aria-label` / `aria-labelledby` が既に付与されている場合は指摘しない。

## Rule / ルール

- `img` タグには `alt` 属性を必須にする(装飾的な画像は `alt=""` を推奨)。
- `button` / `a` / `input` には可視テキストまたは ARIA ラベルを持たせる。

## Evidence / 根拠の取り方

- 対象要素のタグと属性の有無を差分から示す。
- `alt` / `aria-label` / `aria-labelledby` の欠落を根拠として示す。

## Heuristics / 判定の手がかり

- `img` に `alt` が存在しない。
- `button` / `a` がアイコンのみで、ラベル属性もない。
- `input` に `label` が関連付けられていない(`htmlFor` / `id` が不一致)。

## Actions / 改善案

- `alt` で意味を短く表現する。
- `aria-label` を追加し、読み上げ名を明示する。
- `label` と `input` を `id` / `htmlFor` で関連付ける。

## Output / 出力

- `Finding:` / `Evidence:` / `Impact:` / `Fix:` を含む短いメッセージにする。

## 評価指標(Evaluation)

- 合格基準: ラベル欠落が差分に紐づき、根拠と改善案が説明されている。
- 不合格基準: 差分と無関係な指摘、根拠のない断定、抑制条件の無視。

## 人間に返す条件(Human Handoff)

- UIの意図が不明で解釈が分かれる場合は質問として返す。
- 画面設計そのものの議論が必要な場合は人間レビューへ返す。

Files in this skill

  • README.md399 B
  • SKILL.md2.4 KB
  • eval/promptfoo.yaml1.2 KB
  • fixtures/01-icon-button-happy.md733 B
  • fixtures/02-decorative-img-false-positive.md698 B
  • golden/01-icon-button-happy.md822 B
  • golden/02-decorative-img-false-positive.md287 B
  • prompt/system.md1.2 KB
  • prompt/user.md296 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…