/playwright-plugin:test-suite-builderfrom playwright-plugin
Use this skill whenever the user asks for comprehensive frontend test authoring that combines web UI, API, accessibility, and visual coverage in one coherent Playwright strategy. This skill plans, writes, and heals layered tests using proven Playwright practices for locators, assertions, mocking, POM, CI config, tagging, and test isolation. Trigger it for end-to-end test architecture decisions, layered suite design, and recovery of flaky suites.
Ships in playwright-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Purpose: produce scalable, maintainable frontend test suites that cover UI, API, accessibility, and visual behavior together.
Evidence basis:
playwright-cli open <url> --browser=chrome).--browser=chromium).tests/data/*.json or typed fixture modules).tests/types/*.ts) and import them from fixtures/specs.Recommended layout:
tests/
pages/
components/
fixtures/
specs/
Reference: references/page-object-model.md
Locator preference order:
Assertion rules:
await page.goto('/transfers');
await page.getByRole('button', { name: 'New Transfer' }).click();
await expect(page.getByRole('heading', { name: 'Create Transfer' })).toBeVisible();
await page.route('**/api/transfers*', async route => {
await route.fulfill({
status: 200,
contentType: 'application/json',
body: JSON.stringify({ items: [], total: 0 }),
});
});
const axe = await new AxeBuilder({ page }).analyze();
expect(axe.violations.filter(v => v.impact === 'serious' || v.impact === 'critical')).toEqual([]);
await expect(page).toHaveScreenshot('transfers-dashboard.png', { fullPage: true });
const timing = await page.evaluate(() => {
const nav = performance.getEntriesByType('navigation')[0] as PerformanceNavigationTiming;
return {
ttfb: nav.responseStart - nav.requestStart,
domContentLoaded: nav.domContentLoadedEventEnd - nav.startTime,
loadComplete: nav.loadEventEnd - nav.startTime,
};
});
expect(timing.ttfb).toBeLessThan(600);
const payload = '<script>alert("xss")</script>';
await page.goto(`/search?q=${encodeURIComponent(payload)}`);
const content = await page.content();
expect(content).not.toContain('<script>alert');
Use config guidance aligned with bundled evidence references:
Reference: references/test-suite-structure.md
Add meaningful tags such as:
Run by tag:
npx playwright test --grep @smoke
npx playwright test --grep @a11y
npx playwright test --grep @visual
When a test fails:
Provide:
| Task | Reference |
|---|---|
| Page Object Model and fixtures | references/page-object-model.md |
| Locator strategy and anti-patterns | references/locators.md |
| Web-first assertions and waits | references/assertions-waiting.md |
| Deterministic route mocking patterns | references/request-mocking.md |
| Plan -> generate -> heal workflow for robust tests | references/test-generation.md |
| Suite config, tags, and directory structure | references/test-suite-structure.md |
| Performance baseline checks | references/performance-testing.md |
| Security boundary checks | references/security-testing.md |
| Trace captures for failure debugging | references/tracing.md |
| Video recording for demos and documentation | references/video-recording.md |
| Reusable test data and shared type organization | references/test-data-and-types.md |
references/assertions-waiting.md (opens in a new tab)references/locators.md (opens in a new tab)references/orchestration-evidence.md (opens in a new tab)references/page-object-model.md (opens in a new tab)references/performance-testing.md (opens in a new tab)references/request-mocking.md (opens in a new tab)references/security-testing.md (opens in a new tab)references/test-data-and-types.md (opens in a new tab)references/test-generation.md (opens in a new tab)references/test-suite-structure.md (opens in a new tab)references/tracing.md (opens in a new tab)references/video-recording.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (charlyautomatiza/playwright-plugin) — no native marketplace selected
npx claudepluginhub p/charlyautomatiza-playwright-plugin5 skills in this plugin
/a11y-sentinelUse this skill whenever the user asks for accessibility testing, a11y audits in pull requests, semantic locator hardening, or prevention of usability regressions in frontend flows. This skill implements Playwright-based accessibility checks and integrates automated axe-core audits into repeatable tests. Trigger it for any request mentioning WCAG concerns, keyboard navigation, aria issues, or CI accessibility gates./dynamic-mockerUse this skill whenever the user needs frontend testing without a ready backend, intent-based API stubbing, dynamic test data generation, request interception, or reproducible network scenarios with Playwright. This skill designs and implements route-level mocking using page.route and route.fulfill patterns and validates mocked behavior with Playwright tests. Trigger this skill for any request to intercept APIs, fake responses, force error states, or make flaky network behavior deterministic./exploratory-testgenUse this skill whenever the user asks for exploratory functional testing, browser-based discovery, UI flow validation, fast health checks before automation, or a test plan proposal for a frontend. This skill performs non-invasive discovery, proposes a plan for approval, executes approved exploratory flows with Playwright (Chrome preferred, Chromium fallback), captures flow evidence screenshots, and writes a final report in docs/testing. Trigger it for rapid product health checks before formal automation./visual-guardUse this skill whenever the user asks for visual regression, screenshot-based UI protection, layout drift detection, or PR-level visual quality checks with Playwright. This skill creates and maintains robust toHaveScreenshot-based tests with deterministic setup and review-friendly outputs. Trigger it for screenshot diff triage, baseline strategy, and deterministic visual test setup.