e2e-playwright-front

e2e-playwright-front is a skill for Claude Code from sei-newbear/xp-harness. It costs 88 tokens per session (691 once invoked), scanned A, original, MIT.

A project-specific guide for writing browser end-to-end tests with Playwright, a tool that controls a web browser. It encourages tests that read like plain-language specifications and use selectors based on what users see and do.

In plain words
What is it for?
Use it to create or edit scenarios under e2e/specs, move browser actions into reusable helpers under e2e/steps, and structure tests with GIVEN, WHEN, and THEN sections.
Why use it?
It makes browser tests easier to understand and less dependent on implementation details such as HTML IDs. It also requires each test to create its own starting state so tests do not rely on execution order.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create or edit scenarios under e2e/specs, move browser actions…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sei-newbear/xp-harness/e2e-playwright-front
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 sei-newbear/xp-harness --skill e2e-playwright-front
Clone the repo
git clone --depth 1 https://github.com/sei-newbear/xp-harness

Made for: Claude Code.

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 e2e-playwright-front

README.md
[![agentmods](https://agentmods.dev/badge/skills/sei-newbear/xp-harness/e2e-playwright-front.svg)](https://agentmods.dev/skills/sei-newbear/xp-harness/e2e-playwright-front)
Your own site
<a href="https://agentmods.dev/skills/sei-newbear/xp-harness/e2e-playwright-front"><img src="https://agentmods.dev/badge/skills/sei-newbear/xp-harness/e2e-playwright-front.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 691 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.00088 $0.00691
Opus 5 $0.00044 $0.00345
Sonnet 5 $0.00018 $0.00138
Haiku 4.5 $0.00009 $0.00069

Measured 6d ago against content hash cc3c9a657b3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

e2e-playwright-front 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 6d 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.

.claude/skills/harness-verification/templates/webapp-compose/.claude/skills/e2e-playwright-front/SKILL.md · 35 lines

What it actually says

front E2E の流儀 (Playwright)

このプロジェクトの E2E は「動作確認スクリプト」ではなく仕様書として読めることを目指す。迷ったら「非エンジニアが読んで意図を追えるか」で判断する。

セレクタはユーザー視点で

優先順位: getByRole (役割と文言) → getByLabel / getByText (見える文字) → getByTestIdpage.locator('#id') は最終手段。ID セレクタは実装詳細に結合し、仕様書としての価値を失う。

操作はヘルパー関数 (日本語名) に切り出す

  • テスト本体はステップを並べただけに見える状態を保つ。Playwright API の生呼び出しは e2e/steps/ のヘルパーに隠蔽する
  • 関数名は日本語で意図を表現する (例: メモを追加する(page, { 本文 }))
  • テスト本体に page.click / page.locator / expect(page...) が出てきたらヘルパーへ昇格させるサイン
  • ヘルパーは嘘をつかない: 受け取った引数は実装内で必ず使う

前提 (GIVEN) と行動 (WHEN/THEN) を describe / test で分離する

  • GIVEN: test.describe の名前 (名詞句) + beforeEach で前提状態を作る
  • WHEN/THEN: test 本体 (動詞句で始まり結果まで言い切る名前)
  • 外側 describe (機能名) > 内側 describe (GIVEN 句) > test 名 を連結すると、完結した日本語の仕様文になるのが目印

テスト独立性

  • 前提となる状態は必ず beforeEach自分で作る (他テストの副作用に頼らない、afterEach だけに頼らない)
  • 実行順序が変わっても、単独で実行しても、正しく動くこと

ファイル配置

  • spec は e2e/specs/<シナリオ名>.spec.ts、1 ファイル 1 シナリオ。連番は付けない
  • ヘルパーは e2e/steps/ 配下
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. 6d ago First seen · 35 lines · 88 tokens per session scan A cc3c9a657b3e

Subscribe to this mod's changes

e2e-playwright-front is a skill published in the GitHub repository sei-newbear/xp-harness (9 stars, last pushed 29d ago), licensed MIT. It adds 88 tokens to every session and 691 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

test-electron-app

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when…

PostHog/posthog-foss · 112 tokens

pyats-dynamic-test

Generate and execute deterministic pyATS aetest validation scripts - interface state, OSPF neighbors, BGP paths, ping matrices, and custom compliance tests. Use when writing a network test, validating post-change state, running pass/fail checks, or building automated regression tests.

automateyournetwork/netclaw · 61 tokens

trailblaze

Use when working with Trailblaze — natural-language device control for coding agents across iOS, Android, and web, with replayable .trail.yaml files as the artifact. Trigger on mentions of Trailblaze, the trailblaze CLI, .trail.yaml files, trailmaps, waypoints, or requests to drive / author / debug / run UI tests on…

block/trailblaze · 115 tokens

Detox Mobile Testing

Gray-box end-to-end testing for React Native apps with Detox. Covers .detoxrc.js configuration, build and test commands, matchers, device.launchApp control, automatic synchronization, and macOS CI pipelines.

PramodDutta/qaskills · 48 tokens