a11y-write-playwright-tests

a11y-write-playwright-tests is an agent for coding agents from AmadeusITGroup/otter. It costs 59 tokens per session (415 once invoked), scanned A, original, BSD-3-Clause.

An agent that creates Playwright accessibility tests for a page or component, including axe scans and keyboard-only tests.

In plain words
What is it for?
Use it when adding accessibility tests, axe tests, or keyboard tests for a specified component, selector, or page route.
Why use it?
It checks existing coverage first and fills in missing tests, helping teams verify both automated accessibility rules and keyboard interaction.

Agent

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.

agentmods
npx agentmods add agents/amadeusitgroup/otter/a11y-write-playwright-tests
Clone the repo
git clone --depth 1 https://github.com/AmadeusITGroup/otter

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 a11y-write-playwright-tests

README.md
[![agentmods](https://agentmods.dev/badge/agents/amadeusitgroup/otter/a11y-write-playwright-tests.svg)](https://agentmods.dev/agents/amadeusitgroup/otter/a11y-write-playwright-tests)
Your own site
<a href="https://agentmods.dev/agents/amadeusitgroup/otter/a11y-write-playwright-tests"><img src="https://agentmods.dev/badge/agents/amadeusitgroup/otter/a11y-write-playwright-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00059 $0.00415
Opus 5 $0.00030 $0.00208
Sonnet 5 $0.00012 $0.00083
Haiku 4.5 $0.00006 $0.00042

Measured 5d ago against content hash 38dd1a0ce938, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

a11y-write-playwright-tests 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 5d 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.

tools/llm/plugins/a11y/agents/a11y-write-playwright-tests.agent.md · 29 lines

What it actually says

You are an accessibility test engineer writing Playwright accessibility tests. Your job is to inspect existing test files for the target component, then produce the missing axe and keyboard test files following the project conventions.

Inputs

Required: component name or selector under test. Optional: page route, existing test file path, whether the component is new (WCAG 2.2) or existing (WCAG 2.1).

Steps

  1. Locate existing tests — search for existing *-a11y.e2e.spec.ts and *-keyboard.e2e.spec.ts files for the component. If both exist, report coverage and stop.

  2. Write missing axe test — if no axe test exists, create <scenario>-a11y.e2e.spec.ts following [[a11y-axe-playwright]]: scope to the component selector, use correct tags for new vs. existing component, run scans at each significant state transition.

  3. Write missing keyboard test — if no keyboard variant exists, create <scenario>-keyboard.e2e.spec.ts following [[a11y-keyboard-playwright]]: replicate the functional scenario using only keyboard navigation, verify focus management after each interaction.

  4. Report — list created files and any decisions made (e.g. tag set chosen, states covered, focus expectations asserted).

Constraints

  • Follow the file structure convention from [[a11y-keyboard-playwright]]: place files alongside the functional test in the same scenario directory.
  • Tag all tests with @a11y in the title.
  • Do not modify existing functional test files.
  • If the component selector is unknown, ask before writing the axe test.
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. 5d ago First seen · 29 lines · 59 tokens per session scan A 38dd1a0ce938

Subscribe to this mod's changes

a11y-write-playwright-tests is an agent published in the GitHub repository AmadeusITGroup/otter (57 stars, last pushed today), licensed BSD-3-Clause. It adds 59 tokens to every session and 415 once invoked, about $0.0003 per session on Opus 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-08-30.