web-artifacts-builder

Bundle React frontend projects into a single HTML artifact with Tailwind and shadcn/ui.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/chadananda/xswarm-tdd-claude --skill web-artifacts-builder-chadananda
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/chadananda/xswarm-tdd-claude/tree/main/skills/web-artifacts-builder
Command: npx skills add https://github.com/chadananda/xswarm-tdd-claude --skill web-artifacts-builder-chadananda

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, parcel, html-inline, tar, vite, tailwindcss, postcss, autoprefixer, tailwindcss-animate, class-variance-authority, clsx, tailwind-merge, lucide-react, next-themes, sonner, cmdk, vaul, embla-carousel-react, react-day-picker, react-resizable-panels, date-fns, react-hook-form, @hookform/resolvers, zod, and includes scripts (resource) components.

What problem does it solve?

This Skill bundles complex frontend Claude artifacts into a single, self-contained HTML artifact, enabling easy sharing in Claude conversations without requiring external hosting or dependencies.

Core Features & Use Cases

  • Initialize a React + Tailwind + shadcn/ui project and bundle into a single HTML artifact (bundle.html).
  • Inline all assets and dependencies for portability, producing a self-contained artifact suitable for Claude chats.
  • Use Case: Create a feature-rich Claude UI artifact that can be opened directly in conversation for demonstration and testing.

Quick Start

  1. Initialize a new artifact project: bash scripts/init-artifact.sh <project-name>
  2. Build and bundle into a single HTML: bash scripts/bundle-artifact.sh

Frequently Asked Questions about web-artifacts-builder

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

FAQPage Schema
How do I bundle a React project into a single HTML file for Claude?

It initializes a React and Tailwind project with shadcn/ui, then uses Parcel to build the application and html-inline to embed all assets into a self-contained bundle.html file.

What is a single-file HTML artifact and when do I need it?

A single-file HTML artifact inlines all JavaScript and CSS into one document. You need it when sharing feature-rich React UIs directly within Claude conversations without requiring external hosting or dependencies.

Can I use Tailwind and shadcn/ui when building Claude artifacts?

Yes, the Skill initializes projects with TailwindCSS and shadcn/ui dependencies like cmdk, vaul, and sonner, allowing you to build complex, styled UI components before bundling them into an artifact.

Do I need pnpm installed to build single-file HTML artifacts?

Yes, pnpm is required. The bundling workflow relies on pnpm to install Node.js dependencies like Parcel, Vite, and Tailwind before executing the scripts to produce the bundled HTML output.

What's the best way to share a React frontend in a Claude chat?

The best way is to compile the React project into a self-contained bundle.html. This Skill uses Parcel and html-inline to embed all dependencies, producing a portable file that opens directly in chat.

Why does my bundled React artifact require an index.html at the project root?

An index.html at the project root is required because Parcel uses it as the entry point. The build scripts depend on this file to resolve modules and compile the React application into a single file.