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 hzijad/playwright-agent-skills --skill playwright-auth-stategit clone --depth 1 https://github.com/hzijad/playwright-agent-skillsWrote 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/hzijad/playwright-agent-skills/playwright-auth-state)<a href="https://agentmods.dev/skills/hzijad/playwright-agent-skills/playwright-auth-state"><img src="https://agentmods.dev/badge/skills/hzijad/playwright-agent-skills/playwright-auth-state/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/hzijad/playwright-agent-skills/playwright-auth-state"><img src="https://agentmods.dev/badge/skills/hzijad/playwright-agent-skills/playwright-auth-state.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.00020 | $0.01165 |
| Opus 5.5 | $0.00008 | $0.00466 |
| Sonnet 5.5 | $0.00004 | $0.00233 |
| Haiku 4.5 | $0.00002 | $0.00117 |
Grade A, and why
playwright-auth-state 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 — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Playwright Auth State
Overview
Use this skill when tests need to start in a known logged-in session or with a role-specific browser state instead of repeating the login UI in every spec. It keeps the browser state deterministic without making authentication the focus of the test.
Do not use this skill when the login form itself is the feature under test, or when the app is fully local and does not need shared browser state.
When to Use
- When a test requires an already authenticated user.
- When a suite benefits from reusing browser state across many tests.
- When you need separate roles or permissions without redoing the UI login.
When Not to Use
- When the login flow is the feature under test.
- When the app behavior is fully local and does not depend on stored session state.
- When you are diagnosing a flake that should be fixed first in
playwright-debugging.
Authenticated State
Create the authenticated state once in a setup project, then load it in the tests that need it.
// tests/auth.setup.ts
import { test as setup, expect } from '@playwright/test';
setup('authenticate', async ({ page }) => {
await page.goto('/login');
await page.getByLabel('Email').fill('[email protected]');
await page.getByLabel('Password').fill('password123');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page.getByRole('button', { name: 'Sign out' })).toBeVisible();
await page.context().storageState({ path: 'playwright/.auth/user.json' });
});
Apply the saved state in configuration:
// playwright.config.ts
import { defineConfig } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'setup',
testMatch: /.*\.setup\.ts/,
},
{
name: 'chromium',
dependencies: ['setup'],
use: {
storageState: 'playwright/.auth/user.json',
},
},
],
});
If only some tests need the logged-in session, scope the state to a specific project rather than making it global. For multiple roles, keep one state file per role and give each project a clear name.
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 · 152 lines · 20 tokens per session scan A e71f8025df99
playwright-auth-state is a skill published in the GitHub repository hzijad/playwright-agent-skills (9 stars, last pushed 4mo ago), licensed MIT. It adds 20 tokens to every session and 1,165 once invoked, about $0.0001 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-auth-state compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playwright-auth-statehzijad/playwright-agent-skills | Skill | 9 | 4mo ago | MIT | A | 20 | Claude Code, Codex |
| vibe-e2eaakashdhar/vibe-skill | Skill | 8 | 1mo ago | none | A | 163 | Claude Code, Codex |
| playwrightZephyrex21/claude-skills-vetted | Skill | 3 | 3mo ago | none | A | 52 | Claude Code, Codex |
| smokezapgun-ai/clawback | Skill | 4 | 5mo ago | none | A | 54 | Claude Code, Codex |
| contract-and-proposal-writeralirezarezvani/claude-skills | Skill | 31k | today | MIT | A | 47 | Claude Code |
| procurement-optimizeralirezarezvani/claude-skills | Skill | 31k | today | MIT | A | 50 | Claude Code |
| vpe-advisoralirezarezvani/claude-skills | Skill | 31k | today | MIT | A | 60 | Claude Code |