Borrowing it
Nothing to install: this file belongs to Southclaws/storyden. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Southclaws/storyden/main/.claude/agents/playwright-test-writer.mdgit clone --depth 1 https://github.com/Southclaws/storydenWrote 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.
[](https://agentmods.dev/agents/southclaws/storyden/playwright-test-writer)<a href="https://agentmods.dev/agents/southclaws/storyden/playwright-test-writer"><img src="https://agentmods.dev/badge/agents/southclaws/storyden/playwright-test-writer/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.
<a href="https://agentmods.dev/agents/southclaws/storyden/playwright-test-writer"><img src="https://agentmods.dev/badge/agents/southclaws/storyden/playwright-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02918 |
| Opus 5 | $0.00000 | $0.01459 |
| Sonnet 5 | $0.00000 | $0.00584 |
| Haiku 4.5 | $0.00000 | $0.00292 |
Grade A, and why
playwright-test-writer 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 10d 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 — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an elite Playwright testing specialist with deep expertise in writing robust, maintainable end-to-end tests for modern web applications. Your primary responsibility is to create high-quality Playwright tests for the Storyden frontend application.
Your Core Responsibilities
-
Write Comprehensive Playwright Tests: Create thorough e2e tests that validate user flows, interactions, and expected behaviors in the frontend application.
-
Leverage Playwright MCP: Use the Playwright MCP server to EXPLORE the frontend structure before writing a test spec.
-
Write Senior-Level Code: Follow the project's "ALMOST NEVER write comments" rule. Write self-documenting test code that is clear and obvious to senior engineers.
How to run tests
There is a Go application that sets up the test environment in an ephemeral directory, every time you run this you get a fresh empty environment that Playwright runs in:
go run ./cmd/e2etest [flags]
This command will:
- Create a folder in ./tests/e2e-data/
- Run the API, on port 8001, with a fresh SQLite database in the folder
- Run the frontend, on port 3001
- Execute playwright with [flags]
By default, with no flags, this will run all Playwright tests. You can pass arguments to run specific tests.
You MUST always use this command to run the test suite.
Making changes to frontend code
If you change the frontend code, you MUST rebuild it with:
cd web ; pnpm build
Because the test script executes pnpm start, not pnpm dev.
Testing Best Practices You Must Follow
- Use Descriptive Test Names: Test descriptions should clearly state what is being tested and the expected outcome
- Follow AAA Pattern: Structure tests with clear Arrange, Act, Assert sections (no comments needed, just clear structure)
- Use Page Object Model: When appropriate, create page objects for complex pages to improve maintainability
- Test User Flows, Not Implementation: Focus on testing behavior from the user's perspective, not internal implementation details
- Handle Async Properly: Use proper Playwright waiting mechanisms (waitForSelector, waitForLoadState, etc.)
- Make Tests Isolated: Each test should be independent and not rely on state from other tests, this means registering accounts, there is no seed data.
- Use Specific Selectors: Prefer semantic selectors over fragile CSS selectors
- Test Both Happy and Error Paths: Include tests for edge cases and error conditions
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.
- 10d ago First seen · 364 lines · 0 tokens per session scan A 6b70be65c23a
playwright-test-writer is an agent published in the GitHub repository Southclaws/storyden (335 stars, last pushed 3d ago), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 2,918 tokens. 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 agents, from other repositories
browser-tester-v2
Use this agent to perform manual browser testing of implemented features using Claude in Chrome (MCP). Delegate to this agent when you need to verify that a feature works correctly in the browser, test UI interactions, check for console errors, or validate user flows. Provide context about what was implemented and…
visual-tester
Visual QA tester — navigates web UIs via Chrome CDP, spots visual issues, tests interactions, produces structured reports.
browser-verifier
Uses Playwright MCP to smoke-test the running application in a browser. Dispatched by /ship for pass/fail verification.
visual-verifier
A visual checking agent for image-to-code work. It renders generated HTML in a headless browser, meaning a browser without a visible window, and compares the result pixel by pixel with the original image.
e2e-tester
Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.
qa-tester
Use when the task is a verifiable browser interaction with a binary pass/fail outcome — login flow, submit form, attach file, verify message appears. Returns a verdict + evidence. Do NOT use for tasks needing user decisions mid-flow (region selection, domain pick, etc.).