playwright-bdd-migrator

playwright-bdd-migrator is an agent for Claude Code from pnakhat/qa-ai-repo. It costs 81 tokens per session (697 once invoked), scanned A, original, MIT.

An assistant for converting Playwright tests into behavior-driven development tests. BDD describes expected behavior in plain-language Gherkin scenarios, while page objects keep browser mechanics in code.

In plain words
What is it for?
Use it to migrate imperative Playwright tests, create feature files and page objects, connect step definitions, and verify that behavior remains the same.
Why use it?
It preserves what existing tests check while making their intent easier for non-specialists to read and maintain.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the playwright-bdd plugin — 1 skill, 1 agent shipped together

Good fit Use it to migrate imperative Playwright tests, create feature files and page objects, connect step definitions, and verify that behavior remains the same.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pnakhat/qa-ai-repo/playwright-bdd-migrator
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.

Clone the repo
git clone --depth 1 https://github.com/pnakhat/qa-ai-repo

Made for: Claude Code.

Or install playwright-bdd, the plugin that ships this one along with the rest of its 1 skill, 1 agent.

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-bdd-migrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator/github.svg)](https://agentmods.dev/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator)
Your own site
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator/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-bdd-migrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator"><img src="https://agentmods.dev/badge/agents/pnakhat/qa-ai-repo/playwright-bdd-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 697 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.00081 $0.00697
Opus 5.5 $0.00032 $0.00279
Sonnet 5.5 $0.00016 $0.00139
Haiku 4.5 $0.00008 $0.00070

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

Security

Grade A, and why

playwright-bdd-migrator 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 1mo 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.

playwright-bdd/agents/playwright-bdd-migrator.md · 49 lines

How it starts

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

You are a BDD migration engineer. You convert imperative @playwright/test specs into playwright-bdd features whose .feature files read as business behavior, while preserving exactly what the tests verify.

Follow the playwright-bdd skill (preloaded) — its rules and guardrails are authoritative. Detailed code, config, and commands live in the reference.md file in the playwright-bdd skill's directory and the gherkin-style.md file in the playwright-bdd skill's directory; Read them when a step needs them.

Before execution, read the verification.md file in the playwright-bdd skill's directory. Apply its decision and verification criteria to the process below; include unexecuted checks and their reasons in the report.

Process

  1. Assess the target: existing Playwright tests, any page objects, the config, and whether playwright-bdd is set up. Install/configure it if needed (defineBddConfig, bddgen script — see the reference.md file in the playwright-bdd skill's directory).
  2. Per test, recover intent: the user goal and the behavior(s) verified. Split multi-behavior tests into multiple scenarios.
  3. Write the .feature in declarative domain language, following the skill's golden rule and the gherkin-style.md file in the playwright-bdd skill's directory.
  4. Extract page objects with intent-level methods that carry the mechanics (clicks/locators/waits from the original test).
  5. Wire step definitions with createBdd(test) over fixtures that provide the page objects; keep steps thin and stateless.
  6. Verify parity: run npx bddgen && npx playwright test; confirm the BDD scenarios cover the original behavior and pass before removing the old test. Carry the old test's data setup and cleanup into fixtures (per the skill's Test data: setup and teardown), and confirm the suite passes twice in a row and fully parallel.

Guardrails

  • Treat every skill anti-pattern as a rejection, not a style note.

Read the full file on GitHub · 49 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. 1mo ago Changed · +2 lines 1e4e0ebaa09a
  2. 1mo ago Changed · +4 lines da89081fc992
  3. 1mo ago Changed · -23 lines abc78793a537
  4. 3mo ago First seen · 66 lines · 81 tokens per session scan A e4b0d3c6b825

Subscribe to this mod's changes

playwright-bdd-migrator is an agent published in the GitHub repository pnakhat/qa-ai-repo (2 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 697 once invoked, about $0.0003 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

playwright-bdd-migrator compared with agents from other repositories

playwright-bdd-migrator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-bdd-migratorpnakhat/qa-ai-repoAgent21mo agoMITA81Claude Code
integration-testing-orchestratoreunomia-bpf/agentsightAgent811todayMITA0Claude Code
qa-testerdatit309/supergraphAgent236d agoMITA41Claude Code
qa-testercskwork/oh-my-symphonyAgent44todayApache-2.0A49Claude Code
e2e-testermnzralee/claude-multi-agent-architectureAgent93d agoMITA41Claude Code
playwright-test-generatorRaNDoM6913/claude-code-superkitAgent3todayMITA17Claude Code
test-engineerashrafmusa/agenticanaAgent2yesterdayMITA49Claude Code