migration-testing
Skill by adobe
Writes unit, accessibility and Storybook play function tests for a component migrated in Phase 6 of the 1st-gen to gen2 component migration. Aimed at developers on Adobe's migration workstream.
Install migration-testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/adobe/spectrum-web-components /tmp/spectrum-web-components && mkdir -p ~/.claude/skills && cp -r /tmp/spectrum-web-components/.ai/skills/migration-testing ~/.claude/skills/migration-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/adobe/spectrum-web-components /tmp/spectrum-web-components && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/spectrum-web-components/.ai/skills/migration-testing ~/.gemini/antigravity-cli/skills/migration-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The migration-testing skill covers Phase 6 of the 1st-gen to gen2 component migration. It guides the assistant to write unit tests with Vitest, accessibility tests with Playwright, and Storybook play functions for a migrated component. It reads the migration plan when available and calls out a missing or stale plan as a risk.
The skill asks for a failing case before each assertion, so tests can catch real regressions. Form-associated components must be tested inside a native form across submit value, validation, reset and value reading. It is for developers working on the gen2 component migration, and it expects Phases 4 and 5 to be complete first.
Written from the project's SKILL.md and checked against it.
What it can do
- Unit testsWrites Vitest unit tests for a migrated component.
- Accessibility testsWrites Playwright accessibility specs that drive real, trusted input.
- Storybook play functionsAdds play functions to test files for a migrated component.
- Form lifecycle testsCovers submit value, validation, reset and value reading for form controls.
- Failure-first testingAsks for the failure case to be written before each assertion.
- Migration plan checkDerives the test matrix from the migration plan when one is present.
- Visual regression storiesPoints to the vrt-authoring skill for dedicated VRT stories.
What you need
- Vitest
- Playwright
- Storybook
Try asking
- Add tests for the migrated text field component
- Write a Playwright accessibility spec for the migrated dialog
- Add form lifecycle tests for the migrated radio group
Good to know
- Use only after Phases 4 and 5 of the migration are complete.
- Not for fixing existing test failures unrelated to migration.
- Synthetic Storybook userEvent does not trigger native popover light-dismiss, so that path is tested in Playwright.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/skills/migration-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to migration-testing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migration-testing: common questions
When should I use the migration testing skill?
Use it for Phase 6 of the gen2 component migration, after accessibility and styling work in Phases 4 and 5 is done. The source says tests cannot be written for behavior that is not yet implemented.
Where are native popover dismissal tests written?
The source says Escape and outside-click dismissal of native overlays is tested in the Playwright accessibility spec, not in a play function. Play function files cannot import vitest/browser without breaking the dev server.
What if the migration plan is missing?
The skill derives the needed context from the implemented behavior and source material. It also tells the user that the missing plan is a risk.
How do I install migration-testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migration-testing free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is migration-testing safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migration-testing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
