Playwright Pro — Review
Review Playwright test quality and suggest improvements.
$skillfish add ~skills/playwright-pro-review Real Conversations
See how the Playwright Pro — Review skill responds to actual requests. These are representative examples of what your AI agent will produce.
Our new hire wrote their first Playwright tests. Can you review e2e/user-settings.spec.ts? I want to know if they've picked up our patterns before it hits main.
Reviewed e2e/user-settings.spec.ts against all 20 anti-patterns.
user-settings.spec.ts — Score: 5/10
Critical (must fix before merge)
- Line 18:
await page.waitForTimeout(2000)after clicking Save → Replace:await expect(page.getByRole('alert')).toHaveText('Settings saved') - Line 34:
expect(await page.textContent('.success-msg')).toBe('Done')→ Non-web-first — won't auto-retry. Replace:await expect(page.getByText('Done')).toBeVisible() - Line 41:
page.goto('http://localhost:3000/settings')— hardcoded URL → Usepage.goto('/settings')withbaseURLin config
Warning (should fix)
- Line 7: Test name
'test 1'→ rename to'should persist notification preferences after save' - Lines 22–72: Test is 51 lines — split into 3 focused tests
Suggestions
- No error case: what happens when the API returns 500 during save?
- Page object recommended — 7 unique locators exceeds the 5-locator threshold
Summary
3 critical | 2 warnings | 2 suggestions
Blocking: Yes — 2 anti-patterns will cause flaky CI failures
Shall I apply the critical fixes and add an API error test?
Get Started
How to install and use this skill in your preferred environment.
Skills are designed for AI coding agents (Claude Code, Cursor, Windsurf) and IDE-based workflows where the agent can read files, run scripts, and act on your codebase. Web-based AI can use the knowledge and frameworks, but won't have tool access.
Models & Context
Which AI models and context windows work best with this skill.
Recommended Models
Larger models produce more detailed, production-ready outputs.
Context Window
This skill's SKILL.md is typically 3–10 KB — fits in any modern context window.
All current frontier models (Claude, GPT, Gemini) support 100K+ context. Use the full window for complex multi-service work.
Pro tips for best results
Be specific
Include numbers — users, budget, RPS — so the skill can size the architecture.
Share constraints
Compliance needs, team size, and existing stack all improve the output.
Iterate
Start with a high-level design, then ask follow-ups for IaC, cost analysis, or security review.
Combine skills
Pair with companion skills below for end-to-end coverage.
Ready to try Playwright Pro — Review?
Install the skill and start getting expert-level guidance in your workflow — any agent, any IDE.
$skillfish add ~skills/playwright-pro-review