review

Analyze Playwright test files for anti-patterns, coverage gaps, and performance bottlenecks.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill review-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/cache/claude-code-skills/pw/2.1.2/skills/review
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill review-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the common issue of flaky, unmaintainable, or inefficient Playwright test suites by systematically identifying anti-patterns and providing actionable improvement paths.

Core Features & Use Cases

  • Automated Audit: Scans test files for 20 specific anti-patterns ranging from critical execution issues to stylistic best practices.
  • Scoring System: Provides a 1-10 quality score for each test file to help prioritize refactoring efforts.
  • Use Case: When a test suite becomes slow or unreliable, use this skill to identify hardcoded waits, missing assertions, or improper selector usage, and receive automated suggestions to fix them.

Quick Start

Use the review skill to audit all test files in the current directory and provide a quality report.

Frequently Asked Questions about review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find anti-patterns in my Playwright test suite?

To find anti-patterns in your Playwright test suite, scan your test files to detect hardcoded waits, missing assertions, and improper selector usage. The audit identifies 20 specific execution and stylistic issues, generating a quality report with actionable refactoring suggestions.

Why are my Playwright tests flaky and how can I fix them?

Playwright tests become flaky due to hardcoded waits and missing web-first assertions. Systematically analyzing test files identifies these anti-patterns and coverage gaps, providing a 1-10 quality score and automated suggestions to refactor inefficient test code.

Can I audit an entire Playwright test directory at once?

You can audit an entire Playwright test directory at once. The review skill operates across individual files or whole test suites, requiring access to your project's test directory and configuration files to generate comprehensive quality reports.

What is the best way to prioritize refactoring unreliable Playwright tests?

The best way to prioritize refactoring unreliable Playwright tests is to use an automated scoring system. The audit assigns a 1-10 quality score to each test file based on detected performance bottlenecks and anti-patterns, helping you target the most critical execution issues first.

Does Playwright code review require specific configuration files?

Playwright code review requires access to your project's test directory and configuration files. Analyzing these files allows the audit to enforce web-first assertion standards and best practices across your test suite.

What limitations exist when automating Playwright test audits?

A limitation of automating Playwright test audits is that the process focuses strictly on identifying anti-patterns, coverage gaps, and performance bottlenecks within test files. It requires existing test directory access and does not generate new tests.