Create rendering-and-styling migration analysis docs for 2nd-gen component migration. Use when on the "analyze rendering and styling" step for one or more components.
Create comprehensive migration documentation for the analyze rendering and styling step of 2nd-gen component migration. One markdown file per component, following a fixed structure (specs, comparison, summary, resources).
CONTRIBUTOR-DOCS/03_project-planning/03_components/[component-name]/rendering-and-styling-migration-analysis.mdspectrum-two metadata.json; SWC from spectrum-web-components main render/slots) → Comparison (DOM structure changes: SWC + CSS main + CSS spectrum-two; CSS⇒SWC mapping table) → Summary of changes → Resourcesspectrum-two branch → components/[component-name]/metadata.json (selectors, passthroughs, modifiers)main branch → packages/[component-name]/src/[component-name].ts (render(), @property, slots)main and spectrum-two → components/[component-name]/stories/template.js (line-by-line; verify branch after each checkout)For the exact document structure, heading levels, collapsible sections, CSS⇒SWC mapping table format (columns, status values, ordering), DOM comparison format, and output format notes, read:
.ai/skills/component-migration-analysis/references/migration-analysis-prompt.md
That document is the single source of truth for file organization, component documentation structure, comparison format, summary sections, and resources placeholder.