/agent-skills:browser-testingfrom agent-skills
Writes and debugs end-to-end browser tests with Playwright, Cypress, and Selenium. Covers selector strategy, waiting, test data, and reducing flakiness.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Browser tests are the most expensive tests you own — slowest to run, most likely to break for reasons unrelated to your code, hardest to debug. That cost buys one thing nothing else does: proof that the pieces work together in a real browser.
Spend that budget on a small number of journeys that must never break. A large E2E suite is not thorough; it is slow, flaky, and eventually ignored, and an ignored suite provides no safety while still consuming CI time.
Rule of thumb: if a case can be covered below the UI, cover it there. E2E is for the wiring.
Pick the paths where failure is unacceptable, typically five to fifteen for a whole product:
For each, test the happy path plus the one failure that matters (declined card, taken username). Every remaining permutation belongs in a cheaper test.
Done when: the journey list is written and short enough to defend.
Selector choice determines whether the suite survives a redesign. In order of preference:
getByRole("button", { name: "Save" }). Closest to how a
person finds the control, and it fails when accessibility breaks, which is a real bug.getByText, for non-interactive content.data-testid. Explicit contract, immune to restyling. Use
when the first two are ambiguous.div > div:nth-child(3) > span encodes the DOM
shape, and it breaks on a layout change that broke nothing for users.Done when: no selector in the suite depends on the DOM's structure.
Fixed sleeps are the single largest source of flakiness. sleep(2000) is simultaneously too
long on a fast machine and too short on a loaded CI runner — it wastes time and fails
randomly, the worst of both.
Wait for the state you actually need: an element to be visible, a request to resolve, text to change, a URL to update. Modern frameworks auto-wait on assertions — lean on that rather than adding explicit waits.
The exception worth knowing: waiting for something to not appear genuinely requires a timeout, since absence has no event. Keep it short and rare.
Done when: the suite contains no unconditional sleeps.
Tests that share fixtures fail in ways that depend on execution order, and order-dependent failures cost hours to diagnose.
Done when: any single test passes alone, and the full suite passes in parallel.
A browser test that fails in CI with "element not found" and nothing else will be marked flaky and skipped. Configure, before you need them:
Done when: you could diagnose a CI-only failure without reproducing it locally.
When a test fails intermittently, find the cause before touching retries. Almost always one of:
Retries hide all five. Use them only as a temporary measure with the flake tracked as an issue — an automatic retry on a real race means shipping the race.
Done when: the test passes 20 consecutive runs, or the flake is filed with a cause.
Run it in parallel, and shard in CI. Keep a smoke subset, two or three journeys — that runs on every commit, with the full suite on merge or nightly. Fast feedback on the critical path beats complete feedback nobody waits for.
When a journey stops being critical, delete its test. A suite that only ever grows becomes the thing people route around.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
60 skills in this plugin
/accessibility-reviewReviews an interface for barriers that stop people using it — keyboard operation, screen reader support, contrast, focus management, and form semantics. Use this whenever the user is building or reviewing UI, mentions accessibility, a11y, WCAG, screen readers, or keyboard navigation, and proactively when a change adds a modal, a custom control, a form, or anything interactive. For general code correctness, use code-review./agent-deploymentShips an agent to production — packaging, config and secrets, staged rollout, and the rollback plan — for a system whose failures are usually silent rather than loud. Use this whenever the user is deploying an agent or LLM feature, planning a rollout or canary, moving an agent from prototype to production, or asking how to release a prompt or model change safely. For monitoring it once live, use agent-observability.Other plugins' skills for the same job
/agent-designnpx claudepluginhub arjunprabhulal/agent-skills --plugin agent-skills