技能 artifacts-builder
📦

artifacts-builder

低風險 ⚡ 包含腳本⚙️ 外部命令📁 檔案系統存取🌐 網路存取

使用 React 和 shadcn/ui 建構複雜的 HTML 工件

也可從以下取得: Cam10001110101,DYAI2025,davila7,ComposioHQ

為 Claude 對話建立精緻的 HTML 工件需要複雜的工具鏈。此技能提供完整的開發工作流程,透過 React、Vite 與 shadcn/ui 元件來建置、打包並分享專業級工件。

支援: Claude Codex Code(CC)
📊 71 充足
1

下載技能 ZIP

2

在 Claude 中上傳

前往 設定 → 功能 → 技能 → 上傳技能

3

開啟並開始使用

測試它

正在使用「artifacts-builder」。 Create a new project called 'calculator' with React and shadcn/ui

預期結果:

  • Initialized React + Vite project: calculator
  • Installed Tailwind CSS 3.4.1 with shadcn/ui theming
  • Configured path aliases (@/) in tsconfig.json
  • Installed 40+ shadcn/ui components
  • Setup complete! Run: cd calculator && pnpm dev

正在使用「artifacts-builder」。 Bundle the current React app into a single HTML file

預期結果:

  • Installing bundling dependencies: parcel, html-inline
  • Building with Parcel (no source maps)
  • Inlining all assets into single HTML file
  • Bundle complete! Output: bundle.html (1.2MB)
  • Ready to share as a Claude artifact

安全審計

低風險
v5 • 1/16/2026

Standard development tooling for building React-based artifacts. All static findings are false positives: LICENSE.txt was misidentified (license URLs flagged as 'network', legal text as 'weak crypto'), CSS hsl() colors flagged as 'weak crypto', and documentation text flagged as 'system reconnaissance'. The scripts perform legitimate project initialization, dependency installation from npmjs.com, and file modifications for project configuration. No data exfiltration, no malicious behavior, and all capabilities align with the stated purpose.

5
已掃描檔案
941
分析行數
4
發現項
5
審計總數
審計者: claude 查看審計歷史 →

品質評分

45
架構
100
可維護性
85
內容
30
社群
90
安全
91
規範符合性

你能建構什麼

專業 UI 元件

使用 React 狀態管理與 shadcn/ui 元件建立互動式儀表板與資料視覺化

複雜工件示範

建立具路由、表單與精緻 UI 的多頁工件,用於展示 AI 能力

互動式文件

開發具導覽、摺疊面板與動態內容展示的文件網站

試試這些提示

建立基本專案
Use the artifacts-builder skill to create a new project called 'my-dashboard' with React, TypeScript, and shadcn/ui components
打包 React 應用
Use artifacts-builder to bundle the current React app into a single HTML file called 'bundle.html'
建置完整工件
Initialize a new artifact project named 'data-explorer', then create a dashboard with cards, charts, and interactive tables using shadcn/ui components, and bundle it for Claude
最佳化分享
Use artifacts-builder to build the React project in the current directory and output a self-contained HTML artifact

最佳實務

  • 以具描述性的名稱初始化專案,清楚表達工件用途
  • 使用 shadcn/ui 元件以維持視覺一致性
  • 在開發完成後再打包工件,以降低延遲
  • 在分享到對話前先於瀏覽器測試工件

避免

  • 避免過度置中版面與紫色漸層(AI slop)
  • 不要使用 Inter 字體搭配預設樣式
  • 避免所有元素統一使用圓角
  • 不要將未完成的工件連同開發相依性一起打包

常見問題

哪些 AI 平台支援這些工件?
工件可在 Claude、Codex 與 Claude Code 使用,並在對話中以互動式 HTML 顯示。
工件的大小限制是什麼?
單一 HTML 檔案建議維持在 2MB 以下以獲得最佳載入效果。複雜應用可能需要程式碼分割。
我可以用在現有的 React 專案嗎?
可以。在現有 Vite 專案中執行 init-artifact.sh 以加入 shadcn/ui 支援與設定。
建置工件時我的資料安全嗎?
是的。所有處理都在本機完成,相依性從 npmjs.com 安裝,不會有任何資料離開你的機器。
為什麼我的工件沒有正確顯示?
請確認專案根目錄存在 index.html。從專案目錄執行 bundle-artifact.sh。檢查瀏覽器主控台。
這與簡單的 HTML 工件有何不同?
此技能處理具狀態、路由與多元元件的複雜 React 應用;簡單工件僅使用基本 HTML/JSX。

開發者詳情

作者

ArtemisAI

授權

Complete terms in LICENSE.txt

引用

main