web-artifacts-builder

Build Claude HTML artifacts with React, Tailwind, and shadcn/ui.

Updated Dec 9, 2025
One-click install
npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill web-artifacts-builder-h4v1d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/h4v1d/extension-collection-geminicli/tree/main/web-artifacts-builder
Command: npx skills add https://github.com/h4v1d/extension-collection-geminicli --skill web-artifacts-builder-h4v1d

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires parcel, parcel-resolver-tspaths, html-inline, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a streamlined approach to building Claude.ai HTML artifacts using a modern frontend stack (React, Tailwind, shadcn/ui), enabling complex, multi-component experiences inside Claude conversations.

Core Features & Use Cases

  • Component-based artifacts: Create interactive artifacts with routing and state management using React, Tailwind, and shadcn/ui.
  • Single-file sharing: Bundle artifacts into a self-contained HTML file suitable for Claude conversations.
  • Guided workflow: From project initialization to bundling and testing, workflows are designed for rapid iteration and demonstration.

Use cases include interactive dashboards, step-by-step guides, or demonstrations that require dynamic UI within Claude.

Quick Start

Run the provided scripts to scaffold a new artifact, then bundle it into a shareable HTML file:

  1. bash scripts/init-artifact.sh <project-name>
  2. cd <project-name>
  3. bash scripts/bundle-artifact.sh
  4. open bundle.html

Frequently Asked Questions about web-artifacts-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build React HTML artifacts for Claude conversations?

To build React HTML artifacts for Claude, use a modern frontend stack with React, Tailwind, and shadcn-ui, then bundle the project into a single self-contained HTML file. This enables complex, multi-component experiences within Claude conversations.

Can I use shadcn-ui and Tailwind in a single-file HTML artifact?

Yes, you can use shadcn-ui and Tailwind in a single-file HTML artifact by bundling the project with pnpm, parcel, and html-inline. The workflow produces a bundle.html file containing all necessary components and styles.

What is the best way to bundle multi-component React projects into one HTML file?

The best way to bundle multi-component React projects into one HTML file is using a parcel bundler combined with html-inline. Running the provided scaffold and bundle scripts compiles routing, state management, and UI components into a shareable bundle.html.

Does building Claude artifacts require a specific project structure?

Building Claude artifacts requires a root index.html file and a specific bundling workflow using pnpm and parcel. You initialize the project structure by running the provided initialization script before development.

When do I need a bundling workflow for Claude HTML artifacts?

You need a bundling workflow for Claude HTML artifacts when creating complex, interactive dashboards or step-by-step guides that require routing and state management. The bundling process compiles these dynamic React components into a shareable static file.

Why use parcel for bundling React artifacts instead of other bundlers?

Using parcel for bundling React artifacts provides a streamlined setup with zero-config compilation for Tailwind and shadcn-ui components. Combined with parcel-resolver-tspaths, it handles complex project paths and outputs an inline HTML file suitable for Claude.