test-migration

test-migration is a skill for Claude Code, Codex from petrkindlmann/qa-skills. It costs 178 tokens per session (5,463 once invoked), scanned A, original, MIT.

A guide for moving automated tests from one testing framework to another while keeping their coverage.

In plain words
What is it for?
Use it for Selenium, Cypress, or Protractor to Playwright migrations and Jest or Mocha to Vitest migrations, including translation, parallel continuous-integration runs, and coverage checks.
Why use it?
It reduces the risk of losing tests or changing what they verify during a framework switch.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Claude Code; built for aider.

Good fit Use it for Selenium, Cypress, or Protractor to Playwright migrations and Jest or Mocha to Vitest migrations, including translation, parallel continuous-integration runs, and coverage checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petrkindlmann/qa-skills/test-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add petrkindlmann/qa-skills --skill test-migration
Clone the repo
git clone --depth 1 https://github.com/petrkindlmann/qa-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/test-migration/github.svg)](https://agentmods.dev/skills/petrkindlmann/qa-skills/test-migration)
Your own site
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/test-migration"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/test-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/test-migration"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/test-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,463 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 23 Oct 2026
  • Snyk pass 23 Oct 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 105
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 107
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 255
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 267
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 268
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 267
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00178 $0.05463
Opus 5.5 $0.00071 $0.02185
Sonnet 5.5 $0.00036 $0.01093
Haiku 4.5 $0.00018 $0.00546

Measured yesterday against content hash 01a701d6bc35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/test-migration/SKILL.md · 305 lines

How it starts

The opening of the file, as written. The whole thing — 305 lines — stays where its author put it; the contents beside it link to each section on GitHub.


Quick Route

You're going from → to Jump to First-pass tooling
Selenium → Playwright Translation Patterns + references/framework-guides.md hand-write; no codemod worth trusting
Cypress → Playwright Translation Patterns + references/framework-guides.md cy2pw web converter / community CLI (see tooling table); hand-write from the golden reference when no new dependency or interactive tool is allowed, and for fewer than about twenty tests, where it is faster anyway
Protractor → Playwright references/framework-guides.md (urgent — EOL 2023) hand-write; map by.model/by.binding
Jest → Vitest references/framework-guides.md jest.→vi. sed pass, then verify
Mocha → Vitest references/framework-guides.md chai-matcher codemod, then verify
Any path, 100+ tests Migration Workflow + Parallel Running Strategy always parallel-run in CI

Discovery Questions

Check .agents/qa-project-context.md first. If it exists and is filled in, use it as context and skip questions already answered there; an unfilled template answers nothing, so treat it as absent.

Current state:

  • What framework are you migrating from and to? (drives the translation tables and which guide section applies)
  • How many tests exist, and what is the current flakiness/skip rate? (migrating a flaky test reproduces the flakiness; skipped tests may not be worth migrating)
  • Is there a coverage number today? (baseline for the parity track)

Test infrastructure:

  • What supporting infrastructure exists? (page objects, custom commands, fixtures, data factories — these migrate before tests)
  • How is auth/session handled? (login flows are the most common silent-breakage point — see Failure Modes)
  • What CI pipeline runs the tests, and can both frameworks run simultaneously? (parallel-run is non-negotiable)

Read the full file on GitHub · 305 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +6 lines 01a701d6bc35
  2. 1mo ago First seen · 299 lines · 178 tokens per session scan A 6848d86c1a87

Subscribe to this mod's changes

test-migration is a skill published in the GitHub repository petrkindlmann/qa-skills (207 stars, last pushed 2d ago), licensed MIT. It adds 178 tokens to every session and 5,463 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.