browsertest

browsertest is a command for Claude Code from dork-labs/dorkos. It costs 10 tokens per session (1,590 once invoked), scanned A, original, MIT.

A command for running, creating, debugging, and maintaining browser tests with Playwright, a tool that automates real web browsers.

In plain words
What is it for?
Use it to run all or selected tests, create tests by exploring the application first, or manage browser-test maintenance.
Why use it?
It provides one entry point for common browser-test work and checks existing test guidance before creating new tests.

Command for Claude Code

Part of the flow plugin — 17 skills, 37 commands, 5 agents shipped together

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.

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

Made for: Claude Code.

Or install flow, the plugin that ships this one along with the rest of its 17 skills, 37 commands, 5 agents.

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 browsertest

README.md
[![agentmods](https://agentmods.dev/badge/commands/dork-labs/dorkos/browsertest.svg)](https://agentmods.dev/commands/dork-labs/dorkos/browsertest)
Your own site
<a href="https://agentmods.dev/commands/dork-labs/dorkos/browsertest"><img src="https://agentmods.dev/badge/commands/dork-labs/dorkos/browsertest.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.01590
Opus 5 $0.00005 $0.00795
Sonnet 5 $0.00002 $0.00318
Haiku 4.5 $0.00001 $0.00159

Measured 4d ago against content hash 69ead9206ae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

browsertest 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 4d 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/commands/browsertest.md · 154 lines

How it starts

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

Browser Test Command

You are managing DorkOS browser tests. Parse $ARGUMENTS and route to the appropriate action.

Routing Logic

Parse the first word of $ARGUMENTS:

run [feature]

Execute browser tests.

# Run all tests
cd apps/e2e && npx playwright test

# Run specific feature
cd apps/e2e && npx playwright test tests/<feature>/

After running, read apps/e2e/manifest.json and display a results summary.

create <feature> <description>

Create a new browser test using a 5-phase explore-first loop. Never guess selectors — discover them by navigating like a real user.

Pre-Flight
  1. Read apps/e2e/manifest.json — check if a similar test already exists. If it does, confirm with the user before overwriting.
  2. Read apps/e2e/GOTCHAS.md — absorb known anti-patterns before writing anything.
  3. Check manifest for explorationNotes on related tests — build on prior knowledge.
  4. Read apps/e2e/pages/ for existing POMs that may already cover needed interactions.
Phase 1: EXPLORE

Navigate the feature step-by-step as a real user would. At each meaningful state change:

  1. mcp__plugin_playwright_playwright__browser_navigate to http://localhost:6241 (or the relevant page)
  2. mcp__plugin_playwright_playwright__browser_snapshot to capture the accessibility tree
  3. Document: element roles, names, testids, hierarchy, loading indicators, conditional rendering
  4. Note timing: what loads immediately, what appears after an SSE event or API call, what animates

Continue until you have observed every state the test needs to assert against. Stay within the scope of <description> — don't explore unrelated features.

Phase 2: WRITE

Using only the selectors discovered in Phase 1:

  1. Create or update POMs in apps/e2e/pages/ with the explored locators. Prefer getByRole()data-testid → text. Never use CSS classes.
  2. Register new POMs in apps/e2e/fixtures/index.ts.
  3. Write the .spec.ts file in apps/e2e/tests/<feature>/ using custom fixtures from ../../fixtures.
  4. Follow the patterns in .claude/skills/browser-testing/SKILL.md.

Read the full file on GitHub · 154 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. 4d ago First seen · 154 lines · 10 tokens per session scan A 69ead9206ae0

Subscribe to this mod's changes

browsertest is a command published in the GitHub repository dork-labs/dorkos (9 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 1,590 once invoked, about $0.0001 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.