Review Playwright Tests

Review Playwright test files for quality, anti-patterns, and coverage gaps. It scores each file and generates a detailed report with actionable fixes.

✨ What it does

  • Checks against 20 anti-patterns categorized as critical, warning, or info.
  • Scores each test file from 1 to 10 based on quality.
  • Generates a file-by-file review report with line-specific suggestions.
  • Offers to apply fixes for critical issues automatically.
  • Supports project-wide reviews with parallel sub-agent processing.
  • Identifies coverage gaps for pages/features without tests.

🎯 When to use it

  • When you want to audit the quality of your Playwright tests.
  • When you need to identify anti-patterns and flaky test risks.
  • When you want to improve test maintainability and best practices.
  • When you need a coverage gap analysis for your test suite.

🚀 How to use

Trigger: /batch

Trigger by saying 'review tests', 'check test quality', 'audit tests', 'improve tests', or 'playwright best practices check'. Provide an optional file path or directory as input; if empty, it reviews all tests in the project's testDir. Example prompts:

review tests
review tests in src/tests/login.spec.ts

📄 Output: A detailed review report with scores, anti-pattern findings, and fix suggestions.

📦 Add this skill to Claude Code

# 1. Get the skills repo
git clone --depth 1 https://github.com/alirezarezvani/claude-skills /tmp/claude-skills

# 2. Copy this skill into your project (or ~/.claude/skills for all projects)
mkdir -p .claude/skills
cp -r /tmp/claude-skills/engineering-team/playwright-pro/skills/pw-review .claude/skills/pw-review

Skill source: engineering-team/playwright-pro/skills/pw-review/SKILL.md

⚠️ Good to know

Requires a Playwright project with a playwright.config.ts and test files; assumes the skill directory contains anti-patterns.md.

❓ FAQ

What does the skill do with the review results?

It generates a file-by-file report with scores and suggestions, and offers to apply fixes for critical issues.

Can I review a single test file?

Yes, you can provide a file path as input to review that specific file.

How are tests scored?

Each file is rated 1-10 based on adherence to best practices, with 9-10 being production-ready and 1-2 needing rewrite.

🤖 Overview, features, install steps and FAQ were generated from the project's SKILL.md on Sep 4, 2026. Always check the original source before running commands.