Communitygithub.com

UI to Vue

UI 디자인 스크린샷을 일괄 변환하여 Vue 3 Composition API 컴포넌트 코드로 생성합니다.

UI to Vue란 무엇인가요?

이 스킬은 UI 디자인 스크린샷(특히 Vant, Element Plus, Ant Design Vue 라이브러리 사용 시)을 Vue 3 Composition API 기반의 컴포넌트 코드로 일괄 변환하는 CLI 도구입니다. 사용자가 디자인 내보내기 이미지 디렉토리를 제공하면, 페이지별로 그룹화하여 컴포넌트를 생성하고 반복되는 UI 영역은 공유 컴포넌트로 추출하며, 라우터 연결까지 자동으로 구성합니다. npx를 통해 실행할 수 있고, DashScope API 키를 환경 변수로 설정하여 사용합니다. 변환된 코드는 프로젝트의 포매터, 린터, 타입 체커, 빌드 과정을 통과하는지 검토 목록으로 확인하는 것이 권장됩니다. 개인 고객 데이터가 포함된 스크린샷은 외부 모델 API에 전송되지 않도록 주의해야 합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/ui-to-vue

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

UI to Vue은(는) 무엇을 하나요?

UI 디자인 스크린샷을 Vue 3 Composition API 컴포넌트 코드로 일괄 변환합니다.

사용 시기

  • 사용자가 디자인 스크린샷이나 디자인 내보내기 이미지 디렉토리를 제공한 경우
  • 대상 애플리케이션이 Vue 3인 경우
  • 사용자가 페이지 컴포넌트, 공유 컴포넌트, 라우터 연결의 초안을 원하는 경우
  • 사용자가 Vant, Element Plus 또는 Ant Design Vue를 컴포넌트 라이브러리로 지정한 경우

사용하지 말아야 할 시기

  • 사용자가 하나의 스크린샷만 가지고 맞춤형 컴포넌트를 원하는 경우
  • 대상 프로젝트가 Vue가 아닌 경우
  • 디자인에 세부적인 상호작용 로직, 데이터 흐름 또는 접근성 검토가 필요한 경우
  • 스크린샷에 외부 모델 API로 전송할 수 없는 개인 고객 데이터가 포함된 경우

입력

모듈과 페이지 상태별로 스크린샷을 그룹화한 입력 디렉토리를 사용하세요:

screenshots/
|-- HomePage/
|   |-- List/
|   |   |-- [email protected]
|   |   `-- cut-images/
|   |-- cut-images/
|   `-- [email protected]
`-- cut-images/

지원되는 잘라낸 이미지 디렉토리 이름: assets, icons, sprites, cut, images, cut-images

변환 모델

  • 페이지 그룹화: 목록, 상세, 폼, 로딩 또는 빈 상태를 나타내는 관련 스크린샷을 하나의 페이지 컴포넌트로 결합합니다.
  • UI 라이브러리 매핑: 기본 시각적 요소를 Vant, Element Plus 또는 Ant Design Vue 컴포넌트로 실용적으로 매핑합니다.
  • 잘라낸 이미지 우선순위: 페이지 수준 자산 → 모듈 수준 자산 → 전역 공유 자산 순으로 우선 처리합니다.
  • 컴포넌트 추출: 두 번 이상 나타나는 반복 UI 영역을 공유 컴포넌트로 추출합니다.

CLI 사용법

전역 바이너리에 의존하지 않고 문서화된 명령이 동작하도록 npx로 변환기를 실행하세요:

export DASHSCOPE_API_KEY=your_key
npx [email protected] --input ./screenshots --ui vant --output ./src

데스크톱 UI 라이브러리의 경우:

npx [email protected] --input ./designs --ui element-plus --output ./src
npx [email protected] --input ./designs --ui antd-vue --output ./src

패키지가 전역으로 설치된 경우 ui-to-vue 바이너리를 직접 사용할 수 있습니다:

npm install -g [email protected]
ui-to-vue --input ./screenshots --ui vant --output ./src

옵션

옵션설명기본값
--input디자인 이미지 디렉토리./screenshots
--uiUI 라이브러리: vant, element-plus 또는 antd-vuevant
--output출력 디렉토리./src
--config설정 파일 경로./.ui-to-vue.config.json

API 키 처리

변환기는 설정 파일 또는 환경 변수에서 DashScope 자격 증명을 읽을 수 있습니다. 저장소에서는 환경 변수를 선호합니다:

export DASHSCOPE_API_KEY=your_key

로컬 설정 파일이 필요한 경우 버전 관리에서 제외하세요:

{
  "apiKey": "your_dashscope_key",
  "input": "./designs",
  "ui": "vant",
  "output": "./src"
}
.ui-to-vue.config.json

보안 및 개인정보 보호

  • 디자인 스크린샷을 외부 모델 API로 전송될 수 있는 원본 자료로 취급하세요.
  • 허가 없이 개인 고객 디자인에 대해 이 플로우를 실행하지 마세요.
  • @latest 대신 반복 가능한 워크플로우에서 변환기 버전을 고정하세요.
  • 생성된 Vue 코드를 커밋하기 전에 검토하세요.
  • .ui-to-vue.config.json, API 키, 생성된 비밀 정보 또는 고객 스크린샷을 커밋하지 마세요.

출력 검토 체크리스트

  • 페이지 컴포넌트가 views/ 또는 선택한 출력 디렉토리 아래에 생성되었습니다.
  • 반복 UI 영역이 재사용이 명확한 경우에만 components/ 아래로 추출되었습니다.
  • 라우터 출력이 대상 프로젝트의 라우터 스타일과 호환됩니다.
  • 생성된 컴포넌트가 요청된 UI 라이브러리를 일관되게 사용합니다.
  • 생성된 CSS 단위가 디자인 기준과 일치합니다.
  • 코드가 프로젝트의 포매터, 린터, 타입 체커 및 빌드를 통과합니다.
  • 커밋 전에 플레이스홀더 복사본, 모의 데이터 및 생성된 자산을 검토했습니다.

문제 해결

문제확인 사항
401 또는 인증 오류명령을 실행하는 셸에서 DASHSCOPE_API_KEY가 설정되었는지 확인하세요.
command not found: ui-to-vuenpx [email protected] 형식을 사용하거나 패키지를 전역으로 설치하세요.
잘라낸 이미지가 무시됨자산 디렉토리 이름이 지원되고 해당 페이지 또는 모듈 아래에 중첩되어 있는지 확인하세요.
컴포넌트가 요청된 UI 라이브러리를 무시함명시적인 --ui 값으로 다시 실행하고 생성된 임포트를 검사하세요.
생성된 레이아웃 크기가 잘못됨스크린샷 내보내기 너비가 대상 라이브러리 기준과 일치하는지 확인하세요.

참고 자료

  • npm 패키지: ui-to-vue-converter

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

관련 스킬