browser-testing

browser-testing is a skill for Claude Code from dork-labs/dorkos. It costs 55 tokens per session (2,775 once invoked), scanned A, original, MIT.

A guide for writing and maintaining Playwright browser tests, which check how an application works in a real browser.

In plain words
What is it for?
Use it to test cross-part interactions, server-backed flows, streaming responses, layouts, keyboard shortcuts, and focus behavior.
Why use it?
It helps decide when a full browser check is needed instead of a smaller unit test, and provides consistent patterns for keeping those tests maintainable.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { FeaturePage } from '../pages/FeaturePage';.

Part of the flow plugin — 41 skills, 44 commands, 5 agents, 4 hooks shipped together

Good fit Use it to test cross-part interactions, server-backed flows, streaming responses, layouts, keyboard shortcuts, and focus behavior.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos
agentmods
npx agentmods add skills/dork-labs/dorkos/browser-testing

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 41 skills, 44 commands, 5 agents, 4 hooks.

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 browser-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/dork-labs/dorkos/browser-testing/github.svg)](https://agentmods.dev/skills/dork-labs/dorkos/browser-testing)
Your own site
<a href="https://agentmods.dev/skills/dork-labs/dorkos/browser-testing"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/browser-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for browser-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/dork-labs/dorkos/browser-testing"><img src="https://agentmods.dev/badge/skills/dork-labs/dorkos/browser-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,775 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 126
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00055 $0.02775
Opus 5.5 $0.00022 $0.01110
Sonnet 5.5 $0.00011 $0.00555
Haiku 4.5 $0.00006 $0.00278

Measured 7d ago against content hash 1d8381016267, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-testing 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 7d 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.

.agents/skills/browser-testing/SKILL.md · 221 lines

How it starts

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

Browser Testing Methodology

1. When to Write a Browser Test vs Unit Test

Browser test (Playwright):

  • Cross-component flows (sidebar click updates chat panel)
  • SSE streaming verification (message send → streaming indicator → response rendered)
  • Real API calls through the full stack (client → Hono → Agent SDK)
  • CSS/layout regressions visible only in a real browser
  • Browser-specific behavior (keyboard shortcuts, focus management)

Unit test (Vitest):

  • Individual component rendering and props
  • Hook logic and state transitions
  • Service functions and data transformations
  • Schema validation (Zod)
  • Pure utility functions

Rule of thumb: If the behavior spans multiple FSD layers or requires a real server, it's a browser test.

2. Page Object Model Patterns

POMs live in apps/e2e/pages/ and are injected as Playwright fixtures via fixtures/index.ts.

Each POM encapsulates locators and interaction methods for one page or component:

// apps/e2e/pages/FeaturePage.ts
import type { Page, Locator } from '@playwright/test';

export class FeaturePage {
  readonly page: Page;
  readonly primaryAction: Locator;

  constructor(page: Page) {
    this.page = page;
    this.primaryAction = page.getByRole('button', { name: /action/i });
  }

  async doAction() {
    await this.primaryAction.click();
  }
}

Register in fixtures:

// apps/e2e/fixtures/index.ts
import { test as base } from '@playwright/test';
import { FeaturePage } from '../pages/FeaturePage';

export const test = base.extend<{ featurePage: FeaturePage }>({
  featurePage: async ({ page }, use) => {
    await use(new FeaturePage(page));
  },
});

Test files import from fixtures, never from @playwright/test directly:

import { test, expect } from '../../fixtures';

3. Selector Strategy

Priority order:

  1. getByRole() — Best: semantic, resilient to UI changes

    page.getByRole('button', { name: /send/i });
    page.getByRole('textbox', { name: /message/i });
    page.getByRole('tab', { name: /settings/i });
    

Read the full file on GitHub · 221 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. 7d ago Changed 1d8381016267
  2. 20d ago Changed · -4 lines c631d68549b8
  3. 29d ago Changed · +1 lines bfba42216c13
  4. 1mo ago Changed 2940a7ee1380
  5. 1mo ago First seen · 224 lines · 55 tokens per session scan A 0461246aebc5

Subscribe to this mod's changes

browser-testing is a skill published in the GitHub repository dork-labs/dorkos (12 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 2,775 once invoked, about $0.0002 per session on Opus 5.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

test-reporting

Run the Level 2 dummy agent integration test suite and produce a detailed HTML report with per-test input → outcome analysis.

aden-hive/hive · 0 tokens

self-testing

E2E self-testing workflow for vibing.nvim using a separate Neovim instance controlled over RPC. Use when writing or debugging E2E tests, running npm run test:e2e, or executing the 3-try auto-fix rule after implementing a feature. Covers the…

shabaraba/vibing.nvim · 105 tokens

test-design

Automatically design comprehensive E2E test cases for newly implemented vibing.nvim features. Use immediately after completing feature implementation (Phase 5.4) and before running E2E tests. Generates test scenarios covering Happy paths, Error cases, Edge cases, and Integration points with priority ranking…

shabaraba/vibing.nvim · 82 tokens

add-integration-test

Use when a ticket asks for integration or end-to-end coverage across components — an API route hitting a database, a service-to-service call, a multi-step flow, file or database persistence, concurrent writers, crash recovery — rather than a single unit. Invoke for "test the endpoint end to end", "cover the checkout…

tmj-90/gaffer · 91 tokens

e2e-browser-test

Use when a ticket asks for end-to-end or browser coverage of a user journey — sign-up, checkout, a form submission, a dashboard flow — driven through the real UI with Playwright, Cypress, or the repo's browser harness. Invoke for "add an e2e test", "cover the flow in the browser", or when an acceptance criterion can…

tmj-90/gaffer · 87 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

thevibeworks/claude-code-docs · 35 tokens