Playwright Frontend — Authoring Locatable Markup
A skill that guides frontend engineers to write semantic markup plus well-named, unique, stable `data-testid` attributes so tests and AI agents can locate elements deterministically.
Dev & CodingIntermediate★ 412⑂ 67AI score 8/10Last updated: Oct 12, 2026
What it does
- Reviews/writes component markup against Playwright's official locator priority (role → label → text → test id).
- Tells you when to add
data-testidand when not to, with afeature-component-element[-variant]kebab-case naming convention. - Enforces stable domain keys in lists (
user-row-${user.id}) instead of array indexes. - Links framework guides for React, Vue, Angular and Svelte, plus centralizing test IDs and stripping them from production builds.
Who it's for
- Frontend engineers building UIs that are covered by Playwright (or similar) E2E suites.
- Teams suffering from flaky selectors tied to text, locale, styling or DOM position.
- Developers exposing a durable automation contract for AI agents.
Examples
- "Review this dropdown component" → adds proper role/accessible name to a no-role custom widget, and a test id only where needed.
- "Add test ids to the user table rows" → generates
user-row-${user.id}instead of index-based ids. - "Centralize our test ids" → moves them into a constants module and strips them in production bundles.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/testdino-hq/playwright-skill/HEAD/frontend/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the frontend folder from the GitHub repo testdino-hq/playwright-skill into my ~/.claude/skills/playwright-frontend/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/testdino-hq/playwright-skill.git && mkdir -p ~/.claude/skills/playwright-frontend && cp -r playwright-skill/frontend/* ~/.claude/skills/playwright-frontend/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/testdino-hq/playwright-skill.git - Create the skill folder:
mkdir -p ~/.claude/skills/playwright-frontend - Copy the guide in:
cp -r playwright-skill/frontend/* ~/.claude/skills/playwright-frontend/ - The doc references
../core/, so copy the repo'score/folder too if you want those links to resolve. - Restart Claude Code and try: "Add stable data-testid attributes to this component."
View source on GitHub ↗License: MIT