migration-setup

Scaffold SWC directory structure and stub files for export wiring.

1.5k|257|Updated Nov 19, 2018
One-click install
npx skills add https://github.com/adobe/spectrum-web-components --skill migration-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-setup
Source: https://github.com/adobe/spectrum-web-components/tree/main/.ai/skills/migration-setup
Command: npx skills add https://github.com/adobe/spectrum-web-components --skill migration-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Phase 2 migration requires establishing the core directory structure, stubbing files, and wiring exports so components are importable before implementation begins.

Core Features & Use Cases

  • Scaffold core and SWC directory structure for a given component.
  • Wire up exports and stubbed files to enable a build pass in Phase 2.
  • Use Case: when migrating a 1st-gen component to 2nd-gen, this setup ensures a consistent foundation and a clean starting point for development.

Quick Start

Create the core skeleton for the target component, then run the recommended Phase 2 workflow to verify the build passes before proceeding with implementation.

Frequently Asked Questions about migration-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a directory structure for 2nd-gen web component migration?

To scaffold a 2nd-gen web component migration, this automation creates the core SWC directory structure and generates stub files for export wiring. This establishes a build-ready baseline before any implementation work begins.

What is the best way to wire up exports for a migrating web component?

Wiring up exports during migration is automated by generating stubbed files alongside the core directory structure. This ensures components are importable and enables a build pass during Phase 2 of the migration process.

When do I need to set up stub files for a build-ready migration baseline?

You need to set up stub files during Phase 2 of a 1st-gen to 2nd-gen migration. Establishing this build-ready baseline before implementation guarantees a consistent foundation and a clean starting point for development.

Can I verify my build passes before starting component implementation?

Yes, you can verify your build passes before implementation by creating the core skeleton for the target component and running the recommended Phase 2 workflow. This ensures the scaffolded structure is fully build-ready.

Does this scaffolding tool require existing export configurations?

No, this scaffolding tool does not require existing export configurations. It generates the necessary stubbed files and wires up exports automatically to ensure the component is importable from the start.

Why does Phase 2 migration require a specific directory structure?

Phase 2 migration requires a specific directory structure to ensure a consistent foundation across components. Scaffolding the core SWC directories and wiring exports establishes a standardized, build-ready environment for development.