U

ui-to-vue

by @affaan-mv
4.3(120)

This skill batch converts UI design screenshots or exports into high-quality Vue 3 Composition API component code, supporting major UI libraries like Vant, Element Plus, and Ant Design Vue. By intelligently identifying design elements, grouping pages, and extracting reusable components, it helps developers quickly transform designs into functional frontend code, significantly boosting development efficiency and consistency.

vueui-to-codefrontend-developmentcode-generationdesign-automationGitHub
Installation
npx skills add https://github.com/affaan-m/everything-claude-code --skill ui-to-vue
compare_arrows

Before / After Comparison

1 组
Before

Without this skill, developers had to manually convert UI design mockups or screenshots into Vue component code one by one. This process was time-consuming, error-prone, and often led to inconsistencies in styling and component structure. Manually handling page grouping, component extraction, and UI library adaptation required significant repetitive effort, severely delaying development timelines.

After

This skill automatically converts UI design mockups or screenshots into Vue 3 component code in batches, adapting to specified UI libraries. It drastically reduces manual coding time, ensures code consistency and accuracy, allowing developers to focus more on business logic and complex interactions, thereby significantly boosting frontend development efficiency.

SKILL.md

UI To Vue

UIデザインのスクリーンショットをVue 3 Composition APIコンポーネントコードに一括変換します。

使用するタイミング

  • ユーザーがデザインスクリーンショットまたはデザインエクスポート画像のディレクトリを提供するとき。
  • ターゲットアプリケーションがVue 3のとき。
  • ユーザーがページコンポーネント、共有コンポーネント、ルーター配線の最初の変換を希望するとき。
  • ユーザーがVant、Element Plus、またはAnt Design Vueをコンポーネントライブラリとして指定するとき。

使用しないタイミング

  • ユーザーがスクリーンショット1枚のみで、特定のコンポーネントを希望するとき。
  • ターゲットプロジェクトがVueでないとき。
  • デザインが詳細なインタラクションロジック、データフロー、またはアクセシビリティレビューを必要とするとき。
  • スクリーンショットに外部モデルAPIに送信できないプライベートな顧客データが含まれるとき。

入力

モジュールとページ状態でスクリーンショットをグループ化したディレクトリを入力として使用します。

サポートされている切り出し画像ディレクトリ名:assets、icons、sprites、cut、images、cut-images。

変換モデル

  • ページグループ化:リスト、詳細、フォーム、ローディング、または空の状態を表す関連スクリーンショットを1つのページコンポーネントにまとめる。
  • UIライブラリマッピング:可能な限りネイティブのビジュアル要素をVant、Element Plus、またはAnt Design Vueコンポーネントにマッピングする。
  • 切り出し画像の優先順位:ページレベルのアセットを優先し、次にモジュールレベル、最後にグローバル共有アセット。
  • コンポーネント抽出:繰り返し使われるUIリージョンが2回以上現れる場合は共有コンポーネントに抽出する。

CLI使用方法

グローバルバイナリに依存せず、ドキュメントに記載されたコマンドが機能するように npx でコンバーターを実行します:

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

オプション

オプション説明デフォルト
--inputデザイン画像ディレクトリ./screenshots
--uiUIライブラリ:vant、element-plus、または antd-vuevant
--output出力ディレクトリ./src
--config設定ファイルのパス./.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 ui-to-vue-converter@1.0.2 の形式を使用するか、パッケージをグローバルインストールする。
切り出し画像が無視されるアセットディレクトリ名がサポートされており、対応するページまたはモジュールの下にネストされていることを確認する。
コンポーネントが要求されたUIライブラリを無視する明示的な --ui 値で再実行して、生成されたインポートを確認する。
生成されたレイアウトの寸法がおかしいスクリーンショットのエクスポート幅がターゲットライブラリのベースラインと一致していることを確認する。

リファレンス

  • npmパッケージ:ui-to-vue-converter

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs2.4K
Rating4.3 / 5.0
Version
Updated2026年8月7日
Comparisons1

User Rating

4.3(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年6月13日
Last Updated2026年8月7日
🎁 Agent Knowledge Cards
Survey