artifacts-builder

Bundle React and TypeScript projects into a single HTML artifact.

1|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/HanLi0705/lead_agent --skill artifacts-builder-hanli0705
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: artifacts-builder
Source: https://github.com/HanLi0705/lead_agent/tree/main/Mini-Agent-main/mini_agent/skills/artifacts-builder
Command: npx skills add https://github.com/HanLi0705/lead_agent --skill artifacts-builder-hanli0705

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables turning a multi-file React-based artifact into a single, self-contained HTML artifact that can be shared directly in Claude conversations or with stakeholders, eliminating the burden of managing multiple files during demos or reviews.

Core Features & Use Cases

  • Bundles a React + TypeScript project (Vite) into a single HTML artifact by inlining all assets with html-inline.
  • Supports Tailwind CSS and shadcn/ui components, path aliases, and a ready-to-run development workflow.
  • Use Case: A design team creates an interactive UI prototype and shares bundle.html in Claude for quick demonstration without a live server.

Quick Start

  • Initialize a new project: bash scripts/init-artifact.sh <project-name> and cd <project-name>.
  • Develop your artifact by editing the generated files.
  • Bundle to a single HTML: bash scripts/bundle-artifact.sh.
  • Share the artifact by using bundle.html in Claude conversations or with stakeholders.

Frequently Asked Questions about 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?

To bundle a React project into a single HTML file, run the bundle-artifact.sh script. It uses Parcel to compile the React and TypeScript project and html-inline to produce a self-contained bundle.html for sharing.

Can I use Tailwind CSS and shadcn/ui when bundling React artifacts?

Yes, you can use Tailwind CSS and shadcn/ui components when bundling React artifacts. The Skill supports these libraries alongside path aliases, ensuring your styled UI prototype is preserved in the final single HTML file.

Do I need Vite and Parcel to build a single-file React artifact?

You need Vite for local development and Parcel for bundling to build a single-file React artifact. Vite runs the dev workflow, while Parcel handles the compilation and inlining step to generate the portable HTML file.

What's the best way to share a multi-file React prototype in Claude?

The best way to share a multi-file React prototype in Claude is to inline all assets into one file. This Skill converts your project into a self-contained bundle.html, eliminating the need to manage multiple files during demos.

Why does my React artifact need inlining before sharing?

React artifact inlining is needed to embed all JavaScript and CSS assets directly into the HTML. This ensures the single bundle.html file remains portable and viewable without requiring a live server or external file dependencies.

Are there limitations when packaging a front-end prototype into one HTML file?

A limitation when packaging a front-end prototype into one HTML file is that it requires a React and TypeScript project structure. Projects relying on backend services or runtime environment variables will not function as a fully self-contained static artifact.