본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)280k · #428

ui-to-vue

하는 일

앱 화면 이미지나 디자인을 Vue.js 프레임워크용 코드로 바꿉니다. 페이지와 컴포넌트의 기본 구조를 만드는 데 도움이 됩니다.

사용하는 경우

  • ✓여러 앱 화면 이미지를 코드로 바꾸고 싶을 때.
  • ✓프로젝트가 Vue.js 3 버전을 사용하는 경우.
  • ✓Vant, Element Plus, Ant Design Vue 같은 컴포넌트 라이브러리를 쓰고 싶을 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/skills/ui-to-vue/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/ui-to-vue/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 스크린샷들을 Vant 라이브러리를 사용해 Vue 3 컴포넌트로 바꿔 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이미지가 들어 있는 폴더를 제공하고 사용할 컴포넌트 라이브러리를 정합니다. 도구는 이미지를 분석해 그에 맞는 Vue 코드를 만들고, 비슷한 화면을 묶어 재사용 가능한 컴포넌트를 만들려고 시도합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

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

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

Issue Check
401 or authentication error Confirm DASHSCOPE_API_KEY is set in the shell running the command.
command not found: ui-to-vue Use the npx ui-to-vue-converter@1.0.2 form or install the package globally.
Cut images are ignored Confirm the asset directory name is supported and nested under the matching page or module.
Components ignore the requested UI library Re-run with an explicit --ui value and inspect the generated imports.

…

자주 묻는 질문

아무 이미지나 사용해도 되나요?

디자인 내보내기 이미지나 앱 페이지 또는 모듈별로 정리된 스크린샷을 쓰는 것이 가장 좋습니다.

이미지에 민감한 정보가 있으면 어떻게 하나요?

개인 정보가 담긴 이미지는 사용하지 마세요. 처리를 위해 외부 서비스로 전송됩니다.

생성된 코드를 바로 쓸 수 있나요?

도구는 기본 틀을 만들어 줍니다. 특히 상호작용 로직과 접근성은 직접 검토하고 수정해야 합니다.

상세 정보

작성자의 원본 설명

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.

repo: affaan-m/ECC

인기도

GitHub 스타
280k
순위
#428
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬