Artifacts Builder

composiohq/awesome-claude-skills/artifacts-builder

作者 composiohqbe2a406907dbComplete terms in LICENSE.txt81K 個星標收錄於 2026年11月20日更新於 2026年11月20日儲存庫2 個月前更新

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.

包含腳本軟體開發
AI 產生的概覽

建立、開發並打包多組件 React 成品,輸出單一自包含 HTML 檔案,供 claude.ai 使用。

功能
初始化一個 React 18 + TypeScript + Vite 專案,內建 Tailwind CSS、shadcn/ui 主題系統以及 40 多個預先安裝的元件,並引導在產生的程式碼上進行開發。打包腳本使用 Parcel 與 html-inline,將所有 JavaScript、CSS 與相依套件內嵌,產生 bundle.html。此外也提供設計風格建議,以及可選的成品測試步驟。
適用情境
適用於需要狀態管理、路由或 shadcn/ui 元件的複雜 claude.ai HTML 成品。不適用於簡單的單一檔案 HTML 或 JSX 成品。
執行需求
需要 Node 18+、npm 以及安裝相依套件所需的網路存取;附帶兩個 bash 腳本(init-artifact.sh、bundle-artifact.sh)與一個 shadcn 元件壓縮檔。打包前專案根目錄需有 index.html。

AI 概覽如何產生和驗證

Artifacts Builder

To build powerful frontend claude.ai artifacts, follow these steps:

  1. Initialize the frontend repo using scripts/init-artifact.sh
  2. Develop your artifact by editing the generated code
  3. Bundle all code into a single HTML file using scripts/bundle-artifact.sh
  4. Display artifact to user
  5. (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 .parcelrc config 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

來源與署名

來源:composiohq/awesome-claude-skills位於artifacts-builder提交be2a406

授權條款: Complete terms in LICENSE.txt

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

在 README 中新增徽章

向讀者展示該技能已收錄於 SourceWeft,徽章連結到本頁。

「Listed on SourceWeft」徽章預覽
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-composiohq-awesome-claude-skills-artifacts-builder.svg)](https://sourceweft.com/skills/gh-composiohq-awesome-claude-skills-artifacts-builder?utm_source=readme&utm_medium=badge)

檢舉或申請下架

更多來自 composiohq/awesome-claude-skills 的技能

Developer Growth Analysis

composiohq

分析近期的 Claude Code 聊天紀錄以找出編碼弱點,整理 HackerNews 學習資源,並把成長報告傳送到 Slack 私訊。

效率與工作流81K2 個月前更新

已新增到 1 個工作區

Webapp Testing

composiohq

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

包含腳本
待分類81K2 個月前更新

Slack Gif Creator

composiohq

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

包含腳本
待分類81K2 個月前更新

Mcp Builder

composiohq

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

包含腳本
待分類81K2 個月前更新

Connect

composiohq

Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub, Notion, and 1000+ services.

待分類81K2 個月前更新

Twitter Algorithm Optimizer

composiohq

依據 Twitter 開源排序演算法概念,分析並改寫推文以提升觸及與互動。

行銷與銷售81K2 個月前更新