web-artifacts-builder

Bundle a React and Tailwind project into a single self-contained HTML file.

1|Updated May 17, 2026
One-click install
npx skills add https://github.com/mykcs/myk-skills --skill web-artifacts-builder-mykcs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/mykcs/myk-skills/tree/main/web-artifacts-builder
Command: npx skills add https://github.com/mykcs/myk-skills --skill web-artifacts-builder-mykcs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline, tar, and includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of turning a multi-file React + Tailwind UI project into a single self-contained HTML artifact that can be pasted into Claude conversations without missing assets or setup friction.

Core Features & Use Cases

  • Single-file HTML bundling: Produces a shareable bundle.html by installing bundling dependencies, building with Parcel, and inlining all assets into one HTML file.
  • Modern UI starter generation: Bootstraps a React + TypeScript + Vite project configured for Tailwind CSS and shadcn/ui so you can focus on UI instead of configuration.
  • Style safeguards for artifact quality: Encourages avoiding common “AI slop” layout and typography patterns to keep the output visually coherent.

Quick Start

Run the skill to bundle your React artifact by initializing the project with scripts/init-artifact.sh, building and inlining with scripts/bundle-artifact.sh, then sharing the generated 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 bundle a React project into a single HTML file for Claude?

You can bundle a React + Tailwind project into a single HTML file by running initialization and bundling scripts that use Parcel to build the project and html-inline to inline all assets into one self-contained bundle.html.

How does inlining assets into an HTML artifact work?

Inlining assets works by using Parcel to compile the React and Tailwind project, then html-inline to embed all JavaScript and CSS directly into the HTML file, eliminating missing asset links when sharing.

Can I use shadcn/ui components when creating an HTML artifact?

Yes, you can use shadcn/ui components. The Skill bootstraps a React + TypeScript project configured specifically for Tailwind CSS and shadcn/ui, ensuring your components compile correctly into the final bundled HTML artifact.

What is the best way to share a React UI prototype in a Claude conversation?

The best way to share a React UI prototype in a Claude conversation is to bundle it into a single self-contained HTML artifact, inlining all CSS and JavaScript so the UI renders directly without missing assets.

Do I need Node 18 to generate a self-contained HTML bundle?

Yes, you need Node 18 or higher to generate a self-contained HTML bundle. The bundling process relies on pnpm and Parcel to compile the React project, requiring a modern Node environment to execute the initialization and build scripts.

Why does my bundled React artifact have missing assets?

A bundled React artifact has missing assets when external CSS or JavaScript files are not inlined. This Skill solves that by using html-inline after building with Parcel, embedding all assets directly into a single bundle.html file.