pw-refactor-into-pom

Installation
SKILL.md

Refactor existing Playwright tests to use the project's Page Object Model. Tests stay structurally identical — only their bodies change to use pom.

Never skip AskUserQuestion steps in this skill, even if told to work autonomously.

Instructions

1. Ask which tests to refactor

Use the AskUserQuestion tool:

  • Question: "Which tests should I refactor?"
  • Header: "Refactor scope"
  • Option 1: label "All tests", description "Refactor every spec file under tests/"
  • Option 2: label "Specific test", description "I'll name the file or test title to refactor"

If the user picks "Specific test", ask for the file path or test() title to target. Confirm the resolved scope before proceeding.

2. Inventory the existing POM

Installs
30
GitHub Stars
1
First Seen
Jun 29, 2026
pw-refactor-into-pom — bondar-artem/playwright-scripting-skills