frontend-qa-friendly

frontend-qa-friendly is a skill for Claude Code, Codex from whitebeardit/.cursor. It costs 50 tokens per session (881 once invoked), scanned A, original, MIT.

A set of frontend coding guidelines for making web pages and forms easy to test with Playwright, a tool that automates browser checks. It focuses on meaningful HTML, accessible labels, and stable element identifiers.

In plain words
What is it for?
Use it when building or reviewing UI components, forms, and pages that will be tested automatically. It covers labels, buttons, links, checkboxes, radio buttons, and test-specific identifiers.
Why use it?
It helps prevent tests from breaking when the page layout or styling changes. QA can find buttons, links, and form fields by their names instead of fragile position-based selectors.

Skill for Claude CodeCodex

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

Good fit Use it when building or reviewing UI components, forms, and pages that will be tested automatically. It covers labels, buttons, links, checkboxes, radio buttons, and test-specific identifiers.

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

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-qa-friendly

README.md
[![agentmods](https://agentmods.dev/badge/skills/whitebeardit/.cursor/skill-frontend-qa-friendly.svg)](https://agentmods.dev/skills/whitebeardit/.cursor/skill-frontend-qa-friendly)
Your own site
<a href="https://agentmods.dev/skills/whitebeardit/.cursor/skill-frontend-qa-friendly"><img src="https://agentmods.dev/badge/skills/whitebeardit/.cursor/skill-frontend-qa-friendly.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 881 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.00050 $0.00881
Opus 5 $0.00025 $0.00441
Sonnet 5 $0.00010 $0.00176
Haiku 4.5 $0.00005 $0.00088

Measured 8d ago against content hash 13b4c08556b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

frontend-qa-friendly 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 8d 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/qa/skill-frontend-qa-friendly/SKILL.md · 65 lines

How it starts

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

Frontend QA-friendly

When writing or reviewing frontend code that will be tested by QA (e.g. Playwright), ensure markup allows stable, fast locators: getByRole, getByLabel, getByTestId. Avoid selectors that depend on DOM position or styling.

Goal

Frontend that lets tests locate and fill elements quickly and reliably, without brittle XPaths like div[1]/div[2]/input.

Forms

  • Labels: Always associate each input with a label: <label for="id"> and id on the input, or wrap the input inside <label>.
  • Avoid inputs with no associated label; tests rely on getByLabel('Label text') or getByRole('textbox', { name: 'Label text' }).
  • Placeholder: If using placeholder as fallback, keep it stable or document it; tests may use getByPlaceholder().
  • Use visible text or a stable aria-label so tests can use getByRole('button', { name: '...' }) or getByRole('link', { name: '...' }).
  • Avoid buttons/links with no accessible name (e.g. icon-only without aria-label).

Checkboxes and radios

  • Associate each control with a label or aria-label so tests can use getByRole('checkbox', { name: '...' }) or getByRole('radio', { name: '...' }).

Combos and selects

  • Prefer native <select> or components that expose proper roles and names (e.g. combobox + option).
  • Avoid custom dropdowns that are only targetable by "first button in second div"; expose role and accessible name so tests can use getByRole('combobox', { name: '...' }) and getByRole('option', { name: '...' }).

IDs

  • Use stable, unique IDs when you use id; avoid auto-generated IDs that change every build.
  • Prefer semantic hooks (role + label) over IDs for test locators when possible.

data-testid

  • Use data-testid when role/label are not enough (e.g. inner regions, dynamic lists, complex components).
  • Use a stable, documented convention (e.g. data-testid="form-nome", data-testid="btn-enviar").
  • Tests can then use getByTestId('form-nome'). Do not overuse; prefer accessible markup first.

Read the full file on GitHub · 65 lines

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. 8d ago First seen · 65 lines · 0 tokens per session scan A 13b4c08556b0

Subscribe to this mod's changes

frontend-qa-friendly is a skill published in the GitHub repository whitebeardit/.cursor (12 stars, last pushed 6mo ago), licensed MIT. It adds 50 tokens to every session and 881 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.