スキル一覧に戻る
lovedragonball

accessibility-audit

by lovedragonball

32🍴 4📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: accessibility-audit description: WCAG compliance checking and accessibility improvements. Use for auditing websites, fixing a11y issues, and implementing inclusive design.

♿ Accessibility Audit Skill

WCAG 2.1 Principles (POUR)

PrincipleDescription
PerceivableContent viewable by all users
OperableInterface usable by all users
UnderstandableClear and predictable
RobustWorks with assistive tech

Common Issues & Fixes

Images

<!-- Bad ❌ -->
<img src="logo.png">

<!-- Good ✅ -->
<img src="logo.png" alt="Company Logo">

<!-- Decorative (empty alt) -->
<img src="divider.png" alt="">

Forms

<!-- Bad ❌ -->
<input type="text" placeholder="Email">

<!-- Good ✅ -->
<label for="email">Email Address</label>
<input type="email" id="email" name="email" required>

Buttons

<!-- Bad ❌ -->
<div onclick="submit()">Submit</div>

<!-- Good ✅ -->
<button type="submit">Submit</button>
<!-- Bad ❌ -->
<a href="#">Click here</a>

<!-- Good ✅ -->
<a href="/products">View all products</a>

Color Contrast

LevelRatioUse For
AA Normal4.5:1Regular text
AA Large3:118pt+ or 14pt bold
AAA Normal7:1Enhanced accessibility

CSS Example

/* Good contrast */
.text {
  color: #1e293b;        /* Dark gray */
  background: #ffffff;   /* White */
  /* Contrast ratio: 13.5:1 ✅ */
}

/* Bad contrast */
.text {
  color: #94a3b8;        /* Light gray */
  background: #ffffff;   /* White */
  /* Contrast ratio: 2.8:1 ❌ */
}

Keyboard Navigation

// Focus management
element.focus();
element.blur();

// Focus trap for modals
const focusableElements = modal.querySelectorAll(
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
);

Screen Reader Support

<!-- Live regions for dynamic content -->
<div aria-live="polite" aria-atomic="true">
  Status: Loading...
</div>

<!-- Hidden visually but readable -->
<span class="sr-only">Opens in new tab</span>
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

Audit Tools

# Lighthouse CLI
npx lighthouse https://example.com --view

# axe-core
npm install axe-core

Checklist

  • All images have alt text
  • Color contrast meets WCAG AA
  • All forms have labels
  • Site navigable by keyboard
  • Focus indicators visible
  • ARIA used appropriately
  • Tested with screen reader

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です