Guided, file-by-file migration of Cypress or Selenium test suites to Playwright, with per-batch verification.

CCM score
72 of 100
skills.sh installs
1.6K
GitHub stars
30.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers source detection, migration scope sizing, file conversion, locator upgrades, and cleanup of old dependencies and configs
  • Includes Cypress and Selenium translation references (cypress-mapping.md, selenium-mapping.md) mapping commands like cy.intercept() to page.route() and driver.findElement() to page.locator()
  • Upgrades brittle selectors to getByTestId() and getByRole() and requires npx playwright test to pass after each converted file
  • Designed for teams with Cypress or Selenium suites of any size, with /batch parallelism for suites over 30 files

Install

$ npx -y skills add alirezarezvani/claude-skills --skill migrate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Migrate to Playwright

Interactive migration from Cypress or Selenium to Playwright with file-by-file conversion.

Input

$ARGUMENTS can be:

  • "from cypress" — migrate Cypress test suite
  • "from selenium" — migrate Selenium/WebDriver tests
  • A file path: convert a specific test file
  • Empty: auto-detect source framework

Steps

1. Detect Source Framework

Use Explore subagent to scan:

  • cypress/ directory or cypress.config.ts → Cypress
  • selenium, webdriver in package.json deps → Selenium
  • .py test files with selenium imports → Selenium (Python)

2. Assess Migration Scope

Count files and categorize:

Migration Assessment:
- Total test files: X
- Cypress custom commands: Y
- Cypress fixtures: Z
- Estimated effort: [small|medium|large]
SizeFilesApproach
Small (1-10)Convert sequentiallyDirect conversion
Medium (11-30)Batch in groups of 5Use sub-agents
Large (31+)Use /batchParallel conversion with /batch

3. Set Up Playwright (If Not Present)

Run /pw:pw-init first if Playwright isn't configured.

4. Convert Files

For each file, apply the appropriate mapping:

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Testing & QA, Browser Automation & Scraping
First seen
Apr 16, 2026

More from alirezarezvani/claude-skills

All 259

Similar to Migrate

More Testing & QA