Skip to content

Commit 9ba4011

Browse files
feat(.ai): migration skills added to readme
1 parent 92964b6 commit 9ba4011

File tree

1 file changed

+54
-4
lines changed

1 file changed

+54
-4
lines changed

.ai/README.md

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,61 @@ Skills are used on-demand. When a task matches a skill’s purpose, the agent re
219219
- Use when: On the analyze-rendering-and-styling step for one or more components; creating one markdown file per component at `CONTRIBUTOR-DOCS/03_project-planning/03_components/[component-name]/rendering-and-styling-migration-analysis.md`
220220
- Provides: Workflow summary (specs from CSS + SWC, three-way DOM comparison, CSS⇒SWC mapping table, summary). Full instructions in `CONTRIBUTOR-DOCS/03_project-planning/02_workstreams/02_2nd-gen-component-migration/02_step-by-step/01_analyze-rendering-and-styling/cursor_prompt.md`
221221

222-
#### Washing machine migration workflow
222+
#### Migration — phase 1: prep (`migration-prep`)
223223

224-
- **purpose**: End-to-end 1st-gen → 2nd-gen migration sequence (phases, checklists, links to step docs and style guides)
225-
- **Doc**: `CONTRIBUTOR-DOCS/03_project-planning/02_workstreams/02_2nd-gen-component-migration/02_step-by-step/01_washing-machine-workflow.md`
226-
- Use when: Planning or executing a component migration in the 2nd-gen component migration workstream
224+
- **purpose**: Understand the component, plan breaking changes, and define scope before any refactoring begins
225+
- **How to invoke**: Say "start migration prep for [component]", "plan the migration for [component]", or "phase 1 migration for [component]"
226+
- Use when: Beginning a 1st-gen → 2nd-gen component migration; before any files are created or code is moved
227+
- Provides: Research checklist (1st-gen API, usage, tests), breaking-change analysis, scope definition, written plan for review
228+
229+
#### Migration — phase 2: setup (`migration-setup`)
230+
231+
- **purpose**: Create the 2nd-gen file and folder structure, wire up exports, and confirm the build passes before implementation begins
232+
- **How to invoke**: Say "set up 2nd-gen structure for [component]", "create the file structure for [component]", or "phase 2 migration for [component]"
233+
- Use when: After prep is complete; creating the scaffolding a component needs before any logic is ported
234+
- Provides: File/folder creation checklist, export wiring steps, build-passes verification
235+
236+
#### Migration — phase 3: API (`migration-api`)
237+
238+
- **purpose**: Move properties, methods, and types from 1st-gen to 2nd-gen while maintaining a clear public API
239+
- **How to invoke**: Say "migrate the API for [component]", "port properties and methods for [component]", or "phase 3 migration for [component]"
240+
- Use when: Scaffolding is in place and it's time to define the component's public contract in 2nd-gen
241+
- Provides: Property/method porting workflow, type definition guidance, API contract review
242+
243+
#### Migration — phase 4: styling (`migration-styling`)
244+
245+
- **purpose**: Migrate CSS to the 2nd-gen structure, apply Spectrum 2 tokens, and ensure stylelint passes
246+
- **How to invoke**: Say "migrate styling for [component]", "port CSS for [component]", or "phase 4 migration for [component]"
247+
- Use when: API is in place; translating 1st-gen CSS to 2nd-gen with Spectrum 2 design tokens
248+
- Provides: CSS migration checklist, token mapping guidance, stylelint validation steps
249+
250+
#### Migration — phase 5: accessibility (`migration-a11y`)
251+
252+
- **purpose**: Implement WCAG-aligned semantics, ARIA, keyboard support, and focus management, and document accessibility behavior
253+
- **How to invoke**: Say "migrate accessibility for [component]", "implement a11y for [component]", or "phase 5 migration for [component]"
254+
- Use when: Styling is complete; hardening the component's accessibility implementation
255+
- Provides: WCAG checklist, ARIA pattern guidance, keyboard/focus requirements, a11y documentation template
256+
257+
#### Migration — phase 6: testing (`migration-testing`)
258+
259+
- **purpose**: Write unit tests, accessibility tests, and Storybook play functions for a migrated component
260+
- **How to invoke**: Say "write tests for [component] migration", "add migration tests for [component]", or "phase 6 migration for [component]"
261+
- Use when: Implementation is feature-complete; adding test coverage before review
262+
- Provides: Test coverage checklist, unit/a11y/play-function patterns, test-running verification
263+
264+
#### Migration — phase 7: documentation (`migration-documentation`)
265+
266+
- **purpose**: Write JSDoc, Storybook stories, and usage docs so the component is usable and understandable by others
267+
- **How to invoke**: Say "write docs for [component] migration", "document [component] for 2nd-gen", or "phase 7 migration for [component]"
268+
- Use when: Tests pass; creating the Storybook stories and usage documentation for the migrated component
269+
- Provides: JSDoc guidelines, stories scaffolding, README/usage doc structure, documentation checklist
270+
271+
#### Migration — phase 8: review (`migration-review`)
272+
273+
- **purpose**: Run final checks, verify lint/tests/build/Storybook, update the workstream status table, and open a PR
274+
- **How to invoke**: Say "review [component] migration", "final checks for [component]", or "phase 8 migration for [component]"
275+
- Use when: Documentation is complete; preparing the migration for code review and merge
276+
- Provides: Pre-PR checklist (lint, tests, build, Storybook), workstream status update steps, PR description guidance
227277

228278
#### Deep understanding
229279

0 commit comments

Comments
 (0)