web-artifacts-builder Skill: React Artifacts for Claude
Anthropic's web-artifacts-builder skill has Claude build multi-component React, Tailwind and shadcn/ui apps, then bundle them into one HTML artifact. Usage.
By Claudekit Team Published 1 min read
- Category
- Development
- Source
- github.com
- Repository
- github.com
- GitHub stars
- 183,346
- License
- Apache-2.0
Install
/plugin install example-skills@anthropic-agent-skillsweb-artifacts-builder is one of Anthropic’s example skills. It turns Claude from a writer of single-file demos into a builder of elaborate, multi-component web artifacts using a modern frontend stack: React 18, TypeScript, Vite, Tailwind CSS and shadcn/ui, bundled with Parcel into one HTML file.
What it does
The skill gives Claude a repeatable four-step workflow:
- Initialize a project with
scripts/init-artifact.sh <project-name>, which sets up React, TypeScript, Tailwind 3.4, path aliases and 40+ preinstalled shadcn/ui components. - Develop the artifact by editing the generated code.
- Bundle everything with
scripts/bundle-artifact.shinto a singlebundle.html. - Share the artifact, optionally testing it first.
It also carries design guidance: avoid “AI slop” patterns such as excessive centered layouts, purple gradients, uniform rounded corners and the Inter font.
Install
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skills
The example-skills plugin also includes canvas-design, theme-factory, algorithmic-art and others. On paid Claude.ai plans, Anthropic’s example skills are already available.
Example prompts
Build a habit-tracker artifact with tabs, a calendar view and local state
Create a pricing calculator with shadcn sliders and a summary card
Turn this CSV into an interactive dashboard artifact with filters
Tips and limits
- Overkill for small widgets; Claude should skip it for simple pages.
- The first run installs dependencies, so expect a slower start.
- Pair it with the frontend-design skill for stronger visual direction and webapp-testing to check behavior.
- Anthropic labels these skills as demonstrations; behavior in Claude’s own products may differ.
Related: theme-factory, skills guide.
Frequently asked questions
When should I not use web-artifacts-builder?
The skill itself says it is for complex artifacts needing state, routing or shadcn/ui components. Simple single-file HTML or JSX artifacts do not need it.
What does the bundle step produce?
A self-contained bundle.html with all JavaScript, CSS and dependencies inlined, ready to share as an artifact.
Does it need Node installed?
Yes. The init and bundle scripts use Vite and Parcel, with Node 18+ compatibility detected automatically.