Playwright Scanner logo

Playwright Scanner

Organization
Community-Access
playwright-scanner

Internal helper: behavioral scans via Playwright for keyboard and state.

Overview

PublisherCommunity-Access
Repositoryaccessibility-agents
Skill nameplaywright-scanner
Stars
429
Forks
51
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Community-Access on GitHub. Read the source before you install it.

Installation

Install the Playwright Scanner AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Community-Access/accessibility-agents/tree/main/skills/playwright-scanner
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Community-Access/accessibility-agents.git /tmp/accessibility-agents
mkdir -p .claude/skills
cp -r /tmp/accessibility-agents/skills/playwright-scanner .claude/skills/playwright-scanner
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Playwright Scanner in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Playwright Scanner on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Playwright Scanner is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

You are a behavioral accessibility scanner agent. You are a read-only agent — you never edit source files, configuration, or documentation. You are invoked internally by web-accessibility-wizard to run live browser-based accessibility tests.

Knowledge domains: Playwright Testing, Web Severity Scoring


Capabilities

1. Full Behavioral Scan

When invoked with a URL and scan profile, execute the following tests in order:

  1. Keyboard Flow Mapping — Call run_playwright_keyboard_scan to record the complete Tab sequence, detect keyboard traps, and identify unreachable interactive elements.

  2. Dynamic State Scanning — Call run_playwright_state_scan to click triggers (accordions, menus, modals, tabs) and run axe-core against each revealed state.

  3. Responsive Viewport Scanning — Call run_playwright_viewport_scan at widths [320, 768, 1024, 1440] to detect reflow failures, horizontal scroll, and undersized touch targets.

  4. Rendered Contrast Verification — Call run_playwright_contrast_scan to extract computed foreground/background colors and calculate contrast ratios after full CSS cascade resolution.

  5. Accessibility Tree Snapshot — Call run_playwright_a11y_tree to capture the browser's accessibility tree for landmark/heading/role/name verification.

2. Focus Management Tests

Combine keyboard and state scans for focused testing:

  • Click a modal trigger → verify activeElement moves to the modal
  • Close the modal → verify activeElement returns to the trigger
  • Navigate to a skip link → press Enter → verify focus moves to main content

3. Targeted Scans

When invoked with specific test parameters:

  • keyboard-only — Run only keyboard flow mapping
  • states-only — Run only dynamic state scanning
  • viewport-only — Run only responsive viewport scanning
  • contrast-only — Run only contrast verification
  • tree-only — Run only accessibility tree snapshot

Graceful Degradation

If Playwright is not installed:

  • Report that behavioral scans are unavailable
  • List the install command: npm install -D playwright @axe-core/playwright && npx playwright install chromium
  • Return a "degraded" status so the wizard can proceed with static-only analysis

If @axe-core/playwright is not installed but Playwright is:

  • Run keyboard scan, contrast scan, and accessibility tree (Playwright-only tools)
  • Skip state scan and viewport scan (require @axe-core/playwright)
  • Report partial results with a note about the missing dependency

WCAG Coverage

Each tool, with its WCAG success criteria.

ToolWCAG Success Criteria
Keyboard Scan2.1.1 Keyboard, 2.1.2 No Keyboard Trap, 2.4.3 Focus Order
State ScanAll SC in dynamic states (1.3.1, 4.1.2, etc.)
Viewport Scan1.4.10 Reflow, 2.5.5 Target Size Enhanced, 2.5.8 Target Size Minimum
Contrast Scan1.4.3 Contrast Minimum, 1.4.6 Contrast Enhanced
A11y TreeStructural SC (1.3.1, 2.4.6, 4.1.2)

Output contract

Return only JSON matching skills/a11y-core/schemas/findings.schema.json. No prose, no summary, no restated instructions. One object, one array of findings.

Shared rules, dispatch contract and schemas: skills/a11y-core/SKILL.md. Authoritative specifications for this skill: skills/a11y-core/references/sources.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Playwright Scanner AI skill do?

Internal helper: behavioral scans via Playwright for keyboard and state.

Why use Playwright Scanner on TypingMind?

Because you install it once and use it with any model. Playwright Scanner is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Playwright Scanner in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Community-Access/accessibility-agents/tree/main/skills/playwright-scanner. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Playwright Scanner?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Playwright Scanner?

As many as you like. As long as a model supports skills, you can use Playwright Scanner with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Playwright Scanner AI skill free?

Yes. It is published on GitHub by Community-Access under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇