adobe/spectrum-web-components/migration-prep
Claude Code and agent skill by adobe/spectrum-web-components
- community
Checking that the SKILL.md file is still in the repository.
Phase 1 of 1st-gen to gen2 component migration. Use to understand the component, plan breaking changes, and define scope before any refactoring begins.
Install
npx vskill@latest install adobe/spectrum-web-components/migration-prepSKILL.md
The same SKILL.md was published earlier as adobe/spectrum-web-components/migration-prep.
Migration prep (Phase 1)
Phase 1 of the 1st-gen → gen2 component migration. The goal is to thoroughly understand the component and produce a written migration plan—covering API surface, breaking changes, file layout, and naming decisions—before any code is moved or refactored.
Mindset
You are a planner, not an implementer. Your job is to produce a written plan the team can review and challenge before a single line of code moves. Resist the urge to start implementing. Remember that a wrong plan caught in review is cheaper than a wrong implementation caught in testing.
Act as a staff-level migration partner, not a transcription tool. Critically assess the information going into the plan, identify inconsistencies early, and help the user improve the API, naming, behavior, and migration path where the current state appears weak or ambiguous.
Do not simply record inputs at face value. Explain why something looks inconsistent, what tradeoff it creates, and which resolution path you recommend. Pause and ask the user for input when needed, especially at the critical-input and must-confirm checkpoints below. It is more difficult for the user to review a large document for change suggestions when instead they could have provided clarifying input sooner in the process.
Before deciding scope, identify the component's feature and functionality surface as completely as the available evidence allows. Then use that inventory to decide what belongs in Must ship, Additive, and open-question buckets in the plan.
Actively watch for drift as you draft. Decisions recorded early can conflict with conclusions reached later — check for consistency across sections before finalizing.
When to use this skill
- You are starting a 1st-gen → gen2 component migration
- The user asks to "prep" or "prepare" a component for migration
- The user asks to plan or scope a component migration before implementation
When NOT to use
- You are already past Phase 1 (refactoring, creating files, implementing)
Partnering expectations
- Treat the user as a design and engineering partner, not just a requester filling in a template
- Challenge weak or inconsistent inputs respectfully and with concrete reasoning
- When an API or naming choice seems likely to confuse consumers, propose a better alternative and explain why
- When sources disagree, do not silently choose one; surface the disagreement, recommend a resolution path, and record it clearly in the plan
- Prefer reducing long-term API complexity over preserving accidental 1st-gen quirks unless compatibility clearly demands otherwise
- Proactively identify opportunities to improve clarity, consistency, accessibility, and migration ergonomics
How to invoke
- "Prepare [component] migration"
- "Prep [component] for migration"
- "Run migration prep for [component]"
- "Phase 1 for [component] migration"
- "Create a migration plan for [component]"
- "Draft the Phase 1 plan for [component]"
Required inputs before drafting
Prompt the user to ensure they have checked out spectrum-css at spectrum-two branch as sibling directory.
Review these sources before filling out the plan:
- The Phase 1 workflow guidance in [Phase 1: Preparation](../../../CONTRIBUTOR-DOCS/03_project-planning/02_workstreams/02_gen2-component-migration/02_step-by-step/01_washing-machine-workflow.md#phase-1-preparation)
- The gen2 migration status table in
CONTRIBUTOR-DOCS/03_project-planning/02_workstreams/02_gen2-component-migration/01_status.md - The component's rendering and styling analysis doc in
CONTRIBUTOR-DOCS/03_project-planning/03_components/[component]/ - The component accessibility specification in
CONTRIBUTOR-DOCS/03_project-planning/03_components/[component]/, if available - The 1st-gen source, tests, README, and any shared mixins or helpers it depends on
- Relevant gen1 bug tickets and prior migration decisions
- Relevant Figma and React Spectrum references for naming, variants, and expected behavior
For the Figma reference specifically, ask for images from the internal Figma file `S2 / Web`. The preferred artifact is a PNG copied from the _Component_ frame that includes the component's variants. Ask the user to use Figma's Copy as PNG on that frame.
When evaluating rendering-and-styling-migration-analysis.md, do not use the CSS => SWC mapping table. Use only these sections:
SWCDOM Structure changes— detail and summary content onlySummary of changesResources
Use these sources to build a full-enough feature/functionality inventory first, then classify items through:
Must shipfor in-scope work required in this migrationAdditivefor deferred or out-of-scope work that is not required for the baseline migration- open questions / blockers where scope still needs a decision
During discovery, explicitly check whether the component should:
- extend from another gen2 component or shared base that is already planned or in progress
- be migrated before another component that depends on it
- wait on a prerequisite component or shared base to avoid duplicated work or conflicting APIs
- share structural CSS patterns with existing or in-flight components — check
gen2/packages/swc/stylesheets/_lit-styles/for existing shared fragments and note any that this component should consume; if no fragment exists yet but the pattern is real, flag whether it should be extracted as part of this migration or a coordinated one. See Non-component stylesheets for what qualifies - share structural render anatomy (wrapper elements, slot layout, conditional regions) with existing or in-flight components — check for an existing shared render template (e.g.
card/card-template.ts) and note any that this component should consume; if none exists yet but the pattern is real, flag whether it should be extracted as part of this migration, and where the file should live if no single component owns the shared structure. See Shared render templates for what qualifies - need a global element stylesheet counterpart — check whether
stylesheets/global/global-[component].cssshould be created as part of this migration. If yes, note whether the component CSS will need@global-excludefences and whether the global stylesheet is in scope for this migration cycle. See Non-component stylesheets for the authoring options
Use the status table, existing component analyses, and source relationships to make these dependency and ordering calls explicit in the plan.
Do not jump straight to in-scope work without first inventorying what exists today or is expected in gen2.
Treat the component accessibility specification as a separate-workstream input. If it is missing, do not create it as part of migration-prep. Instead, ask the user to provide the existing analysis, or proceed only with clearly provisional accessibility-dependent notes if the user explicitly wants that.
Generating a table of open gen1 issues
In the section titled "Open gen1 issues" in the assets/migration-prep-template.md, fill out the markdown table immediately under the heading. Do not add an intro paragraph before the markdown table.
- When generating the table, note that Adobe Jira is authoritative for open vs closed status and for resolution—refresh table cells when you triage. Use link targets such as
https://jira.corp.adobe.com/browse/SWC-####. - After the table, do not add follow-up paragraphs that list excluded issues or explain cross-component scope (for example paragraphs starting with Omitted from this table (by doc rules) or Scope note). Apply Exclude by omitting rows; put any needed nuance in an optional Notes column or in the Summary cell.
- Columns (recommended): Jira | Type (Story, Bug, Epic, …) | Status (snapshot) | Summary. Optional Notes when helpful (PR references, file paths,
@todolocations, “applies to relatedsp-*…”). - Scope: Include rows your team tracks for this component’s gen1 (
sp-*) bugs and stories, including those with the labelgen2-tbd; add rows when you file or discover issues, and trim or update when Jira state or scope changes. Do not maintain a separate contributor-doc index file for the same list. - Components: In the query for the list of Jira issues, use the
Componentfield, where the value of theComponentmatches the name of the component currently being migrated. For example, if the component being migrated is Avatar, includecomponent = "Avatar"in the JQL query.
- Exclude (always apply when curating the table):
- Labels: Do not list issues that carry Jira labels `a11y` or `gen2`. This section tracks gen1 (
sp-*) issues only, not gen2 tickets or a11y issues for the gen1 component. - Resolution: Do not list issues that have been resolved, ie with a Jira Workflow Status of "Done".
- Issue types: Do not list issues of the type Epic or Initiative. Track those in Jira or program views, not in per-component tables.
- Reference: See the section "## Related 1st-gen accessibility (Jira)" in `avatar/component-accessibility-specification.md` (and sibling component docs) for a full example table. This example only includes accessibility issues. It should follow the same format, but document non-accessibility gen1 issues.
Readiness threshold
Do not present the plan as review-ready until all of the following are available:
- 1st-gen source
- Rendering and styling migration analysis
- Figma reference image(s) from `S2 / Web`, copied as PNG from the _Component_ frame that includes the variants
- A table of existing gen1 issues for the component, which are pulled from Jira
- Epic or ticket context if renames, deprecations, or breaking changes are proposed
If any are missing, follow Critical missing-input handling.
Must-ask before drafting materially
Before drafting more than scaffold-level content, explicitly ask the user for any missing critical inputs below.
Critical inputs:
- Figma PNG reference from `S2 / Web`, copied from the _Component_ frame that includes the variants
- Epic number
- Ticket numbers and summaries for any known breaking changes, or copied ticket descriptions the agent can evaluate
- Component accessibility specification, if not already available
- Confirmation or decision input when a dependency, extension, or shared-base relationship could materially change migration order, API shape, or shared-base strategy
Do not wait until the end of the plan to summarize these gaps. Ask for them early and directly.
If a critical input is missing:
- Pause and ask for it, or
- Offer a concrete fallback the user can provide immediately
- Continue only with clearly labeled provisional scaffolding, not with a review-ready recommendation
Do not resolve a missing component accessibility specification by running the component-accessibility-specification skill from within this skill. That analysis belongs to a separate workstream and review path.
Critical missing-input handling
This section specifies how to respond to the gaps identified in Must-ask before drafting materially.
When a critical input is missing, decide first whether it is materially blocking or only required before finalizing.
Materially blocking inputs:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/migration-prep/SKILL.md
Popularity
- Repository stars
- 1,541
- Repository forks
- 264
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adobe/spectrum-web-components/migration-prep)