feat(.ai): add consumer migration skill#6145
feat(.ai): add consumer migration skill#6145marissahuysentruyt wants to merge 21 commits intomainfrom
Conversation
|
3be2546 to
3dd84b6
Compare
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
…skill - The a11y migration analysis doc is a full authoring playbook, not a linting rule. Moves it from .ai/rules/ to .ai/skills/ with a SKILL.md that mirrors the component-migration-analysis skill structure. - Also fixes a stale .cursor/ path reference in component-migration-analysis/SKILL.md.
- Delete .cursor/README.md and .cursor/config.json - Delete all skill files under .cursor/skills/
7bdadee to
117b2a4
Compare
3dd84b6 to
c648fbf
Compare
| | `outline` constraint | N/A | `outline` only applies to semantic variants; ignore or remove when used with color variants | | ||
| | New non-semantic color variants | 1st-gen did not have `pink`, `turquoise`, `brown`, `cinnamon`, `silver` | No action required unless you want to use these new variants | | ||
| | Internal CSS class names | `spectrum-Badge*` → `swc-Badge*` | Remove any selectors targeting `spectrum-Badge*` classes | | ||
| | `--mod-badge-*` custom properties | Same property names, same behavior | No action required if using supported `--mod-badge-*` properties | |
There was a problem hiding this comment.
this has to be updated to reference the css code styles (--mod basically got changed to exposed --swc variables).
for agent knowledge: mention that the css style guide recommendations weigh more than the literal recommendations in the rendering-and-styling analysis.
|
|
||
| Remove any CSS rules in your application that select these classes. If you need to style a badge, apply styles to the host element (`swc-badge`) using the supported `--mod-badge-*` custom properties. | ||
|
|
||
| ### CSS custom properties, tokens, and supported theming hooks |
There was a problem hiding this comment.
this whole section about --mods is incorrect. ☝️ I left a comment about needing to change it.
|
|
||
| --- | ||
|
|
||
| ## Migration checklist |
Description
Can be merged directly into feat-agnostic-ai-folder-stuff before or after the washing machine skills PR #6127 or #6139
Adds a consumer-facing migration guide for the Badge component, covering what changed between 1st-gen and 2nd-gen, how to update markup/attributes/slots, styling and customization changes, accessibility expectations, and rollout/testing guidance.
Also ships a reusable
.aiskill (consumer-migration-guide) so the same guide structure can be generated consistently for any other component going forward.Changes:
CONTRIBUTOR-DOCS/03_project-planning/03_components/badge/consumer-migration-guide.md: full consumer migration guide for Badge.ai/skills/consumer-migration-guide/SKILL.md: skill definition for generating per-component consumer migration guides.ai/skills/consumer-migration-guide/references/consumer-migration-guide-prompt.md: prompt.ai/README.md: updated to document the new skillCONTRIBUTOR-DOCS/03_project-planning/03_components/README.md: updated index2nd-gen/packages/swc/.storybook/preview.ts: minor updateMotivation and context
Application developers migrating from 1st-gen to 2nd-gen (for example,
sp-badgetoswc-badge) need practical, consumer-focused guidance that goes beyond internal implementation analysis. This doc covers the day-to-day upgrade path: what to search for, what to change, and how to validate the result. The skill ensures creating a migration guide for consumers is repeatable for every subsequent component migration.Related issue(s)
Screenshots (if appropriate)
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
CONTRIBUTOR-DOCS/03_project-planning/03_components/badge/consumer-migration-guide.mdsp-badgeusage as input (maybe just try to plop it on the badge storybook docs page as a new story?)swc-badgewith no regressionsconsumer-migration-guideskill for a second component (e.g. status light)rendering-and-styling-migration-analysis.mdandaccessibility-migration-analysis.mdarepresent where those docs exist
Device review
Accessibility testing checklist
Required: Complete each applicable item and document your testing steps (replace the placeholders with your component-specific instructions).
Keyboard
documentation only
Screen reader
documentation only