design-to-production
デザインプロトタイプを、ガラスのような質感のスタイルと品質基準を満たした、実際に使えるReactコンポーネントに変換するための手順をガイドし、デザインをスムーズに製品コードに落とし込む作業を支援するSkill。
📜 元の英語説明(参考)
Guided workflow for implementing HTML design prototypes as production React components with glassmorphism styling and quality standards enforcement. Use when converting design prototypes to production code.
🇯🇵 日本人クリエイター向け解説
デザインプロトタイプを、ガラスのような質感のスタイルと品質基準を満たした、実際に使えるReactコンポーネントに変換するための手順をガイドし、デザインをスムーズに製品コードに落とし込む作業を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o design-to-production.zip https://jpskill.com/download/17243.zip && unzip -o design-to-production.zip && rm design-to-production.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17243.zip -OutFile "$d\design-to-production.zip"; Expand-Archive "$d\design-to-production.zip" -DestinationPath $d -Force; ri "$d\design-to-production.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
design-to-production.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
design-to-productionフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 8
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
デザインからプロダクションへ
HTMLプロトタイプをプロダクションReactコンポーネントに変換するためのガイド付きワークフローです。
要約: HTMLファイルのパスを指定 → 分析 → コンポーネントのマッピング → スキャフォールディング → 実装 → 検証
自動トリガー
キーワードによって自動的にトリガーされます:
- "implement design", "prototype to production", "convert HTML"
- "glassmorphism component", "design prototype", "HTML to React"
クイックコマンド
# ステップ 1: HTMLプロトタイプの分析
./.claude/skills/design-to-production/scripts/extract-structure.sh <html-file-path>
# ステップ 3: コンポーネントのスキャフォールディング (インタラクティブなマッピング後)
./.claude/skills/design-to-production/scripts/scaffold-component.sh \
--name "ComponentName" \
--module "practice" \
--template "interactive-card"
# ステップ 5: 実装の検証
./.claude/skills/design-to-production/scripts/validate.sh <component-path>
5ステップワークフロー
例: glassmorphism_hints_panel_1.html の実装
1. 分析 → HTMLから構造を抽出
2. マッピング → shadcnコンポーネント + glassmorphismクラスを選択
3. スキャフォールディング → ボイラープレートを含む.tsxファイルを生成
4. 実装 → コンポーネントロジックを記述 (TODOによってガイド)
5. 検証 → 品質基準をチェック
ステップ 1: 分析
ユーザーが提供するもの: HTMLファイルのパス (例: .superdesign/design_iterations/glassmorphism_hints_panel_1.html)
スクリプトの実行内容:
./scripts/extract-structure.sh .superdesign/design_iterations/glassmorphism_hints_panel_1.html
出力: 以下の内容を含む hints-panel-structure.json:
- コンポーネントの階層構造
- CSSクラス (glassmorphismユーティリティ)
- インタラクティブな要素 (ボタン、フォーム、入力)
- レイアウトパターン (グリッド、フレックス、垂直スタック)
SKILL.mdの表示内容: 検出された構造の概要
ステップ 2: マッピング (インタラクティブ)
SKILL.mdが4つの決定をガイドします:
2.1 コンポーネントの識別
- 質問: "このコンポーネントを何と呼ぶべきですか?"
- 提案: HTMLファイル名またはタイトルから抽出
- 例:
HintsPanel
2.2 モジュールの配置場所
- 質問: "これはどのモジュールに属しますか?"
- 選択肢: practice, assessment, results, profile, questions, home
- 例:
practice
2.3 shadcn/ui コンポーネントのマッピング
各インタラクティブな要素について:
- 検出:
<button class="btn-glass">Show Hint</button> - 提案:
@shared/ui/buttonのButtonを使用 - 確認: ユーザーが承認または上書き
一般的なマッピング:
| HTML Element | shadcn Component |
|--------------|------------------|
| <button class="btn-*"> | Button |
| <div class="glass-card"> | Card |
| <input type="text"> | Input |
| <select> | Select |
| Badge/chip | Badge |
2.4 Glassmorphismクラスのマッピング
- HTMLから抽出:
class="glass-card neon-glow-purple text-glow" - Reactへのマッピング:
className="glass-card neon-glow-purple text-glow" - 検証:
styles/glassmorphism.cssで承認されたクラスに対してチェック
ステップ 3: スキャフォールディング
スクリプトがテンプレートを使用して .tsx ファイルを生成:
./scripts/scaffold-component.sh \
--name "HintsPanel" \
--module "practice" \
--template "interactive-card" \
--props "title:string,hints:IHint[],onShowHint:(index:number)=>void"
出力: 以下の内容を含む modules/practice/components/HintsPanel.tsx:
- ✅ TypeScriptインターフェース (Iプレフィックス)
- ✅ 適切なインポート (@shared/ui/*, glassmorphismクラス)
- ✅ HTML分析からのProps構造
- ✅ ロジックの場所を示すTODOコメント
- ✅ Glassmorphismクラスの適用
ステップ 4: 実装
SKILL.mdがリマインド:
- ファイルの場所:
modules/practice/components/HintsPanel.tsx - 品質基準: ≤180行、複雑度 <15、Iプレフィックス
- スキャフォールディングされたファイル内のTODO項目は、ロジックを追加する場所を示します
ユーザーが記述: ビジネスロジック、イベントハンドラー、状態管理
ステップ 5: 検証
./scripts/validate.sh modules/practice/components/HintsPanel.tsx
チェック:
- ✅ ファイルサイズ ≤180行
- ✅ 関数ごとの複雑度 ≤15
- ✅ インターフェースの命名 (Iプレフィックス)
- ✅ Glassmorphismクラスの有効性
- ✅ インポートパターン (@shared, @modules, @lib)
- ✅
any型がないこと
出力: 合格/不合格 + 修正の提案
テンプレートの種類
コンポーネントに適したテンプレートを選択してください:
| テンプレート | 使用目的 | 含まれるもの |
|---|---|---|
interactive-card |
ボタン、フォーム、ユーザーアクション | Card, Button, Input, イベントハンドラー |
display-card |
読み取り専用コンテンツ、統計 | Card, Typography, バッジ |
layout-section |
ページセクション、コンテナ | レイアウトラッパー、グリッド/フレックスパターン |
一般的なパターン
パターン 1: Glassmorphismを持つボタン
HTML: <button class="btn-glass">Action</button>
React: <Button className="btn-glass" onClick={handleAction}>Action</Button>
パターン 2: Glass Cardコンテナ
HTML: <div class="glass-card neon-glow">Content</div>
React: <Card className="glass-card neon-glow"><CardContent>Content</CardContent></Card>
パターン 3: グラデーションテキスト
HTML: <h1 class="gradient-text">Title</h1>
React: <h1 className="gradient-text">Title</h1>
参照をロードするタイミング
SKILL.mdは以下について自己完結型です:
- 5ステップワークフローの実行
- 一般的なコンポーネントのマッピング
- 基本的なglassmorphismクラス
必要に応じて参照をロード:
| 必要 | ロード |
|---|---|
| Glassmorphismクラスの完全なリスト | references/glassmorphism-mapping.md |
| shadcnコンポーネントの決定ガイド | references/shadcn-component-guide.md |
| 複雑なレイアウトパターン | references/common-patterns.md |
| 完全に動作する例 | examples/hints-panel-complete/ |
トラブルシューティング
スクリプトが見つからない: プロジェクトのルート (frontend/) にいることを確認してください
無効なglassmorphismクラス: styles/glassmorphism.css で承認されたクラスを確認してください
検証に失敗する: quality-reviewer を実行して、詳細なエラーを確認してください
バージョン: 1.0.0 | 更新日: 2025年10月 パターン: module-scaffolderの最適化構造に従います
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Design to Production
Guided workflow for converting HTML prototypes to production React components.
TL;DR: Provide HTML file path → analyze → map components → scaffold → implement → validate
Auto-Triggers
Auto-triggered by keywords:
- "implement design", "prototype to production", "convert HTML"
- "glassmorphism component", "design prototype", "HTML to React"
Quick Commands
# Step 1: Analyze HTML prototype
./.claude/skills/design-to-production/scripts/extract-structure.sh <html-file-path>
# Step 3: Scaffold component (after interactive mapping)
./.claude/skills/design-to-production/scripts/scaffold-component.sh \
--name "ComponentName" \
--module "practice" \
--template "interactive-card"
# Step 5: Validate implementation
./.claude/skills/design-to-production/scripts/validate.sh <component-path>
5-Step Workflow
Example: Implementing glassmorphism_hints_panel_1.html
1. ANALYZE → Extract structure from HTML
2. MAP → Choose shadcn components + glassmorphism classes
3. SCAFFOLD → Generate .tsx file with boilerplate
4. IMPLEMENT → Write component logic (guided by TODOs)
5. VALIDATE → Check quality standards
Step 1: ANALYZE
User provides: HTML file path (e.g., .superdesign/design_iterations/glassmorphism_hints_panel_1.html)
Script runs:
./scripts/extract-structure.sh .superdesign/design_iterations/glassmorphism_hints_panel_1.html
Output: hints-panel-structure.json with:
- Component hierarchy
- CSS classes (glassmorphism utilities)
- Interactive elements (buttons, forms, inputs)
- Layout patterns (grid, flex, vertical-stack)
SKILL.md presents: Summary of detected structure
Step 2: MAP (Interactive)
SKILL.md guides you through 4 decisions:
2.1 Component Identification
- Question: "What should we call this component?"
- Suggested: Extracted from HTML filename or title
- Example:
HintsPanel
2.2 Module Placement
- Question: "Which module does this belong to?"
- Options: practice, assessment, results, profile, questions, home
- Example:
practice
2.3 shadcn/ui Component Mapping
For each interactive element:
- Detected:
<button class="btn-glass">Show Hint</button> - Suggestion: Use
Buttonfrom@shared/ui/button - Confirm: User approves or overrides
Common mappings:
| HTML Element | shadcn Component |
|--------------|------------------|
| <button class="btn-*"> | Button |
| <div class="glass-card"> | Card |
| <input type="text"> | Input |
| <select> | Select |
| Badge/chip | Badge |
2.4 Glassmorphism Class Mapping
- Extracted from HTML:
class="glass-card neon-glow-purple text-glow" - Maps to React:
className="glass-card neon-glow-purple text-glow" - Validation: Checks against approved classes in
styles/glassmorphism.css
Step 3: SCAFFOLD
Script generates .tsx file using template:
./scripts/scaffold-component.sh \
--name "HintsPanel" \
--module "practice" \
--template "interactive-card" \
--props "title:string,hints:IHint[],onShowHint:(index:number)=>void"
Output: modules/practice/components/HintsPanel.tsx with:
- ✅ TypeScript interface (I prefix)
- ✅ Proper imports (@shared/ui/*, glassmorphism classes)
- ✅ Props structure from HTML analysis
- ✅ TODO comments marking logic locations
- ✅ Glassmorphism classes applied
Step 4: IMPLEMENT
SKILL.md reminds:
- File location:
modules/practice/components/HintsPanel.tsx - Quality standards: ≤180 lines, complexity <15, I prefix
- TODO items in scaffolded file mark where to add logic
User writes: Business logic, event handlers, state management
Step 5: VALIDATE
./scripts/validate.sh modules/practice/components/HintsPanel.tsx
Checks:
- ✅ File size ≤180 lines
- ✅ Complexity ≤15 per function
- ✅ Interface naming (I prefix)
- ✅ Glassmorphism class validity
- ✅ Import patterns (@shared, @modules, @lib)
- ✅ No
anytypes
Output: Pass/fail + suggestions for fixes
Template Types
Choose the right template for your component:
| Template | Use For | Includes |
|---|---|---|
interactive-card |
Buttons, forms, user actions | Card, Button, Input, event handlers |
display-card |
Read-only content, stats | Card, Typography, badges |
layout-section |
Page sections, containers | Layout wrapper, grid/flex patterns |
Common Patterns
Pattern 1: Button with Glassmorphism
HTML: <button class="btn-glass">Action</button>
React: <Button className="btn-glass" onClick={handleAction}>Action</Button>
Pattern 2: Glass Card Container
HTML: <div class="glass-card neon-glow">Content</div>
React: <Card className="glass-card neon-glow"><CardContent>Content</CardContent></Card>
Pattern 3: Gradient Text
HTML: <h1 class="gradient-text">Title</h1>
React: <h1 className="gradient-text">Title</h1>
When to Load References
SKILL.md is self-sufficient for:
- Running the 5-step workflow
- Common component mappings
- Basic glassmorphism classes
Load references when needed:
| Need | Load |
|---|---|
| Full glassmorphism class list | references/glassmorphism-mapping.md |
| shadcn component decision guide | references/shadcn-component-guide.md |
| Complex layout patterns | references/common-patterns.md |
| Complete worked example | examples/hints-panel-complete/ |
Troubleshooting
Script not found: Ensure you're in project root (frontend/)
Invalid glassmorphism class: Check styles/glassmorphism.css for approved classes
Validation fails: Run quality-reviewer to see detailed errors
Version: 1.0.0 | Updated: October 2025 Pattern: Follows module-scaffolder optimization structure
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (6,218 bytes)
- 📎 README.md (7,563 bytes)
- 📎 references/common-patterns.md (11,039 bytes)
- 📎 references/glassmorphism-mapping.md (4,432 bytes)
- 📎 references/shadcn-component-guide.md (7,673 bytes)
- 📎 scripts/extract-structure.sh (2,999 bytes)
- 📎 scripts/scaffold-component.sh (2,946 bytes)
- 📎 scripts/validate.sh (3,485 bytes)