Skip to content
SkillScript-led625 tokens in use

web-artifacts-builder

Anthropic's skill for complex claude.ai artifacts: scaffold a React, TypeScript, Tailwind and shadcn/ui project with one script, then bundle it into a single HTML file with another.

197,764 stars on the repositoryanthropics/skills · skills/web-artifacts-builder
/plugin install example-skills@anthropic-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing web-artifacts-builder costs

64tokens idle
625tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Script-led

Script-ledMixedModel-led

Most of this skill is scripts, so it behaves much the same whichever model runs it.

This describes the skill's structure, how much of it is scripts. It does not say how well it works. Scripts: scripts/bundle-artifact.sh, scripts/init-artifact.sh.

Touches

shelldetectednetworkdetectedwrites filesdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts and code blocks. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter11/15
  • Structure23/25
  • Examples9/15
  • Output5/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Good
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 28
  • Writes files−8

    does this on the machine, and the frontmatter does not say so

    scripts/bundle-artifact.sh, line 26
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    scripts/init-artifact.sh, line 36
  • File that was not read−15

    a file the skill ships that was not read, so what it does is unknown

    scripts/shadcn-components.tar.gz

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity72
  • Maintenance32
  • Community68
  • Maturity36
  • Momentum40

web-artifacts-builder is one of the example skills in Anthropic’s public skills repository. It is meant for elaborate, multi-component claude.ai HTML artifacts that need state management, routing or shadcn/ui components, and its own description says it is not for simple single-file HTML or JSX artifacts. Instead of writing one file by hand, Claude sets up a real frontend project, develops in it, and bundles the result.

The workflow is five steps: run scripts/init-artifact.sh to create a React 18 and TypeScript project with Vite, Tailwind CSS 3.4.1, the shadcn/ui theme, an @/ path alias and over 40 shadcn/ui components; edit the generated code; run scripts/bundle-artifact.sh to build it with Parcel and inline every script, style and dependency into one bundle.html; share that file as the artifact; and, only if needed or asked, test it afterwards. The skill also tells Claude to avoid the look often called “AI slop”: excessive centered layouts, purple gradients, uniform rounded corners and the Inter font.

What You Get

  • scripts/init-artifact.sh, which creates a React 18 + TypeScript + Vite project configured for Tailwind CSS 3.4.1, the shadcn/ui theming system and the @/ import alias
  • Over 40 shadcn/ui components, from accordion and dialog to table, tabs and tooltip, extracted from a bundled archive into the project’s src folder, with their Radix UI and supporting dependencies installed
  • A light and dark shadcn theme written as CSS variables, plus a components.json for reference
  • scripts/bundle-artifact.sh, which builds the app with Parcel without source maps and inlines every asset into one bundle.html
  • Node version handling: Node 18 or newer is required, and Vite is pinned to 5.4.11 on Node 18
  • A short style rule to avoid excessive centered layouts, purple gradients, uniform rounded corners and the Inter font

Common Use Cases

  • Building a multi-screen claude.ai artifact with routing or shared state that would be awkward as one hand-written file
  • Making an interactive dashboard or tool from shadcn/ui components such as tables, tabs, dialogs and forms
  • Prototyping a React UI with TypeScript and Tailwind, then delivering it as a single HTML file anyone can open
  • Packaging an existing small React app with an index.html at its root into one self-contained artifact

What Makes It Unique

Most of Anthropic’s design skills in this directory are guidance: frontend-design shapes how Claude thinks about palette, type and layout, and algorithmic-art writes one HTML page that loads p5.js from a CDN. web-artifacts-builder is tooling instead. Its two shell scripts do most of the work, standing up a full Vite, Tailwind and shadcn/ui project with dependencies installed locally, then compiling and inlining it so the finished artifact carries all of its code inside one file. It is aimed at the complex end of artifacts and says outright that simple single-file ones do not need it.

Under The Hood

The skill is a SKILL.md, two shell scripts, a gzipped archive and the license text. Claude runs the scripts in a shell, and their frontmatter does not mention this. init-artifact.sh checks the Node version, installs pnpm globally with npm if it is missing, and runs pnpm create vite with the react-ts template, so it downloads packages from the npm registry: Tailwind, PostCSS, Autoprefixer, about two dozen Radix UI packages, and libraries such as lucide-react, sonner, cmdk, react-hook-form and zod. It writes config files into the new project folder (postcss.config.js, tailwind.config.js, vite.config.ts, src/index.css, components.json), edits index.html and both tsconfig files with sed and short node scripts, and unpacks the archive into src. The skill says that archive holds the shadcn/ui component files, but it is a binary file that cannot be read as text, so what it contains has not been checked here. bundle-artifact.sh, run from the project root, adds Parcel, a path-alias resolver and html-inline as dev dependencies, writes a .parcelrc if there is none, deletes any previous dist folder and bundle.html, builds, and writes the inlined bundle.html. Nothing is deployed or sent anywhere; the file is shared in the conversation. Testing, if it happens, uses whatever tools are available, such as Playwright or Puppeteer.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers