Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Review Playwright tests for quality. Use when user says "review tests", "check test quality", "audit tests", "improve tests", "test code review", or "playwright best practices check".
.claude/skills/bilal140202-review/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 27% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -28% | 0% |
Systematically review Playwright test files for anti-patterns, missed best practices, and coverage gaps.
$ARGUMENTS can be:
testDirplaywright.config.ts for project settings*.spec.ts / *.spec.js files in scopeLoad anti-patterns.md from this skill directory. Check for all 20 anti-patterns.
Critical (must fix):
waitForTimeout() usageexpect(await ...))baseURLawait on Playwright callsWarning (should fix):
page.evaluate() for things locators can dotest.describe() more than 2 levels deepInfo (consider):
test.describe() groupingRate 1-10 based on:
For each file:
## <filename> — Score: X/10
### Critical
- Line 15: `waitForTimeout(2000)` → use `expect(locator).toBeVisible()`
- Line 28: CSS selector `.btn-submit` → `getByRole('button', { name: "submit" })`
### Warning
- Line 42: Test name "test login" → "should redirect to dashboard after login"
### Suggestions
- Consider adding error case: what happens with invalid credentials?If reviewing an entire test suite:
/batch for very large suitesFor each critical issue, provide the corrected code. Ask user: "Apply these fixes? Yes/No]"
If yes, apply all fixes using Edit tool.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 8,828 | 4,838 | -45% | 1 | 1 | 0% | 1,236 | 984 | -20% | 0 | 0 | — |
case-02 | fail→fail | 23,747 | 6,976 | -71% | 1 | 1 | 0% | 3,797 | 1,245 | -67% | 0 | 0 | — |
case-03 | fail→fail | 34,700 | 6,017 | -83% | 1 | 1 | 0% | 6,135 | 1,124 | -82% | 0 | 0 | — |
case-04 | fail→pass | 7,982 | 6,149 | -23% | 1 | 1 | 0% | 1,260 | 1,783 | +42% | 0 | 0 | — |
case-05 | pass→pass | 12,532 | 6,004 | -52% | 1 | 1 | 0% | 1,915 | 1,656 | -14% | 0 | 0 | — |
case-06 | fail→pass | 8,461 | 4,574 | -46% | 1 | 1 | 0% | 1,381 | 1,545 | +12% | 0 | 0 | — |
case-07 | fail→pass | 6,833 | 3,841 | -44% | 1 | 1 | 0% | 1,149 | 1,461 | +27% | 0 | 0 | — |
case-08 | fail→pass | 12,216 | 8,476 | -31% | 1 | 1 | 0% | 1,846 | 2,159 | +17% | 0 | 0 | — |
case-09 | fail→pass | 14,297 | 5,445 | -62% | 1 | 1 | 0% | 2,257 | 1,634 | -28% | 0 | 0 | — |
case-10 | pass→pass | 7,275 | 4,182 | -43% | 1 | 1 | 0% | 1,171 | 1,438 | +23% | 0 | 0 | — |
case-11 | fail→pass | 8,882 | 2,274 | -74% | 1 | 1 | 0% | 1,422 | 1,090 | -23% | 0 | 0 | — |
case-12 | pass→pass | 9,973 | 6,534 | -34% | 1 | 1 | 0% | 1,476 | 1,972 | +34% | 0 | 0 | — |
case-13 | fail→pass | 11,660 | 6,170 | -47% | 1 | 1 | 0% | 1,712 | 1,783 | +4% | 0 | 0 | — |
case-14 | pass→pass | 10,217 | 5,532 | -46% | 1 | 1 | 0% | 1,663 | 1,636 | -2% | 0 | 0 | — |
case-15 | pass→pass | 9,319 | 4,996 | -46% | 1 | 1 | 0% | 1,620 | 1,649 | +2% | 0 | 0 | — |
case-16 | fail→pass | 10,079 | 4,453 | -56% | 1 | 1 | 0% | 1,642 | 1,446 | -12% | 0 | 0 | — |
case-17 | fail→pass | 8,922 | 3,318 | -63% | 1 | 1 | 0% | 1,495 | 1,294 | -13% | 0 | 0 | — |
case-18 | fail→pass | 6,960 | 2,481 | -64% | 1 | 1 | 0% | 937 | 1,268 | +35% | 0 | 0 | — |
case-19 | fail→pass | 8,677 | 3,932 | -55% | 1 | 1 | 0% | 1,566 | 1,515 | -3% | 0 | 0 | — |
case-20 | fail→pass | 6,286 | 3,881 | -38% | 1 | 1 | 0% | 949 | 1,372 | +45% | 0 | 0 | — |
case-21 | fail→pass | 14,941 | 7,804 | -48% | 1 | 1 | 0% | 2,824 | 2,036 | -28% | 0 | 0 | — |
case-22 | pass→pass | 15,659 | 9,922 | -37% | 1 | 1 | 0% | 3,120 | 2,799 | -10% | 0 | 0 | — |
case-23 | pass→fail | 6,705 | 3,577 | -47% | 1 | 1 | 0% | 1,481 | 985 | -33% | 0 | 0 | — |
case-24 | pass→pass | 7,413 | 7,852 | +6% | 1 | 1 | 0% | 1,341 | 2,353 | +75% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted, and 21 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 21 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.