UIスクリーンショットやデザインエクスポートをVue 3コンポーネントに一括変換する際に使用。Vant、Element Plus、Ant Design Vueに対応。
UIデザインのスクリーンショットをVue 3 Composition APIコンポーネントコードに一括変換します。
モジュールとページ状態でスクリーンショットをグループ化したディレクトリを入力として使用します。
サポートされている切り出し画像ディレクトリ名:assets、icons、sprites、cut、images、cut-images。
グローバルバイナリに依存せず、ドキュメントに記載されたコマンドが機能するように npx でコンバーターを実行します:
export DASHSCOPE_API_KEY=your_key
npx ui-to-vue-converter@1.0.2 --input ./screenshots --ui vant --output ./src
| オプション | 説明 | デフォルト |
| --- | --- | --- |
| --input | デザイン画像ディレクトリ | ./screenshots |
| --ui | UIライブラリ:vant、element-plus、または antd-vue | vant |
| --output | 出力ディレクトリ | ./src |
| --config | 設定ファイルのパス | ./.ui-to-vue.config.json |
@latest の代わりにコンバーターのバージョンを固定すること。.ui-to-vue.config.json、APIキー、生成されたシークレット、または顧客スクリーンショットをコミットしないこと。views/ または選択した出力ディレクトリの下に生成された。components/ に抽出された。| 問題 | 確認事項 |
| --- | --- |
| 401 または認証エラー | コマンドを実行するシェルで DASHSCOPE_API_KEY が設定されていることを確認する。 |
| command not found: ui-to-vue | npx ui-to-vue-converter@1.0.2 の形式を使用するか、パッケージをグローバルインストールする。 |
| 切り出し画像が無視される | アセットディレクトリ名がサポートされており、対応するページまたはモジュールの下にネストされていることを確認する。 |
| コンポーネントが要求されたUIライブラリを無視する | 明示的な --ui 値で再実行して、生成されたインポートを確認する。 |
| 生成されたレイアウトの寸法がおかしい | スクリーンショットのエクスポート幅がターゲットライブラリのベースラインと一致していることを確認する。 |
ui-to-vue-converterCopy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/ui-to-vue · pinned to the source commit
git clone https://github.com/affaan-m/ECC.git
cd ECC
git checkout d8409a4b0813771235555e32e3d8046a73988bfa
mkdir -p ".claude/skills/ui-to-vue"
cp -r "docs/ja-JP/skills/ui-to-vue" ".claude/skills/ui-to-vue"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit d8409a4b0813. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References credentials, tokens or secret files that a skill should not need.
Evidence: [redacted]· fingerprint ccae6d912a41bfef