frontend-testing

frontend-testing is a skill for Claude Code, Codex from schalkneethling/webdev-agent-skills. It costs 66 tokens per session (2,742 once invoked), scanned A, original, MIT.

A frontend testing guide for checking web applications from the user’s point of view and testing important implementation details. It covers Vitest unit tests, Playwright end-to-end tests, visual comparisons, and accessibility checks.

In plain words
What is it for?
Use it when writing or reviewing unit, browser, visual-regression, accessibility, or structure-validation tests for a frontend.
Why use it?
It helps ensure tests verify what users need, not just how the code happens to be written. It also covers edge cases, error handling, visual changes, and accessibility.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing unit, browser, visual-regression, accessibility, or structure-validation tests for a frontend.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/schalkneethling/webdev-agent-skills/frontend-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 schalkneethling/webdev-agent-skills --skill frontend-testing
Clone the repo
git clone --depth 1 https://github.com/schalkneethling/webdev-agent-skills

Made for: Claude Code, Codex.

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 frontend-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/schalkneethling/webdev-agent-skills/frontend-testing/github.svg)](https://agentmods.dev/skills/schalkneethling/webdev-agent-skills/frontend-testing)
Your own site
<a href="https://agentmods.dev/skills/schalkneethling/webdev-agent-skills/frontend-testing"><img src="https://agentmods.dev/badge/skills/schalkneethling/webdev-agent-skills/frontend-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 frontend-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/schalkneethling/webdev-agent-skills/frontend-testing"><img src="https://agentmods.dev/badge/skills/schalkneethling/webdev-agent-skills/frontend-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,742 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.00066 $0.02742
Opus 5.5 $0.00026 $0.01097
Sonnet 5.5 $0.00013 $0.00548
Haiku 4.5 $0.00007 $0.00274

Measured 2mo ago against content hash 39e58d18151d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-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 2mo 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.

frontend-testing/SKILL.md · 356 lines

How it starts

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

Frontend Testing

Start by writing tests that validate acceptance criteria. Then add implementation tests where they provide value.

Core Principle

"The more your tests resemble the way your software is used, the more confidence they can give you." — Kent C. Dodds

This principle guides testing decisions, but isn't the whole picture:

  • Acceptance criteria tests verify the system does what users/stakeholders need. These should be stable across refactors.
  • Implementation tests verify the pieces are robust — edge cases, error handling, complex logic. These may change when you refactor.

Both have value. The anti-pattern to avoid is tests that only mirror implementation without validating meaningful behavior.

When to Load References

Load reference files based on test type:

  • Unit tests with DOM: references/locator-strategies.md
  • E2E tests: references/locator-strategies.md, references/aria-snapshots.md
  • Visual regression tests: references/visual-regression.md
  • Accessibility audits: references/accessibility-testing.md
  • Structure validation: references/aria-snapshots.md — consolidate multiple assertions into one
  • All tests: Start with this file for core workflow

Workflow

Step 1: Start with Acceptance Criteria

Before writing any test, identify what the code should do from the user's perspective.

Ask for or extract criteria from:

  • Ticket description or user story
  • Figma annotations
  • Functional requirements
  • Product owner clarification

Document criteria as a checklist. These become your first tests.

Write acceptance tests before reading implementation. This prevents circular validation where tests just confirm "code does what code does."

Step 2: Map Criteria to Test Cases

For each criterion, identify:

  • Happy path: Normal expected behavior
  • Edge cases: Boundary conditions
  • Error cases: Invalid inputs, failures

Example mapping:

Criterion: "User can filter products by category"
├─ Happy path: Select category, products filter correctly
├─ Edge case: No products match filter, show empty state
├─ Edge case: Clear filter, all products show again
├─ Error case: Filter API fails, show error message
└─ Accessibility: Filter controls are keyboard accessible

Read the full file on GitHub · 356 lines

Files

What ships with it

4 files 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. 2mo ago First seen · 356 lines · 66 tokens per session scan A 39e58d18151d

Subscribe to this mod's changes

frontend-testing is a skill published in the GitHub repository schalkneethling/webdev-agent-skills (7 stars, last pushed 6mo ago), licensed MIT. It adds 66 tokens to every session and 2,742 once invoked, about $0.0003 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-08-31.

Related

frontend-testing compared with skills from other repositories

frontend-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-testingschalkneethling/webdev-agent-skillsSkill76mo agoMITA66Claude Code, Codex
test-masterJeffallan/claude-skillsSkill12k7d agoMITA104Claude Code
axiom-testingCharlesWiltgen/AxiomSkill1.3kyesterdayMITA38Claude Code
test-generatorrshankras/claude-code-apple-skillsSkill8642d agoMITA33Claude Code
testing-blocksadobe/skillsSkill319yesterdayApache-2.0A61Claude Code
designing-testsCloudAI-X/claude-workflow-v2Skill1.4k1mo agoMITA48Claude Code
test-automation-expertcuriositech/some_claude_skillsSkill263yesterdayMITA133Claude Code