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.
npx agentmods add skills/cass-2003/local-workflow-skill/playwright-e2enpx skills add cass-2003/local-workflow-skill --skill playwright-e2egit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00084 | $0.02327 |
| Opus 5 | $0.00042 | $0.01163 |
| Sonnet 5 | $0.00017 | $0.00465 |
| Haiku 4.5 | $0.00008 | $0.00233 |
Grade A, and why
playwright-e2e 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Playwright E2E 测试
角色定义
你是 Playwright E2E 测试与浏览器自动化引擎。接收测试需求后,自主完成测试架构设计、用例编写、Page Object 构建、CI 集成、报告配置全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 项目识别与环境分析
- 框架识别: Playwright Test / Playwright + Jest / Playwright + Vitest
- 项目扫描:
Glob—**/playwright.config.*/**/*.spec.ts/**/*.test.ts/**/e2e/**Grep—@playwright/test/page.goto/expect(page)/test.describe
- 技术栈: 前端框架(React/Vue/Angular/Svelte)、CI 平台(GitHub Actions/GitLab CI)
- 评估: 测试覆盖度 / Page Object 使用 / 并行策略 / 报告方案
Phase 2: 测试架构设计
项目结构:
tests/
├── e2e/ # E2E 测试
│ ├── pages/ # Page Object Models
│ │ ├── login.page.ts
│ │ └── dashboard.page.ts
│ ├── fixtures/ # 自定义 Fixtures
│ │ └── auth.fixture.ts
│ ├── auth.spec.ts
│ └── dashboard.spec.ts
├── api/ # API 测试
│ └── users.api.spec.ts
├── visual/ # 视觉回归
│ └── homepage.visual.spec.ts
└── playwright.config.ts
Page Object Model:
export class LoginPage {
constructor(private page: Page) {}
readonly email = this.page.getByLabel('Email');
readonly password = this.page.getByLabel('Password');
readonly submit = this.page.getByRole('button', { name: 'Sign in' });
async login(email: string, password: string) {
await this.email.fill(email);
await this.password.fill(password);
await this.submit.click();
}
}
Custom Fixtures:
import { test as base } from '@playwright/test';
type Fixtures = { loginPage: LoginPage; authedPage: Page };
export const test = base.extend<Fixtures>({
loginPage: async ({ page }, use) => { await use(new LoginPage(page)); },
authedPage: async ({ browser }, use) => {
const ctx = await browser.newContext({ storageState: 'auth.json' });
await use(await ctx.newPage());
await ctx.close();
},
});
Phase 3: 测试编写与优化
定位器策略 (优先级):
getByRole()— 语义化,最推荐getByLabel()/getByPlaceholder()— 表单元素getByText()/getByTitle()— 文本内容getByTestId()— data-testid 属性locator('css')— CSS 选择器(最后手段)
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.
- 3d ago First seen · 239 lines · 84 tokens per session scan A d09e3100e8d5
playwright-e2e is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 1mo ago), licensed MIT. It adds 84 tokens to every session and 2,327 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-30.
Other skills, from other repositories
use-agent-browser-for-airi
Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…
e2e-deployment-skill
Use this deployment skill to verify shared skills load during Playwright startup.
playwright-screen-recording
Record browser test videos with Playwright for PR review and bug fix verification.
actionbook-web-test
Run browser-based web tests against websites using Actionbook CLI. Activate when the user wants to test a website workflow, run smoke tests, verify a user flow, check if a web application works, run regression tests, or validate browser-based interactions. Supports test definition, execution, assertion, reporting, and…
web-preview
Flutter Web版をビルド → サーバー起動 → Playwright でアクセス確認 → URLをユーザーに案内する。.
qa/e2e-playwright
Playwright E2E 测试完整方法论,涵盖项目初始化、Page Object Model、认证复用、API Mock、视觉回归、多浏览器测试、CI 集成和调试技巧.