web-artifacts-builder

Bundle React-based web artifacts into a single portable HTML file.

1.2k|101|Updated May 25, 2025
One-click install
npx skills add https://github.com/ZHangZHengEric/Sage --skill web-artifacts-builder-zhangzhengeric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-artifacts-builder
Source: https://github.com/ZHangZHengEric/Sage/tree/main/app/skills/web-artifacts-builder
Command: npx skills add https://github.com/ZHangZHengEric/Sage --skill web-artifacts-builder-zhangzhengeric

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pnpm, vite, tailwindcss, postcss, autoprefixer, @types/node, tailwindcss-animate, class-variance-authority, clsx, tailwind-merge, lucide-react, next-themes, @radix-ui/react-accordion, @radix-ui/react-aspect-ratio, @radix-ui/react-avatar, @radix-ui/react-checkbox, @radix-ui/react-collapsible, @radix-ui/react-context-menu, @radix-ui/react-dialog, @radix-ui/react-dropdown-menu, @radix-ui/react-hover-card, @radix-ui/react-label, @radix-ui/react-menubar, @radix-ui/react-navigation-menu, @radix-ui/react-popover, @radix-ui/react-progress, @radix-ui/react-radio-group, @radix-ui/react-scroll-area, @radix-ui/react-select, @radix-ui/react-separator, @radix-ui/react-slider, @radix-ui/react-slot, @radix-ui/react-switch, @radix-ui/react-tabs, @radix-ui/react-toast, @radix-ui/react-toggle, @radix-ui/react-toggle-group, @radix-ui/react-tooltip, 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?

Building Claude-compatible web artifacts can be time consuming and error-prone when bundling React apps into portable HTML. This Skill streamlines the process by automating initialization, project scaffolding, and bundling into a single offline HTML artifact.

Core Features & Use Cases

  • Initialize a Vite-based React + TypeScript project and tailor it for Claude artifact sharing.
  • Bundle all JavaScript, CSS, and dependencies into a single bundle.html file for easy distribution.
  • Quick-start workflow includes scaffolding, development, and bundling with zero-footprint sharing across desktop and web workflows.

Quick Start

Run the artifact builder to scaffold and bundle a React artifact into a single HTML file.

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 app into a single HTML file for Claude?

Bundle a React app into a single HTML file by initializing a Vite-based project and using the automated scaffolding workflow to compile JavaScript, CSS, and dependencies into one portable bundle.html artifact.

What is the best way to share a React and Tailwind CSS web artifact in a Claude conversation?

Sharing a React and Tailwind CSS web artifact in Claude requires bundling the project's dependencies and styles into a single offline HTML file, ensuring zero-footprint delivery directly within the chat conversation.

Can I use Radix UI and Tailwind CSS when building Claude-compatible artifacts?

Yes, you can use Radix UI and Tailwind CSS when building Claude-compatible artifacts, as the bundling process seamlessly compiles these dependencies and utility libraries into the final single HTML output.

Does Vite work with Parcel for bundling React artifacts into offline HTML?

Vite and Parcel are both supported bundling tools for compiling React artifacts into a single offline HTML file, allowing developers to choose their preferred workflow for desktop and web distribution.

What dependencies do I need to compile a React app into a portable HTML artifact?

Compiling a React app into a portable HTML artifact requires pnpm, vite, tailwindcss, postcss, autoprefixer, and various UI libraries like Radix UI and lucide-react to automate the end-to-end bundling process.

Why does my React artifact fail to bundle into a single HTML file?

Bundling a React artifact into a single HTML file fails if required tooling like pnpm, vite, or tailwindcss is missing, or if the project is not properly initialized for Claude-compatible artifact sharing.