adobe/spectrum-web-components/migration-setup

Claude Code and agent skill by adobe/spectrum-web-components

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Phase 2 of 1st-gen to gen2 component migration. Use to create the gen2 file and folder structure, wire up exports, and confirm the build passes before implementation begins.

Install

npx vskill@latest install adobe/spectrum-web-components/migration-setup

SKILL.md

The same SKILL.md was published earlier as adobe/spectrum-web-components/migration-setup.

Migration setup (Phase 2)

Phase 2 of the 1st-gen → gen2 component migration. The goal is to create the core and SWC directory structure, stub out the required files, and confirm the component is importable before any implementation work begins.

Mindset

You are building a foundation, not a feature. Every file you create here is a contract: the right structure now prevents expensive restructuring later. Stub first, verify the build passes, then stop — implementation comes in later phases.

Read the migration plan at CONTRIBUTOR-DOCS/03_project-planning/03_components/[component]/migration-plan.md when available and use it as the baseline for all structural decisions: component naming, split-vs-single-component decisions, expected core/SWC file layout, and — critically — what properties, methods, and mixins belong on the base class vs. the concrete SWC class. If it is missing, stale, or intentionally incomplete, derive those decisions from the best available source material and call out the missing plan as a risk. See also `migration-plan-contract`.

Migration plan sections override washing-machine defaults. The washing machine workflow describes the _typical_ Phase 2 file structure; a component's migration plan describes the _specific_ architectural intent for that component. When the two conflict — for example, the plan restricts which properties may live on the base class for shared-reuse reasons — the migration plan takes precedence. Common plan sections that carry these overrides:

  • Architecture: core vs SWC split — defines exactly what each layer owns; follow this verbatim.
  • Shared semantics reuse (or equivalent) — may explicitly restrict what the base class owns so that other components can extend it without inheriting this component's visual surface. If this section exists, any properties identified as visual or component-specific belong on the concrete SWC class, not the base.
  • Global alignment contract — may constrain how the component stylesheet relates to global stylesheets; note this for Phase 5.

If the plan's API checklist and an architectural decision section contradict each other, the architectural decision section governs. Update the checklist to reflect the correct split and note the reason.

When to use this skill

  • Phase 1 (migration-prep) is complete and the migration plan is approved
  • The user asks to "set up" or "scaffold" a component for gen2 migration
  • The user asks to create the core/SWC file structure for a component
  • The user refers to "Phase 2" of the gen2 component migration workstream

When NOT to use

  • Phase 1 is not complete — write and get team review on the migration plan first
  • You are implementing data model, rendering, or styles — those are later phases

How to invoke

  • "Set up [component] for migration"
  • "Scaffold [component] for gen2"
  • "Phase 2 for [component] migration"
  • "Create the core and SWC structure for [component]"

Workflow

Before creating any files:

  1. Read the migration plan's architecture sections — specifically "Architecture: core vs SWC split", "Shared semantics reuse", and any other section that constrains what belongs on the base vs. the concrete class. Write down the decisions before touching files.
  2. Identify any contradiction between the plan's API checklist items and its architectural decisions. If a checklist item places properties on the base class that an architectural section says belong on the SWC class, the architectural section wins — update the checklist and note the reason before proceeding.

Then follow [Phase 2: Setup](../../../CONTRIBUTOR-DOCS/03_project-planning/02_workstreams/02_gen2-component-migration/02_step-by-step/01_washing-machine-workflow.md#phase-2-setup) in the washing machine workflow doc — it covers what to do, what to check, common problems, and the quality gate for this phase.

Key file split (SWC package):

  • index.ts — class re-export only (export * from './Component.js'). No defineElement, no HTMLElementTagNameMap augmentation.
  • swc-<tag>.ts — side-effect entry point. Contains defineElement('swc-<tag>', Component) and the HTMLElementTagNameMap augmentation. Use gen2/packages/swc/components/badge/swc-badge.ts as the reference.
  • package.json — must export ./components/<name>/swc-<tag>.js so consumers can import @adobe/spectrum-wc/components/<name>/swc-<tag>.js to register the element without pulling in a class re-export.

If the required file layout or naming in code would drift from the migration plan, follow `migration-plan-contract`.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/adobe/spectrum-web-components/migration-setup/badge)](https://verified-skill.com/skills/adobe/spectrum-web-components/migration-setup)

Something wrong with this skill or its page? Tell us.