accessibility-testing-expert
Skill129 starsChanged 12 days agoMITView on GitHub
Web accessibility testing with axe-core, Playwright, and WCAG 2.2 / Pengujian aksesibilitas web axe-core, Playwright, dan WCAG 2.2.
In this repository372 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/vibes-plug-anti-slop.mdcCursor rule
- .cursor/rules/vibes-plug-backend.mdcCursor rule
- .cursor/rules/vibes-plug-core.mdcCursor rule
- .cursor/rules/vibes-plug-devops.mdcCursor rule
- .cursor/rules/vibes-plug-frontend.mdcCursor rule
- .cursor/rules/vibes-plug-mcp.mdcCursor rule
- .cursor/rules/vibes-plug-skills.mdcCursor rule
- .cursor/rules/vibes-plug-testing.mdcCursor rule
- llms-full.txtllms.txt
- llms.txtllms.txt
- showcase/llms-full.txtllms.txt
- showcase/llms.txtllms.txt
- a2a-agent-protocol-expertSkill
- adaptive-model-cascadeSkill
- affective-computing-emotion-aiSkill
- agentic-coding-workflow-expertSkill
- agentic-m2m-settlementSkill
- agentic-memory-architectSkill
- agentic-micro-economy-architectSkill
- ai-code-review-autonomousSkill
- ai-llm-integration-expertSkill
- ai-media-generation-expertSkill
- ai-prompt-engineering-expertSkill
- ai-safety-governance-expertSkill
- angular-expertSkill
- anti-slopSkill
- api-design-expertSkill
- api-gateway-proxy-expertSkill
- app-analyzer-optimizerSkill
- apple-ecosystem-expertSkill
- app-promo-media-expertSkill
- astro-framework-expertSkill
- async-queue-temporal-expertSkill
- authentication-identity-expertSkill
- autonomous-api-drift-healerSkill
- autonomous-red-teamerSkill
- autonomous-tdd-debuggerSkill
- biome-linter-formatter-expertSkill
- blockchain-web3-expertSkill
- brainstormingSkill
- browser-automation-expertSkill
- browser-extension-mv3-proSkill
- bun-runtime-expertSkill
- chatbot-messaging-expertSkill
- ci-cd-devops-architectSkill
- cloudflare-workers-expertSkill
- cloud-hosting-expertSkill
- coderabbitSkill
- compliance-gdpr-privacy-expertSkill
- composable-mach-architectSkill
- computer-use-os-agent-expertSkill
- context-window-engineerSkill
- cron-scheduler-expertSkill
- database-orm-expertSkill
- data-pipeline-etl-expertSkill
- data-telemetry-expertSkill
- data-visualization-expertSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 98
Tab Navigation: All interactive elements (<button>, <a>, <input>) can receive focus in logical reading order.
- Very specific: line 137
Verify that sequential Tab navigation never escapes an open [role="dialog"] modal and that every focused interactive control renders a …
- Distinctive: line 180
Touch Target Minimums: All interactive controls must satisfy WCAG 2.2 SC 2.5.8 (minimum 24×24px, recommended 44×44px with adequate padding).
- Very specific: line 185
Zero-Violation WCAG 2.2 AA Gate: MUST run AxeBuilder with ['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa'] tags and assert …
- Very specific: line 186
Visible Focus Indicator Preservation: MUST never strip focus outlines (outline: none / focus:outline-none) unless paired with a …
- Very specific: line 187
Native Semantic Interactive Elements: MUST use native <button>, <a href>, and <input> elements instead of clickable <div> or <span> tags …
- Very specific: line 188
Cyclic Modal Focus Trapping: MUST trap Tab and Shift+Tab focus inside open [role="dialog"] containers and restore focus to the trigger …
- Very specific: line 189
Minimum Touch Target Geometry: MUST enforce >= 24x24px (WCAG 2.2 SC 2.5.8) and >= 48x48dp on primary mobile/touch controls.
- Very specific: line 192
Mandatory Blue-Ocean Pairing: Always compose accessibility-testing-expert with ephemeral-generative-ui-architect, visual-ui-auditor, …
- Very specific: line 194
Pre-Disk Gate: Run vibes verify-gate and vibes skill auto-diff --json to inject <350-token slices and eliminate placeholder slop.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Accessibility Testing Expert (2026 Edition)
English | Bahasa Indonesia
<a name="english"></a>
English
Orchestration & Integration
modern-web-guidance: Evaluates platform accessibility guidelines, ARIA specifications, and:user-validpatterns.visual-ui-auditor: Multimodal vision verification for color contrast, visible focus rings, and spatial layout integrity.global-a11y-i18n-expert: Core WCAG rules, ARIA patterns, and internationalization standards.e2e-testing-expert: Integrating automated accessibility assertions into Playwright/Vitest CI suites.design-system-architect, senior-frontend: Accessible component primitives (Radix UI, Base UI, ARIA patterns).browser-automation-expert: Visual QA audits for focus rings, contrast ratios, and layout flow using Vision LLM agents.anti-slop: Enforces strict accessibility rules (preventing stripped focus outlines, div-soup buttons, and color contrast violations).
Description
Production guide for automated, semi-automated, and manual web accessibility (a11y) testing. Covers WCAG 2.2 Level AA/AAA compliance validation using @axe-core/playwright, Pa11y, Google Lighthouse CI, screen reader verification (NVDA, VoiceOver), keyboard navigation audits, focus management, and color contrast compliance.
Trigger Conditions
- Running automated accessibility test suites in CI/CD pipelines.
- Auditing web apps for WCAG 2.1 / 2.2 Level AA compliance and legal accessibility requirements (ADA, EAA).
- Debugging keyboard traps, missing ARIA labels, or broken screen reader navigation.
- Writing test cases for focus trapping in modals and custom dialogs.
Core Testing Workflows
1. Automated A11y Testing with Playwright & Axe-Core
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
test.describe('Accessibility Automated Audits', () => {
test('homepage should have zero critical or serious a11y violations', async ({ page }) => {
await page.goto('/');
const accessibilityScanResults = await new AxeBuilder({ page })
.withTags(['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa'])
.analyze();
expect(accessibilityScanResults.violations).toEqual([]);
});
test('modal dialog should trap focus and pass a11y audit', async ({ page }) => {
await page.goto('/dashboard');
await page.click('button#open-modal');
// Verify modal is open and focused
const modal = page.locator('[role="dialog"]');
await expect(modal).toBeVisible();
const modalAudit = await new AxeBuilder({ page })
.include('[role="dialog"]')
.analyze();
expect(modalAudit.violations).toEqual([]);
// Verify keyboard escape closes modal
await page.keyboard.press('Escape');
await expect(modal).toBeHidden();
});
});2. Automated Pa11y CI Configuration (.pa11yci.json)
{
"defaults": {
"standard": "WCAG2AA",
"timeout": 15000,
"runners": ["axe", "htmlcs"],
"ignore": [
"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Abs"
]
},
"urls": [
"http://localhost:3000/",
"http://localhost:3000/login",
"http://localhost:3000/pricing",
"http://localhost:3000/docs"
]
}3. Keyboard & Screen Reader Verification Checklist
- Tab Navigation: All interactive elements (
<button>,<a>,<input>) can receive focus in logical reading order. - Focus Indicators: Visible, high-contrast focus rings (
outline: 2px solid var(--focus-color)withoutline-offset). - No Keyboard Traps: Focus can enter and leave components using only
Tab,Shift+Tab, andEsc. - Landmarks: Proper semantic tags (
<header>,<nav>,<main>,<footer>,<aside>). - ARIA Attributes:
aria-expanded,aria-controls,aria-haspopup, andaria-liveupdated dynamically.
4. Material Design 3 (M3) Accessibility & State Layer Assertions (https://m3.material.io/foundations/accessible-design/overview)
M3 enforces rigorous interaction states via standardized State Layer Opacities and an expanded 48×48dp Target Size:
1. M3 State Layer Opacity Matrix:
- Hover: 8% (
0.08) overlay ofon-surfaceorprimary. - Focus: 10% (
0.10) overlay with high-contrast ring. - Pressed: 10% (
0.10) overlay. - Dragged: 16% (
0.16) overlay. - Disabled: Container opacity
38%(0.38), content opacity38%(0.38).
2. 48×48dp Minimum Touch Target Assertion (Playwright):
import { test, expect } from '@playwright/test';
test('interactive controls satisfy M3 48x48dp touch target standard', async ({ page }) => {
await page.goto('/');
const buttons = page.locator('button, a[role="button"], input[type="checkbox"]');
const count = await buttons.count();
for (let i = 0; i < count; i++) {
const btn = buttons.nth(i);
const box = await btn.boundingBox();
if (box && await btn.isVisible()) {
// M3 requires min 48x48dp bounding box for touch targets
expect(box.width).toBeGreaterThanOrEqual(48);
expect(box.height).toBeGreaterThanOrEqual(48);
}
}
});5. Automated Keyboard Focus-Trap & Visible Focus-Ring Audit in Playwright
Verify that sequential Tab navigation never escapes an open [role="dialog"] modal and that every focused interactive control renders a visible focus indicator (WCAG 2.2 SC 2.4.7 & SC 2.4.11):
import { test, expect } from '@playwright/test';
test('modal dialog enforces cyclic Tab focus trap and visible focus ring', async ({ page }) => {
await page.goto('/settings');
await page.getByRole('button', { name: 'Delete Workspace' }).click();
const dialog = page.getByRole('dialog');
await expect(dialog).toBeVisible();
const focusableCount = await dialog
.locator('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')
.count();
expect(focusableCount).toBeGreaterThan(0);
for (let step = 0; step <= focusableCount + 1; step++) {
await page.keyboard.press('Tab');
const focusState = await page.evaluate(() => {
const active = document.activeElement as HTMLElement | null;
if (!active) return { insideDialog: false, hasVisibleIndicator: false };
const dialogEl = active.closest('[role="dialog"]');
const style = window.getComputedStyle(active);
const hasOutline = style.outlineStyle !== 'none' && parseFloat(style.outlineWidth) > 0;
const hasBoxShadowRing = style.boxShadow !== 'none' && style.boxShadow !== '';
return {
insideDialog: Boolean(dialogEl),
hasVisibleIndicator: hasOutline || hasBoxShadowRing,
};
});
expect(focusState.insideDialog).toBe(true);
expect(focusState.hasVisibleIndicator).toBe(true);
}
});6. Sovereign Anti-Slop A11y Verification Gate
Zero-tolerance accessibility criteria for all generated interfaces:
- No Stripped Focus Outlines: Zero tolerance for
outline: noneorfocus:outline-nonewithout an explicit, high-contrast replacement ring (focus-visible:ring-2 focus-visible:ring-offset-2). - Semantic Elements Only: Ban on non-semantic clickable divs/spans (
<div onClick=...>). Every click target must be an authentic<button>,<a>, or providerole="button"+tabIndex={0}+ keyboard event handlers (onKeyDownfor Enter & Space). - Touch Target Minimums: All interactive controls must satisfy WCAG 2.2 SC 2.5.8 (minimum 24×24px, recommended 44×44px with adequate padding).
- Text Contrast Non-Negotiable: Minimum 4.5:1 for normal body text, 3:1 for large text (18pt / 14pt bold).
- Meaningful Labels: Zero icon buttons without
aria-labelor screen-reader-only text (<span className="sr-only">).
Hard Guardrails (Declarative Invariants)
- Zero-Violation WCAG 2.2 AA Gate: MUST run
AxeBuilderwith['wcag2a', 'wcag2aa', 'wcag21aa', 'wcag22aa']tags and assertviolations.toEqual([])without disablingcolor-contrastin production gates. - Visible Focus Indicator Preservation: MUST never strip focus outlines (
outline: none/focus:outline-none) unless paired with a high-contrastfocus-visible:ring-2indicator. - Native Semantic Interactive Elements: MUST use native
<button>,<a href>, and<input>elements instead of clickable<div>or<span>tags lacking keyboard handlers. - Cyclic Modal Focus Trapping: MUST trap
TabandShift+Tabfocus inside open[role="dialog"]containers and restore focus to the trigger element uponEscape. - Minimum Touch Target Geometry: MUST enforce
>= 24x24px(WCAG 2.2 SC 2.5.8) and>= 48x48dpon primary mobile/touch controls.
Blue-Ocean Synergy & Anti-Commodity Protocol
- Mandatory Blue-Ocean Pairing: Always compose
accessibility-testing-expertwithephemeral-generative-ui-architect,visual-ui-auditor,multimodal-spatial-video-cloner,anti-slopso commodity boilerplate is elevated into verified, self-healing production architecture. - Anti-Commodity Mandate: Reject generic AI UI templates: enforce 5-state interactive contracts,
tabular-nums, crisp 1px borders, and multimodalvibes visual-auditverification before disk write. - Pre-Disk Gate: Run
vibes verify-gateandvibes skill auto-diff --jsonto inject <350-token slices and eliminate placeholder slop.
Sovereign Execution, Token Efficiency & Invariants
| Dimension | Sovereign Mandate & Deterministic Contract |
| Frontier Model Cascade | High Fast / Medium / High (Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast) |
| Availability Fallback | Gemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors) |
| KV-Cache & Token Protocol | Pin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out |
| SaaT CLI & MCP Dispatch | CLI: vibes skill exec accessibility-testing-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate |
| NFR & Anti-Slop Invariants | LCP < 1.8s, INP < 100ms, CLS < 0.05, 1px crisp borders, 3-tier radius (6px/8px/12px), tabular-nums, 5-state interactive contract; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict |
<a name="bahasa-indonesia"></a>
Bahasa Indonesia
Integrasi Orkestrasi
modern-web-guidance: Mengevaluasi pedoman aksesibilitas platform web, spesifikasi ARIA, dan pola form aksesibel.visual-ui-auditor: Verifikasi vision multimodal untuk rasio kontras warna, cincin fokus terlihat, dan integritas tata letak visual.global-a11y-i18n-expert: Pedoman standar WCAG, pola ARIA, dan aksesibilitas internasional.e2e-testing-expert: Integrasi pengujian aksesibilitas otomatis ke pipeline Playwright CI.design-system-architect, senior-frontend: Validasi aksesibilitas komponen headless dan desain UI.anti-slop: Menegakkan aturan aksesibilitas tanpa kompromi (mencegah penghapusan outline fokus, div-soup tombol, dan pelanggaran kontras warna).
Deskripsi
Panduan produksi untuk pengujian aksesibilitas web (a11y) otomatis dan manual. Memastikan kepatuhan terhadap standar WCAG 2.2 Level AA/AAA menggunakan @axe-core/playwright, Pa11y, Lighthouse CI, pengujian screen reader, navigasi keyboard, dan kontras warna.
Kondisi Pemicu
- Menjalankan audit aksesibilitas otomatis di pipeline CI/CD.
- Memverifikasi kepatuhan hukum aksesibilitas (WCAG 2.2, ADA, EAA).
- Menguji alur keyboard dan pembaca layar (screen reader) pada komponen kompleks seperti modal dan dropdown.
Alur Pengujian Otomatis
1. Pengujian Aksesibilitas Otomatis dengan Playwright & Axe-Core
import { test, expect } from '@playwright/test';
import AxeBuilder from '@axe-core/playwright';
test.describe('Audit Otomatis Aksesibilitas Web', () => {
test('beranda bebas dari pelanggaran a11y kritis atau serius', async ({ page }) => {
await page.goto('/');
const hasilAudit = await new AxeBuilder({ page })
.withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])
.analyze();
expect(hasilAudit.violations).toEqual([]);
});
test('dialog modal mengunci fokus keyboard dan lolos audit a11y', async ({ page }) => {
await page.goto('/dashboard');
await page.click('button#buka-modal');
const modal = page.locator('[role="dialog"]');
await expect(modal).toBeVisible();
const auditModal = await new AxeBuilder({ page })
.include('[role="dialog"]')
.analyze();
expect(auditModal.violations).toEqual([]);
// Verifikasi tombol Escape menutup modal
await page.keyboard.press('Escape');
await expect(modal).toBeHidden();
});
});2. Konfigurasi CI Otomatis Pa11y (.pa11yci.json)
{
"defaults": {
"standard": "WCAG2AA",
"timeout": 15000,
"runners": ["axe", "htmlcs"]
},
"urls": [
"http://localhost:3000/",
"http://localhost:3000/masuk",
"http://localhost:3000/harga",
"http://localhost:3000/dokumentasi"
]
}3. Standar State Layer & Target Sentuh Material Design 3 (M3)
- Matriks State Layer:
- Hover: Opacity 8% (
0.08) - Focus: Opacity 10% (
0.10) dengan ring kontras tinggi - Pressed: Opacity 10% (
0.10) - Dragged: Opacity 16% (
0.16) - Disabled: Opacity kontainer dan konten 38% (
0.38)
- Hover: Opacity 8% (
- Target Sentuh Minimum 48×48dp: Meskipun aset visual hanya berukuran 24×24px, area sentuh interaktif wajib diperluas menjadi minimal 48×48dp menggunakan padding atau pseudo-elemen
::after.
4. Gerbang Verifikasi Aksesibilitas Anti-Slop
- Dilarang Menghapus Outline Fokus: Standar nol toleransi untuk
outline: noneataufocus:outline-nonetanpa pengganti ring berlatar kontras tinggi (focus-visible:ring-2 focus-visible:ring-offset-2). - Wajib Elemen Semantik: Larangan keras membuat div/span non-semantik yang dapat diklik (
<div onClick=...>). Setiap target klik harus merupakan<button>,<a>, atau menyediakanrole="button"+tabIndex={0}+ penangan keyboard (onKeyDownuntuk tombol Enter & Space). - Target Sentuh Minimum: Semua kontrol interaktif harus memenuhi standar WCAG 2.2 SC 2.5.8 (minimal 24×24px, direkomendasikan 44×44px dengan padding memadai).
- Kontras Teks Non-Negosiabel: Minimal rasio 4.5:1 untuk teks biasa, dan 3:1 untuk teks berukuran besar (18pt / 14pt bold).
- Label Bermakna: Dilarang membuat tombol ikon tanpa
aria-labelatau teks khusus pembaca layar (<span className="sr-only">).
Sinergi Blue-Ocean & Protokol Anti-Komoditas
- Pasangan Wajib Blue-Ocean: Selalu komposisikan
accessibility-testing-expertbersamaephemeral-generative-ui-architect,visual-ui-auditor,multimodal-spatial-video-cloner,anti-slopagar boilerplate standar naik kelas menjadi arsitektur produksi terverifikasi dan self-healing. - Mandat Anti-Komoditas: Tolak UI generik: wajibkan kontrak interaktif 5-state,
tabular-nums, border tegas 1px, serta verifikasi multimodalvibes visual-auditsebelum menulis ke disk. - Gerbang Pra-Disk: Jalankan
vibes verify-gatedanvibes skill auto-diff --jsonuntuk menyuntikkan slice <350 token serta mencegah placeholder slop.
Matriks Eksekusi Berdaulat, Efisiensi Token & Invarian
| Dimensi | Mandat Berdaulat & Kontrak Deterministik |
| Kaskade Model Frontier | High Fast / Medium / High (Gemini 4 Carbon, Gemini 4 Neon, Gemini 4 Hydrogen, Gemini 4 Argon, Claude Sonnet 5.5 High, Muse Wonder High, Composer 2.5 Fast) |
| Invarian Fallback Ketersediaan | Gemini 4 (Carbon/Hydrogen/Neon/Argon/Pro) -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Bebas gagal saat model belum tersedia/kuota penuh) |
| Protokol Hemat Token & KV-Cache | Kunci instruksi & skema statis di prefix awal (kv-cache-prefix-optimizer); kirim potongan CONTEXT_MAP.md (<250 token/panggilan) saat Fan-Out |
| Eksekusi SaaT CLI & MCP | CLI: vibes skill exec accessibility-testing-expert <audit|eval|verify|generate|blueprint> / MCP: vibes_skill_dispatch, vibes_visual_audit, vibes_ast_query, vibes_verify_gate |
| Invarian NFR & Anti-Slop | LCP < 1.8s, INP < 100ms, CLS < 0.05, border tegas 1px, radius 3-tier (6px/8px/12px), tabular-nums, kontrak interaktif 5-state; kode 100% tuntas tanpa placeholder diverifikasi melalui node scripts/check-anti-slop.js --strict |
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
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.

