kb-playwright-testing

kb-playwright-testing is a skill for Claude Code, Codex from Community-Access/accessibility-agents. It costs 36 tokens per session (2,401 once invoked), scanned A, original, MIT.

A reference for testing website accessibility with Playwright, a tool that drives a web browser, and axe-core, an accessibility checking library.

In plain words
What is it for?
It helps run keyboard, state, viewport, contrast, and accessibility-tree checks, as well as full-page and targeted axe-core scans.
Why use it?
It provides several ways to find problems that a single page scan may miss, including keyboard traps, hidden content, contrast, and the browser's accessibility tree.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Part of the accessibility-agents plugin — 113 skills, 7 hooks, 1 MCP server shipped together

Good fit It helps run keyboard, state, viewport, contrast, and accessibility-tree checks, as well as full-page and targeted axe-core scans.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/community-access/accessibility-agents/kb-playwright-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Community-Access/accessibility-agents --skill kb-playwright-testing
Clone the repo
git clone --depth 1 https://github.com/Community-Access/accessibility-agents

Made for: Claude Code, Codex.

Or install accessibility-agents, the plugin that ships this one along with the rest of its 113 skills, 7 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-playwright-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-playwright-testing/github.svg)](https://agentmods.dev/skills/community-access/accessibility-agents/kb-playwright-testing)
Your own site
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/kb-playwright-testing"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-playwright-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-playwright-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/community-access/accessibility-agents/kb-playwright-testing"><img src="https://agentmods.dev/badge/skills/community-access/accessibility-agents/kb-playwright-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02401
Opus 5.5 $0.00014 $0.00960
Sonnet 5.5 $0.00007 $0.00480
Haiku 4.5 $0.00004 $0.00240

Measured 26d ago against content hash dc1b896a118e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kb-playwright-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kb-playwright-testing/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Playwright Accessibility Testing

Reusable knowledge module for browser-based accessibility testing using Playwright and @axe-core/playwright.

MCP Tools Available

Each tool the MCP server registers (mcp-server/tools/playwright-tools.js), with its purpose and whether it needs @axe-core/playwright. All of them need Playwright with Chromium. There is no state-scan tool: to scan content revealed by an interaction, script the interaction and run AxeBuilder yourself (see Scan After Interaction).

Tool Purpose Requires @axe-core/playwright
run_axe_scan axe-core scan of a URL; default tags wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa Yes
run_playwright_keyboard_scan Tab-order traversal, focus visibility, keyboard trap detection No
run_playwright_viewport_scan Horizontal scrolling at 320, 768, 1024 and 1280 CSS px (1.4.10 Reflow only; no zoom, text resize or target-size check) No
run_playwright_contrast_scan Computed-style text contrast against the AA thresholds (4.5:1, or 3:1 for large text) No
run_playwright_a11y_tree Browser accessibility tree snapshot (ariaSnapshot) No

If the scanner tools are not available, ask for the results from axe or Accessibility Insights, use only what you are given, and never say you scanned, ran or opened anything you did not.

@axe-core/playwright Patterns

Full Page Scan

import AxeBuilder from '@axe-core/playwright';

const results = await new AxeBuilder({ page })
  .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'])
  .analyze();

In axe-core 4.14 the only wcag22aa rule is target-size, which runs only when that tag is listed. Most WCAG 2.2 criteria (2.4.11, 2.5.7, 3.2.6, 3.3.7, 3.3.8) have no axe rule and need manual or scripted checks. AxeBuilder needs a page opened from a browser context; the Playwright Test page fixture is one, browser.newPage() is not.

Scoped Element Scan

Read the full file on GitHub · 293 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · +4 lines dc1b896a118e
  2. 1mo ago Changed · +3 lines b2d6c8be5942
  3. 2mo ago First seen · 286 lines · 36 tokens per session scan A 811c6ca04bc0

Subscribe to this mod's changes

kb-playwright-testing is a skill published in the GitHub repository Community-Access/accessibility-agents (465 stars, last pushed 4d ago), licensed MIT. It adds 36 tokens to every session and 2,401 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

kb-playwright-testing compared with skills from other repositories

kb-playwright-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kb-playwright-testingCommunity-Access/accessibility-agentsSkill4654d agoMITA36Claude Code, Codex
Accessibility AuditorPramodDutta/qaskillsSkill2531mo agoMITA32Claude Code, Codex
a11y-auditxrnavigation/web-a11y-pluginSkill11mo agononeA64Claude Code
accessibilityericrisco/rsc-harnessSkill7072d agoMITA86Claude Code, Codex
Axe-core Accessibility TestingPramodDutta/qaskillsSkill2531mo agoMITA33Claude Code, Codex
Accessibility A11y EnhancedPramodDutta/qaskillsSkill2531mo agoMITA34Claude Code, Codex
tauri-pilotmpiton/tauri-pilotSkill905d agoMITB52Claude Code, Codex