New to Claude Skills? Learn how to install them →

anthropics on GitHub

Web Artifacts Builder

OfficialFree

Create complex HTML artifacts for Claude with ease.

by anthropics167.6k stars on anthropics/skills
3 views
Updated Aug 7, 2026
Get this skill

Free · Opens the source repo

What Web Artifacts Builder does

The Web Artifacts Builder is a suite of tools designed to facilitate the creation of sophisticated HTML artifacts specifically for use with claude.ai. By leveraging modern frontend technologies like React, Tailwind CSS, and shadcn/ui, this skill provides developers with a structured approach to building multi-component applications that can handle state management and routing. The process begins with initializing a project, allowing users to set up a fully configured environment tailored for their artifact development needs.

Once the project is initialized using the provided scripts, developers can easily edit the generated code to create their desired artifact. The skill supports a variety of features, including pre-installed shadcn/ui components and path aliases, which streamline the development process. After completing the development phase, users can bundle their application into a single HTML file, making it easy to share and present the artifact within Claude conversations.

This skill is particularly beneficial for developers looking to create intricate web applications without the hassle of manual configuration. It abstracts away much of the setup complexity, allowing users to focus on building and refining their artifacts. Additionally, the optional testing phase provides flexibility for those who want to ensure their artifacts function as intended before sharing them.

Overall, the Web Artifacts Builder is an essential tool for developers aiming to create advanced web artifacts that integrate seamlessly with claude.ai, providing a robust framework for modern web development.

When to use it

Use this skill when you need to develop multi-component web applications that require state management and routing.

When not to use it

This skill is not suitable for simple HTML or JSX artifacts that do not require complex configurations or multiple components.

What you can build with it

Creating a Multi-Component Web App

Use the Web Artifacts Builder to set up a complex web application that requires multiple components and state management.

Bundling for Easy Sharing

After developing your artifact, bundle it into a single HTML file for easy sharing within Claude conversations.

Leveraging Pre-Installed Components

Take advantage of the 40+ pre-installed shadcn/ui components to speed up your development process.

How to install Web Artifacts Builder

View source

1. Install with the skills CLI

npx skills add anthropics/skills/web-artifacts-builder --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by anthropics

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

Frequently asked questions about Web Artifacts Builder

Similar skills