Skip to content
affaan-m avatar

Ui To Vue

Batch-converts design screenshots into Vue 3 components using Vant, Element Plus, or Ant Design Vue.

CCM score
64 of 100
skills.sh installs
8.8K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers batch conversion of screenshot directories into page components, shared components, and router wiring for Vue 3
  • Includes a CLI via npx ui-to-vue-converter@1.0.2 with --input, --ui, --output, and --config options
  • Enforces pinned converter versions and keeps API keys and config files out of version control
  • Designed for teams with non-sensitive design exports that need a first-pass Vue scaffold before manual review

Install

$ npx -y skills add affaan-m/ecc --skill ui-to-vue -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

UI To Vue

Batch-convert UI design screenshots into Vue 3 Composition API component code.

When to Use

  • The user provides a directory of design screenshots or design-export images.
  • The target application is Vue 3.
  • The user wants a first pass of page components, shared components, and router wiring.
  • The user specifies Vant, Element Plus, or Ant Design Vue as the component library.

When Not to Use

  • The user has only one screenshot and wants a bespoke component.
  • The target project is not Vue.
  • The design requires detailed interaction logic, data flow, or accessibility review.
  • The screenshots contain private customer data that cannot be sent to an external model API.

Inputs

Use an input directory that groups screenshots by module and page state:

screenshots/
|-- HomePage/
|   |-- List/
|   |   |-- HomePage-List-Default@3x.png
|   |   `-- cut-images/
|   |-- cut-images/
|   `-- HomePage-Default@3x.png
`-- cut-images/

Supported cut-image directory names include assets, icons, sprites, cut, images, and cut-images.

Conversion Model

Details

Repository
github.com/affaan-m/ecc
Categories
Frontend & UI Code, Design & UI/UX
First seen
Jul 14, 2026

Questions

What does the ui-to-vue skill do?

The ui-to-vue skill batch-converts UI design screenshots or design exports into Vue 3 Composition API component code. It groups related screenshots into page components, extracts repeated regions into shared components, and wires up the router. It is meant for a first pass of components that you then review.

Which UI libraries does ui-to-vue support?

You choose one of three component libraries with the --ui option: vant, element-plus, or antd-vue. Vant is the default when no value is given. The converter maps native visual elements in the screenshots to components from the chosen library where practical.

How do I install the ui-to-vue skill?

Run npx -y skills add affaan-m/ecc --skill ui-to-vue -y in your project. After installing, the skill lets your agent convert a directory of design screenshots into Vue 3 components. Set a DASHSCOPE_API_KEY environment variable before running the converter.

Is ui-to-vue safe to use with private customer designs?

The skill warns that design screenshots may be sent to an external model API. Do not run it on private customer designs without permission. Review the generated Vue code before committing it, and keep config files and API keys out of version control.

More from affaan-m/ecc

All 257

Similar to Ui To Vue

More Frontend & UI Code