i18n/zh-TW/web-artifacts-builder/SKILL.md
使用現代前端 Web 技術(React、Tailwind CSS、shadcn/ui)建立精緻的多元件 claude.ai HTML 產出物的工具套件。用於需要狀態管理、路由或 shadcn/ui 元件的複雜產出物 — 不適用於簡單的單檔 HTML/JSX 產出物。
npx skillsauth add tai-ch0802/skills-bundle web-artifacts-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
要建構強大的前端 claude.ai 產出物,請依照以下步驟:
scripts/init-artifact.sh 初始化前端專案scripts/bundle-artifact.sh 將所有程式碼打包為單一 HTML 檔案技術堆疊:React 18 + TypeScript + Vite + Parcel(打包)+ Tailwind CSS + shadcn/ui
非常重要:為避免所謂的「AI 廉價感」,避免使用過多置中佈局、紫色漸層、統一的圓角和 Inter 字體。
執行初始化腳本以建立新的 React 專案:
bash scripts/init-artifact.sh <project-name>
cd <project-name>
這會建立一個完整配置的專案,包含:
@/)已配置要建構產出物,編輯生成的檔案。參見下方常見開發任務以獲得指引。
要將 React 應用程式打包為單一 HTML 產出物:
bash scripts/bundle-artifact.sh
這會建立 bundle.html — 一個自包含的產出物,所有 JavaScript、CSS 和相依套件皆已內嵌。此檔案可直接在 Claude 對話中作為產出物分享。
需求:你的專案必須在根目錄有 index.html。
腳本行為:
.parcelrc 配置,支援路徑別名最後,在對話中分享打包的 HTML 檔案,讓使用者可以作為產出物檢視。
注意:這是完全可選的步驟。僅在必要或被要求時執行。
要測試/視覺化產出物,使用可用工具(包括其他技能或內建工具如 Playwright 或 Puppeteer)。一般來說,避免事先測試產出物,因為這會增加請求到完成產出物之間的延遲。如果有需要或出現問題,在展示產出物後再測試。
development
Unified testing skill — TDD workflow, unit/integration patterns, E2E/Playwright strategies. Replaces tdd-workflow + testing-patterns + webapp-testing.
testing
Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.
development
Spec-Driven Development (SDD): A structured workflow (Requirement -> Analysis -> Implementation) enforcing explicit documentation before coding.
development
Methodologies for System Analysis (SA), focusing on technical architecture, data flow modeling, and API design.