Artifacts Builder

bởi Anthropic

Bộ công cụ để tạo các tạo phẩm HTML claude.ai phức tạp, đa thành phần sử dụng công nghệ web frontend hiện đại (React, Tailwind CSS, shadcn/ui). Sử dụng cho các tạo phẩm phức tạp yêu cầu quản lý trạng thái, định tuyến hoặc các thành phần shadcn/ui - không dùng cho các tạo phẩm HTML/JSX đơn giản một tệp. giấy phép: Điều khoản đầy đủ trong LICENSE.txt

npx skills add https://github.com/anthropics/skills --skill web-artifacts-builder

Web 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

Thêm skills từ Anthropic

Algorithmic Art
Anthropic
Tạo nghệ thuật thuật toán bằng p5.js với tính ngẫu nhiên có hạt giống và khám phá tham số tương tác. Sử dụng khi người dùng yêu cầu tạo nghệ thuật bằng mã, nghệ thuật sinh, nghệ thuật thuật toán, trường dòng chảy hoặc hệ thống hạt. Tạo nghệ thuật thuật toán gốc thay vì sao chép tác phẩm của nghệ sĩ hiện có để tránh vi phạm bản quyền. giấy phép: Điều khoản đầy đủ trong LICENSE.txt
creativeofficial
Brand Guidelines
Anthropic
Áp dụng màu sắc thương hiệu chính thức và kiểu chữ của Anthropic vào bất kỳ loại tạo phẩm nào có thể hưởng lợi từ việc có giao diện và cảm nhận của Anthropic. Sử dụng khi áp dụng màu sắc thương hiệu hoặc hướng dẫn phong cách, định dạng trực quan hoặc tiêu chuẩn thiết kế công ty. giấy phép: Điều khoản đầy đủ trong LICENSE.txt
creativeofficial
Canvas Design
Anthropic
Tạo tác phẩm nghệ thuật thị giác đẹp mắt dưới dạng tài liệu .png và .pdf bằng triết lý thiết kế. Bạn nên sử dụng kỹ năng này khi người dùng yêu cầu tạo poster, tác phẩm nghệ thuật, thiết kế hoặc các tác phẩm tĩnh khác. Tạo các thiết kế thị giác nguyên bản, không bao giờ sao chép tác phẩm của nghệ sĩ hiện có để tránh vi phạm bản quyền. giấy phép: Điều khoản đầy đủ trong LICENSE.txt
creativeofficial
Docx
Anthropic
Tạo, chỉnh sửa và phân tích tài liệu toàn diện với hỗ trợ theo dõi thay đổi, nhận xét, bảo toàn định dạng và trích xuất văn bản. Khi Claude cần làm việc với tài liệu chuyên nghiệp (tệp .docx) để: (1) Tạo tài liệu mới, (2) Sửa đổi hoặc chỉnh sửa nội dung, (3) Làm việc với các thay đổi đã theo dõi, (4) Thêm nhận xét, hoặc bất kỳ tác vụ tài liệu nào khác giấy phép: Độc quyền. Tệp LICENSE.txt có đầy đủ điều khoản
documentofficial
Frontend Design
Anthropic
Tạo ra các giao diện frontend độc đáo, đạt chuẩn sản xuất, tránh phong cách AI chung chung.
developmentfeaturedofficial
Internal Comms
Anthropic
Một bộ tài nguyên giúp tôi viết tất cả các loại truyền thông nội bộ, sử dụng các định dạng mà công ty tôi ưa thích. Claude nên sử dụng kỹ năng này bất cứ khi nào được yêu cầu viết một số loại truyền thông nội bộ (báo cáo trạng thái, cập nhật lãnh đạo, cập nhật 3P, bản tin công ty, Câu hỏi thường gặp, báo cáo sự cố, cập nhật dự án, v.v.). giấy phép: Điều khoản đầy đủ trong LICENSE.txt
official
MCP Builder
Anthropic
Hướng dẫn tạo máy chủ MCP (Model Context Protocol) chất lượng cao, cho phép LLM tương tác với các dịch vụ bên ngoài thông qua các công cụ được thiết kế tốt. Sử dụng khi xây dựng máy chủ MCP để tích hợp API hoặc dịch vụ bên ngoài, dù bằng Python (FastMCP) hay Node/TypeScript (MCP SDK). giấy phép: Điều khoản đầy đủ trong LICENSE.txt
developmentofficial
PDF
Anthropic
Bộ công cụ thao tác PDF toàn diện để trích xuất văn bản và bảng biểu, tạo PDF mới, hợp nhất/tách tài liệu và xử lý biểu mẫu. Khi Claude cần điền vào biểu mẫu PDF hoặc xử lý, tạo, phân tích tài liệu PDF theo chương trình với quy mô lớn. giấy phép: Độc quyền. LICENSE.txt có các điều khoản đầy đủ
documentofficial