Agent Skills
› vendurehq/vendure
› radix-to-base-ui-migration
radix-to-base-ui-migration
GitHub将Vendure仪表板扩展从Radix UI迁移至Base UI模式,处理组件API变更、导入整合及渲染逻辑转换。
Trigger Scenarios
需要迁移UI组件库
代码中包含旧版Radix UI或vendure-io/ui引用
Install
npx skills add vendurehq/vendure --skill radix-to-base-ui-migration -g -y
SKILL.md
Frontmatter
{
"name": "radix-to-base-ui-migration",
"description": "Migrates Vendure Dashboard extensions from Radix UI patterns to Base UI patterns (@vendure-io\/ui)."
}
Radix to Base UI Migration
Instructions
- If not explicitly stated by the user, find out which files or plugin they want to migrate.
- Scan the target files for any of the following Radix UI patterns:
asChildprop usage- Old form components (
FormField,FormItem,FormControl,FormLabel,FormMessage,FormDescription) - Direct
@radix-ui/*imports - Direct
@vendure-io/ui/*or@base-ui/react/*imports Accordionwithtype="single"orcollapsiblepropsSelectwithoutitemsprop
- Apply transformations using the appropriate reference docs:
- ./01-asChild-to-render.md
- ./02-form-components.md
- ./03-import-consolidation.md
- ./04-component-api-changes.md
- After all transformations, verify:
- All UI component imports come from
@vendure/dashboard - No direct
@radix-ui/*,@vendure-io/ui/*, or@base-ui/react/*imports remain - Only approved third-party imports are used (see 03-import-consolidation.md)
- All UI component imports come from
Version History
- 7f72774 Current 2026-08-20 09:27


