Playwright Pro — Migrate
Migrate tests from Cypress or Selenium to Playwright.
$skillfish add ~skills/playwright-pro-migrate Real Conversations
See how the Playwright Pro — Migrate skill responds to actual requests. These are representative examples of what your AI agent will produce.
We have 40 Cypress spec files, about 180 tests total. Mix of login, dashboard, and CRUD flows. Cypress is getting slow and we want cross-browser coverage. How long will migration take and what's the plan?
Scoping the migration first. This skill includes executable scripts — I'll need your permission before running them.
Migration Assessment (scanned cypress/ directory):
Total spec files: 40
Total tests: 183
Custom commands: 12 (cypress/support/commands.js)
Fixtures: 8 (JSON files)
Plugins: 2 (cypress-axe, cypress-file-upload)
Estimated effort: Medium-Large (2–3 sessions)
Migration plan:
- Run
/pw:initto configure Playwright - Convert files in batches of 8 using parallel sub-agents
- Custom commands → Playwright
test.extend()fixtures cypress-axe→ Playwright built-in accessibility snapshotscypress-file-upload→ nativepage.setInputFiles()
Sample conversion:
// BEFORE (Cypress)
cy.visit('/login');
cy.get('[data-cy=email]').type('user@test.com');
cy.get('[data-cy=submit]').click();
cy.url().should('include', '/dashboard');
// AFTER (Playwright — locators upgraded)
await page.goto('/login');
await page.getByTestId('email').fill('user@test.com');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page).toHaveURL(/dashboard/);
Locators are upgraded to getByTestId and getByRole during conversion — not a literal cy.get swap.
Estimated: 2–3 sessions for full conversion + verification. Start with Batch 1 (auth files)?
Get Started
How to install and use this skill in your preferred environment.
Skills are designed for AI coding agents (Claude Code, Cursor, Windsurf) and IDE-based workflows where the agent can read files, run scripts, and act on your codebase. Web-based AI can use the knowledge and frameworks, but won't have tool access.
Models & Context
Which AI models and context windows work best with this skill.
Recommended Models
Larger models produce more detailed, production-ready outputs.
Context Window
This skill's SKILL.md is typically 3–10 KB — fits in any modern context window.
All current frontier models (Claude, GPT, Gemini) support 100K+ context. Use the full window for complex multi-service work.
Pro tips for best results
Be specific
Include numbers — users, budget, RPS — so the skill can size the architecture.
Share constraints
Compliance needs, team size, and existing stack all improve the output.
Iterate
Start with a high-level design, then ask follow-ups for IaC, cost analysis, or security review.
Combine skills
Pair with companion skills below for end-to-end coverage.
Ready to try Playwright Pro — Migrate?
Install the skill and start getting expert-level guidance in your workflow — any agent, any IDE.
$skillfish add ~skills/playwright-pro-migrate