AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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-testid and when not to, with a feature-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

  1. "Review this dropdown component" → adds proper role/accessible name to a no-role custom widget, and a test id only where needed.
  2. "Add test ids to the user table rows" → generates user-row-${user.id} instead of index-based ids.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/testdino-hq/playwright-skill.git
  3. Create the skill folder: mkdir -p ~/.claude/skills/playwright-frontend
  4. Copy the guide in: cp -r playwright-skill/frontend/* ~/.claude/skills/playwright-frontend/
  5. The doc references ../core/, so copy the repo's core/ folder too if you want those links to resolve.
  6. Restart Claude Code and try: "Add stable data-testid attributes to this component."