affaan-m/ECC

ui-to-vue

Use when the user has UI screenshots or design exports that need batch conversion into Vue 3 components, especially with Vant, Element Plus, or Ant Design Vue.

84CollectingRuns scripts
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "skills/ui-to-vue"
Automated source guide

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Turn ui-to-vue's source instructions into a guide you can follow

According to the pinned SKILL.md from affaan-m/ECC: Batch-convert UI design screenshots into Vue 3 Composition API component code.

npx skills add https://github.com/affaan-m/ECC --skill "skills/ui-to-vue"
Check the pinned source

Best fit

  • 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.

Bring this context

  • Use an input directory that groups screenshots by module and page state:
  • Supported cut-image directory names include assets, icons, sprites, cut, images, and cut-images.

Expected outputs

  • [ ] Page components were generated under views/ or the chosen output directory.
  • [ ] Repeated UI regions were extracted into components/ only when reuse is clear.
  • [ ] Router output is compatible with the target project's router style.

Key source sections

Read ui-to-vue through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

CLI Usage

Run the converter with npx so the documented command works without relying on a global binary:

SKILL.md · CLI Usage
Run the converter with npx so the documented command works without relying on a global binary:For desktop UI libraries:If the package is installed globally, the ui-to-vue binary can be used directly:
02

Output Review Checklist

[ ] Page components were generated under views/ or the chosen output directory.

SKILL.md · Output Review Checklist
[ ] Page components were generated under views/ or the chosen output directory.[ ] Repeated UI regions were extracted into components/ only when reuse is clear.[ ] Router output is compatible with the target project's router style.
03

When to Use

The user provides a directory of design screenshots or design-export images.

SKILL.md · 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.
04

When Not to Use

The user has only one screenshot and wants a bespoke component.

SKILL.md · 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.
05

Inputs

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

SKILL.md · Inputs
Use an input directory that groups screenshots by module and page state:Supported cut-image directory names include assets, icons, sprites, cut, images, and cut-images.

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Task-start prompt

Confirm source fit, inputs, and outputs before acting.

Use ui-to-vue to help me with: [specific task]. Context: [files, data, or background]. Constraints: [environment, scope, and prohibited actions]. Before acting, check the pinned SKILL.md and explain which sections apply, what inputs are still missing, and what you will deliver.

Source-guided execution

Make the Agent explicitly follow the key extracted sections.

Apply the pinned ui-to-vue source to [task]. Pay particular attention to these source sections: “CLI Usage”, “Output Review Checklist”, “When to Use”, “When Not to Use”, “Inputs”. Preserve the important decision at each step. Mark facts not covered by the source as “needs confirmation” instead of inventing them. Then verify the result against my acceptance criteria: [criteria].

Result-review prompt

Check omissions, permissions, and source drift before delivery.

Review the current ui-to-vue result: (1) does it satisfy the original task; (2) were any applicable steps or limits in the pinned SKILL.md missed; (3) did it perform any unauthorized file, command, network, or data action; and (4) which conclusions remain unverified? List issues first, then fix only what the source or user authorization supports.

Output checklist

Verify each item before delivery

The task matches the purpose documented in the SKILL.md.

The source section “CLI Usage” has been checked.

The source section “Output Review Checklist” has been checked.

The source section “When to Use” has been checked.

The source section “When Not to Use” has been checked.

Inputs, constraints, and acceptance criteria are explicit.

Unverified facts, compatibility, and outcome claims are clearly marked.

Any file, command, network, or data action has been reviewed.

Choose a different workflow

When another Skill is the better fit

FAQ

What does ui-to-vue do?

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

How do I start using ui-to-vue?

The catalog detected this source-specific install command: npx skills add https://github.com/affaan-m/ECC --skill "skills/ui-to-vue". Inspect the command and pinned source before running it.

Which Agent platforms does it declare?

No dedicated Agent platform is declared in the pinned source record.

Repository stars
234,327
Repository forks
35,711
Quality
84/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

84/100
Documentation27/30
Specificity17/25
Maintenance20/20
Trust signals20/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 3 min

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

  • Page grouping: combine related screenshots into one page component when they represent list, detail, form, loading, or empty states.
  • UI library mapping: map native visual elements to Vant, Element Plus, or Ant Design Vue components where practical.
  • Cut-image priority: prefer page-level assets, then module-level assets, then global shared assets.
  • Component extraction: extract repeated UI regions into shared components when they appear more than once.

CLI Usage

Run the converter with npx so the documented command works without relying on a global binary:

export DASHSCOPE_API_KEY=your_key
npx ui-to-vue-converter@1.0.2 --input ./screenshots --ui vant --output ./src

For desktop UI libraries:

npx ui-to-vue-converter@1.0.2 --input ./designs --ui element-plus --output ./src
npx ui-to-vue-converter@1.0.2 --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 ui-to-vue-converter@1.0.2
ui-to-vue --input ./screenshots --ui vant --output ./src

Options

OptionDescriptionDefault
--inputDesign image directory./screenshots
--uiUI library: vant, element-plus, or antd-vuevant
--outputOutput directory./src
--configConfig file path./.ui-to-vue.config.json

API Key Handling

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

Security and Privacy

  • Treat design screenshots as source material that may be sent to an external model API.
  • Do not run this flow on private customer designs without permission.
  • Pin the converter version in repeatable workflows instead of using @latest.
  • Review generated Vue code before committing it.
  • Do not commit .ui-to-vue.config.json, API keys, generated secrets, or customer screenshots.

Output Review Checklist

  • Page components were generated under views/ or the chosen output directory.
  • Repeated UI regions were extracted into components/ only when reuse is clear.
  • Router output is compatible with the target project's router style.
  • Generated components use the requested UI library consistently.
  • Generated CSS units match the design baseline.
  • The code passes the project's formatter, linter, type checker, and build.
  • Placeholder copy, mock data, and generated assets were reviewed before commit.

Troubleshooting

IssueCheck
401 or authentication errorConfirm DASHSCOPE_API_KEY is set in the shell running the command.
command not found: ui-to-vueUse the npx ui-to-vue-converter@1.0.2 form or install the package globally.
Cut images are ignoredConfirm the asset directory name is supported and nested under the matching page or module.
Components ignore the requested UI libraryRe-run with an explicit --ui value and inspect the generated imports.
Generated layout dimensions look wrongConfirm the screenshot export width matches the target library baseline.

References

  • npm package: ui-to-vue-converter
Source repo
affaan-m/ECC
Skill path
skills/ui-to-vue/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected