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.
npx skills add LFTPadilla/agent-dev-kit --skill playwright-stabilitygit clone --depth 1 https://github.com/LFTPadilla/agent-dev-kitWrote 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/skills/lftpadilla/agent-dev-kit/playwright-stability)<a href="https://agentmods.dev/skills/lftpadilla/agent-dev-kit/playwright-stability"><img src="https://agentmods.dev/badge/skills/lftpadilla/agent-dev-kit/playwright-stability/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/skills/lftpadilla/agent-dev-kit/playwright-stability"><img src="https://agentmods.dev/badge/skills/lftpadilla/agent-dev-kit/playwright-stability.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.00070 | $0.00684 |
| Opus 5.5 | $0.00028 | $0.00274 |
| Sonnet 5.5 | $0.00014 | $0.00137 |
| Haiku 4.5 | $0.00007 | $0.00068 |
Grade A, and why
playwright-stability 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 3mo 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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Playwright stability & real-user auth
Two jobs: (1) stop flakes, (2) authenticate like a real user without paying the login cost per test. Both raise realism and reliability at once.
Anti-flaky checklist
- Locators by role first.
getByRole(name)→getByLabel→getByText→getByTestId. CSS/XPath last. Role locators double as an accessibility check. - Web-first assertions only.
await expect(locator).toBeVisible()auto-waits. NeverwaitForTimeout, never assert on a snapshot you grabbed manually. - No manual sleeps. Replace every fixed wait with an assertion on the state you actually need (
toHaveURL,toBeEnabled,toHaveText). - Trace on first retry + screenshot on failure. Open the Trace Viewer before editing flaky code — DOM/network/console at each step finds the cause in minutes.
retries: 2in CI, 0 locally (a local flake is a bug to fix, not retry).- Isolate. Each test sets up its own data; no shared mutable state, no order dependency.
- One clean server. Kill stray dev servers and confirm the port is free before a full run — a stale server serves old assets and fakes failures.
Real-user auth via storageState (stop mocking the session)
Mocking auth is the least realistic part of a suite. Instead log in once, save the browser state, and every test starts already authenticated — real tokens, real session, near-zero per-test cost.
See templates/playwright/auth.setup.ts
and the config snippet beside it.
- Run the provider's real login (WorkOS / Cognito / Auth0 / your own form) in a
setupproject, thencontext.storageState({ path }). - Other projects depend on that setup and load
storageState. - Keep the state file out of git (it holds live tokens) and regenerate it at the start of each CI run — never commit and reuse across days.
- MFA / bot-protected SSO: do the login interactively once, persist the state, refresh when it expires. Credentials come from env vars, never hardcoded.
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.
- 3mo ago First seen · 51 lines · 70 tokens per session scan A 5f57f0e712b6
playwright-stability is a skill published in the GitHub repository LFTPadilla/agent-dev-kit (3 stars, last pushed 21d ago), licensed MIT. It adds 70 tokens to every session and 684 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.
playwright-stability compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playwright-stabilityLFTPadilla/agent-dev-kit | Skill | 3 | 21d ago | MIT | A | 70 | Claude Code |
| dogfoodNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| langbot-testinglangbot-app/LangBot | Skill | 19k | today | Apache-2.0 | A | 58 | Claude Code, Codex |
| playwright-cliVoltAgent/voltagent | Skill | 11k | 24d ago | MIT | A | 52 | Claude Code |
| penguin-testing-electronPrism-Shadow/penguin-harness | Skill | 3.4k | today | Apache-2.0 | A | 84 | Claude Code, Codex |
| playwright-cliUnicomAI/wanwu | Skill | 2.4k | 6d ago | Apache-2.0 | A | 76 | Claude Code, Codex |
| smoke-testSkyvern-AI/skyvern | Skill | 24k | today | AGPL-3.0 | A | 50 | Claude Code, Codex |