Component cycle session prompt
Paste the block below into a new agent chat. Fill the three <…> fields and delete the entry path you do not use.
After stages 1–6, continue with the production-ready stages in SKILL.md (gates, docs, pnpm test / pnpm lint) before claiming the catalog green dot.
Take <COMPONENT NAME> through the full component-standard cycle.
Entry path: <NEW from <screenshot/mockup path> | EXISTING at <file path>>
Brief: <one line on what it is and where it is used>
Run these stages in order, inline in this session (no subagents). Read each skill's SKILL.md before its stage. Finish a stage, state in one line what changed, then move on. Do not skip a stage; if one has nothing to do, say so.
1. Build
- NEW: `.agents/skills/componentize/SKILL.md`. EXISTING or legacy styles: `.agents/skills/adopt-design-system/SKILL.md` (behavior must not change).
- Look and feel: `.agents/skills/visual-direction/SKILL.md`. Open the closest moodboard screen
in its `assets/` and assign every surface a role (ground / surface / tray), with no shadows or elevation.
2. API: `vercel-composition-patterns`
- Replace boolean-prop proliferation with compound parts and a shared context
(state / actions / meta). Keep the current props API working as the default composition
so existing call sites do not change. Additive only.
3. Polish: `.agents/skills/polish-component/SKILL.md`
- Geometry and tokens only: spacing on the 8px grid, alignment, icon centering, one token
layer, focus rings. Run the visual-direction checklist and check the plane order in light and dark.
4. Motion: `emil-design-eng`
- Decide whether each transition should exist at all. Use the --motion-* tokens, no
transition: all, no ease-in, no scale(0), press feedback on pressables, keyboard-driven
changes stay instant, list inserts use @starting-style. Report changes as a
Before | After | Why table.
5. Stress: `.agents/skills/stress-test/SKILL.md`, with `better-accessibility` alongside
- Edge-case content, narrow viewports, keyboard path, then roles/ARIA, names, contrast and
focus order. Fix what breaks.
6. Plate: `.agents/skills/plate-my-component/SKILL.md`
- Add or update the catalog specimen with every state, last, so it shows the finished component.
7. Ship: `.agents/skills/component-cycle/SKILL.md`
- Production-ready gates, `<Name>.docs.mdx`, axe + light/dark snapshots, verify locally.
8. Tailwind migration (when porting off recipes): `.agents/skills/component-cycle/references/tailwind-migration.md`
- Match `Text` / `Badge`; delete recipe CSS only in a follow-up `chore: remove legacy …` commit.
Rules
- Prefer additive changes. If you delete superseded code, do it in a separate
`chore: remove legacy …` commit, never mixed with the replacement.
- If any primitive token changes: update Figma `Life / Primitives`, the 00 · Primitives
specimens and the comparison board, and regenerate the catalog consumed by
apps/studio/src/lib/comparison-token-catalog.ts.
- Icons: no custom icons and no hand-written or inline SVG. Use Hugeicons only, reusing the
existing icon library: Standard stroke by default, solid where the state or context calls for
it. SVG files are fine only for logos and brand marks, such as model logos.
- Do not verify in a browser or run the dev server. Lint and type-checks only.
- Before reporting done, re-read this prompt and confirm every stage was actually completed.
End with a table: stage | skill | files changed | anything left.
Optional skills
Stages 2, 4, and 5 reference personal Cursor skills (vercel-composition-patterns, emil-design-eng, better-accessibility). When those are unavailable, apply the same intent using repo skills and PRODUCTION_READY.md.