将界面截图或设计稿批量转换为 Vue 3 组件代码,适配常见组件库。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "ui-to-vue" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/ui-to-vue/SKILL.md 2. 保存为 ~/.claude/skills/ui-to-vue/SKILL.md 3. 装好后重载技能,告诉我可以用了
请根据我提供的页面截图,将界面拆分为 Vue 3 + Vant 组件。要求输出可运行的单文件组件,包含模板、脚本和样式,并尽量复用 Vant 的现成组件。
一组结构清晰的 Vue 3 单文件组件,使用 Vant 组件还原移动端页面。
把这份后台设计稿转换成 Vue 3 + Element Plus 页面代码。请按区域拆分为头部、侧边栏、表格和筛选表单组件,并补充合理的占位数据。
一个按模块拆分的后台页面代码方案,包含 Element Plus 组件与基础占位数据。
我有多张界面导出图,请批量转换为 Vue 3 + Ant Design Vue 组件。请为每张图分别生成组件文件名、代码和目录结构,并保持命名风格一致。
按多张界面图分别生成的组件代码、文件命名建议和统一目录结构。
Batch-convert UI design screenshots into Vue 3 Composition API component code.
Use an input directory that groups screenshots by module and page state:
screenshots/
|-- HomePage/
| |-- List/
| | |-- [email protected]
| | `-- cut-images/
| |-- cut-images/
| `-- [email protected]
`-- cut-images/
Supported cut-image directory names include assets, icons, sprites, cut, images, and cut-images.
Run the converter with npx so the documented command works without relying on a global binary:
export DASHSCOPE_API_KEY=your_key
npx [email protected] --input ./screenshots --ui vant --output ./src
For desktop UI libraries:
npx [email protected] --input ./designs --ui element-plus --output ./src
npx [email protected] --input ./designs --ui antd-vue --output ./src
If the package is installed globally, the ui-to-vue binary can be used directly:
npm install -g [email protected]
ui-to-vue --input ./screenshots --ui vant --output ./src
| Option | Description | Default |
|---|---|---|
--input | Design image directory | ./screenshots |
--ui | UI library: vant, element-plus, or antd-vue | vant |
--output | Output directory | ./src |
--config | Config file path | ./.ui-to-vue.config.json |
The converter can read DashScope credentials from a config file or from the environment. Prefer an environment variable in repositories:
export DASHSCOPE_API_KEY=your_key
If a local config file is required, keep it out of version control:
{
"apiKey": "your_dashscope_key",
"input": "./designs",
"ui": "vant",
"output": "./src"
}
.ui-to-vue.config.json
@latest..ui-to-vue.config.json, API keys, generated secrets, or customer screenshots.views/ or the chosen output directory.components/ only when reuse is clear.| Issue | Check |
|---|
…
帮助用户编写、配置与优化 Hookify 规则及语法模式。
用于核查营收、定价、退款与团队计费真相,快速给出证据化结论。
为 KMP 项目提供 Compose 多平台界面架构、导航、主题与性能实践。
帮助团队为医疗应用设计符合PHI/PII要求的数据安全与合规方案
通过逐步细化检索上下文,提升子代理任务理解与结果质量。
帮助你设计与优化 Spring Boot 后端架构、接口与服务实现。
帮助 AI 查询 Vue UI 组件文档并生成正确的组件调用代码。
将截图转为贴合现有 Angular 项目结构与规范的界面代码。
帮助开发者从 Uiverse.io 快速提取多框架 UI 组件代码并复用到项目中。
帮助你在使用组件浏览器的项目中高效处理 UI 变更、截图与视觉测试。
自动生成基于 Vue 3 与 Composition API 的完整 CRUD 项目结构与代码骨架。
通过截图比对与设计令牌提取,定位 UI 偏差并生成 CSS 修复建议