🌐 React/Tailwindの複雑Webアプリ生成
React / Tailwind / shadcn/ui を使った複雑な claude.ai アーティファクト(対話的Webアプリ)を作るSkill。
📺 まず動画で見る(YouTube)
▶ 【Claude Code完全入門】誰でも使える/実行革命/ChatGPTとの違い/Skills活用法/経営者こそ使うべき ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
🇯🇵 日本人クリエイター向け解説
React / Tailwind / shadcn/ui を使った複雑な claude.ai アーティファクト(対話的Webアプリ)を作るSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 この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-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 5
💬 こう話しかけるだけ — サンプルプロンプト
- › React/Tailwindの複雑Webアプリ生成 を使って、最小構成のサンプルコードを示して
- › React/Tailwindの複雑Webアプリ生成 の主な使い方と注意点を教えて
- › React/Tailwindの複雑Webアプリ生成 を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] web-artifacts-builder
Web成果物ビルダー
強力なフロントエンドの claude.ai 成果物を構築するには、以下の手順に従ってください。
scripts/init-artifact.shを使用してフロントエンドリポジトリを初期化します。- 生成されたコードを編集して成果物を開発します。
scripts/bundle-artifact.shを使用して、すべてのコードを単一の HTML ファイルにバンドルします。- 成果物をユーザーに表示します。
- (オプション) 成果物をテストします。
スタック: React 18 + TypeScript + Vite + Parcel (バンドル) + Tailwind CSS + shadcn/ui
デザインとスタイルガイドライン
非常に重要: 「AI slop」と呼ばれるものを避けるため、過度な中央揃えのレイアウト、紫色のグラデーション、均一な角丸、および Inter フォントの使用は避けてください。
クイックスタート
ステップ 1: プロジェクトの初期化
初期化スクリプトを実行して、新しい React プロジェクトを作成します。
bash scripts/init-artifact.sh <project-name>
cd <project-name>
これにより、完全に設定されたプロジェクトが作成され、以下のものが含まれます。
- ✅ React + TypeScript (Vite 経由)
- ✅ shadcn/ui テーマシステムを備えた Tailwind CSS 3.4.1
- ✅ パスエイリアス (
@/) が設定済み - ✅ 40 以上の shadcn/ui コンポーネントがプリインストール済み
- ✅ すべての Radix UI 依存関係が含まれています
- ✅ バンドル用に Parcel が設定済み (.parcelrc 経由)
- ✅ Node 18+ 互換性 (Vite バージョンを自動検出して固定します)
ステップ 2: 成果物の開発
成果物を構築するには、生成されたファイルを編集します。ガイダンスについては、以下の「一般的な開発タスク」を参照してください。
ステップ 3: 単一の HTML ファイルへのバンドル
React アプリを単一の HTML 成果物にバンドルするには、次のようにします。
bash scripts/bundle-artifact.sh
これにより、bundle.html が作成されます。これは、すべての JavaScript、CSS、および依存関係がインライン化された自己完結型の成果物です。このファイルは、Claude の会話で成果物として直接共有できます。
要件: プロジェクトのルートディレクトリに index.html が必要です。
スクリプトの機能:
- バンドル依存関係 (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline) をインストールします。
- パスエイリアスをサポートする
.parcelrc設定を作成します。 - Parcel でビルドします (ソースマップなし)。
- html-inline を使用して、すべての資産を単一の HTML にインライン化します。
ステップ 4: 成果物をユーザーと共有する
最後に、バンドルされた HTML ファイルをユーザーとの会話で共有し、ユーザーがそれを成果物として表示できるようにします。
ステップ 5: 成果物のテスト/視覚化 (オプション)
注: これは完全にオプションのステップです。必要な場合、または要求された場合にのみ実行してください。
成果物をテスト/視覚化するには、利用可能なツール (他のスキルや Playwright や Puppeteer などの組み込みツールを含む) を使用します。一般に、成果物のテストを事前に避けることで、リクエストから完成した成果物が見られるまでの遅延を減らすことができます。要求された場合、または問題が発生した場合に、成果物を提示した後にテストしてください。
参照
- shadcn/ui コンポーネント: https://ui.shadcn.com/docs/components
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Web Artifacts Builder
To build powerful frontend claude.ai artifacts, follow these steps:
- Initialize the frontend repo using
scripts/init-artifact.sh - Develop your artifact by editing the generated code
- Bundle all code into a single HTML file using
scripts/bundle-artifact.sh - Display artifact to user
- (Optional) Test the artifact
Stack: React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn/ui
Design & Style Guidelines
VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid using excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.
Quick Start
Step 1: Initialize Project
Run the initialization script to create a new React project:
bash scripts/init-artifact.sh <project-name>
cd <project-name>
This creates a fully configured project with:
- ✅ React + TypeScript (via Vite)
- ✅ Tailwind CSS 3.4.1 with shadcn/ui theming system
- ✅ Path aliases (
@/) configured - ✅ 40+ shadcn/ui components pre-installed
- ✅ All Radix UI dependencies included
- ✅ Parcel configured for bundling (via .parcelrc)
- ✅ Node 18+ compatibility (auto-detects and pins Vite version)
Step 2: Develop Your Artifact
To build the artifact, edit the generated files. See Common Development Tasks below for guidance.
Step 3: Bundle to Single HTML File
To bundle the React app into a single HTML artifact:
bash scripts/bundle-artifact.sh
This creates bundle.html - a self-contained artifact with all JavaScript, CSS, and dependencies inlined. This file can be directly shared in Claude conversations as an artifact.
Requirements: Your project must have an index.html in the root directory.
What the script does:
- Installs bundling dependencies (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline)
- Creates
.parcelrcconfig with path alias support - Builds with Parcel (no source maps)
- Inlines all assets into single HTML using html-inline
Step 4: Share Artifact with User
Finally, share the bundled HTML file in conversation with the user so they can view it as an artifact.
Step 5: Testing/Visualizing the Artifact (Optional)
Note: This is a completely optional step. Only perform if necessary or requested.
To test/visualize the artifact, use available tools (including other Skills or built-in tools like Playwright or Puppeteer). In general, avoid testing the artifact upfront as it adds latency between the request and when the finished artifact can be seen. Test later, after presenting the artifact, if requested or if issues arise.
Reference
- shadcn/ui components: https://ui.shadcn.com/docs/components
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (3,087 bytes)
- 📎 LICENSE.txt (11,345 bytes)
- 📎 scripts/bundle-artifact.sh (1,517 bytes)
- 📎 scripts/init-artifact.sh (9,924 bytes)
- 📎 scripts/shadcn-components.tar.gz (19,967 bytes)