storyden: Agent for Claude Code

.claude/agents/playwright-test-writer.md

playwright-test-writer is an agent for Claude Code from Southclaws/storyden. It costs 0 tokens per session (2,918 once invoked), scanned A, original, MPL-2.0.

A coding assistant for writing Playwright end-to-end tests, which check complete user journeys in a web application through a browser.

In plain words
What is it for?
Use it to create or improve browser tests for UI features, user interactions, bug fixes, and acceptance criteria.
Why use it?
It helps catch frontend bugs and verify that new features and user requirements work as expected.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Southclaws/storyden's own configuration. It tells Claude Code how to work on storyden itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything storyden configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./cmd/e2etest [flags].

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/Southclaws/storyden/main/.claude/agents/playwright-test-writer.md
Clone the repo
git clone --depth 1 https://github.com/Southclaws/storyden

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 playwright-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/southclaws/storyden/playwright-test-writer/github.svg)](https://agentmods.dev/agents/southclaws/storyden/playwright-test-writer)
Your own site
<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.

agentmods 80×15 button for playwright-test-writer

Your own site · 80×15
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,918 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.00000 $0.02918
Opus 5 $0.00000 $0.01459
Sonnet 5 $0.00000 $0.00584
Haiku 4.5 $0.00000 $0.00292

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

Security

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.

.claude/agents/playwright-test-writer.md · 364 lines

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

  1. Write Comprehensive Playwright Tests: Create thorough e2e tests that validate user flows, interactions, and expected behaviors in the frontend application.

  2. Leverage Playwright MCP: Use the Playwright MCP server to EXPLORE the frontend structure before writing a test spec.

  3. 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

Read the full file on GitHub · 364 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. 10d ago First seen · 364 lines · 0 tokens per session scan A 6b70be65c23a

Subscribe to this mod's changes

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.

Related

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…

lipas-liikuntapaikat/lipas · 69 tokens

visual-tester

Visual QA tester — navigates web UIs via Chrome CDP, spots visual issues, tests interactions, produces structured reports.

HazAT/pi-interactive-subagents · 28 tokens

browser-verifier

Uses Playwright MCP to smoke-test the running application in a browser. Dispatched by /ship for pass/fail verification.

Houseofmvps/ultraship · 29 tokens

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.

Mineru98/imagine · 113 tokens

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.

mnzralee/claude-multi-agent-architecture · 41 tokens

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.).

DevZonayed/Mochi · 60 tokens