Claude skill · Development · Anthropic
Web artifacts builder skill for Claude
web-artifacts-builder is an Anthropic skill for claude.ai artifacts too big for one file. Claude runs a script that sets up a React, TypeScript, Tailwind and shadcn/ui project, builds the app, then bundles it into a single HTML file the artifact viewer can show. It needs Node.js 18 or later and network access. For a simple artifact, skip it.
- Command
- /web-artifacts-builder
- Licence
- Apache-2.0, copying allowed with attribution
- Folder
- 5 files, 45 KB
- Runs code
- 2 scripts
Overview
What does web-artifacts-builder do?
For artifacts too big for a single file. A setup script creates a Vite project with Tailwind, path aliases and about forty shadcn/ui components; Claude builds the app; a bundling script runs Parcel and inlines everything into a single bundle.html that can be shared as an artifact.
It’s meant for apps that need state, routing or many components. For a simple one-file artifact the skill says not to use it.
Triggers
When does Claude use it?
- Elaborate, multi-component artifacts that need state management, routing or shadcn/ui.
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
What it needs
- Node.js 18 or later and pnpm (the setup script installs pnpm globally if it’s missing). The scripts download npm packages, so they need network access.
Install
How do I install it in Claude Code?
From the plugin marketplace
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skillsThe example-skills plugin brings 12 skills, including this one; it runs as /example-skills:web-artifacts-builder.
As a personal or project skill
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -r skills/skills/web-artifacts-builder ~/.claude/skills/git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p .claude/skills
cp -r skills/skills/web-artifacts-builder .claude/skills/Either way it’s available as /web-artifacts-builder.
claude.ai and API
How do I use it in claude.ai and the API?
claude.ai
Anthropic’s skills README says its example skills are already available on paid claude.ai plans, so check Customize > Skills before uploading anything.
Claude API
Upload the folder through the Skills API, then list it in container.skills as type custom with the returned ID, alongside the code execution tool. Uploaded skills are shared across your workspace.
from anthropic import Anthropic
from anthropic.lib import files_from_dir
client = Anthropic()
skill = client.skills.create(files=files_from_dir("web-artifacts-builder"))
print(skill.id) # use as a custom skill_id with the code execution toolAPI containers have no network access, so its scripts can’t download anything there.
Checks
SKILL.md validator results
Its SKILL.md (74 lines) run through our SKILL.md validator, with the folder’s file list, for both targets. These check the file’s format, not whether the skill works well.
Claude Code
0 errors, 0 warnings, 1 tip
- tipSKILL.md doesn’t mention
scripts/shadcn-components.tar.gz. Say what each file is for and when to read or run it, or Claude won’t know to use it.
claude.ai and the API
0 errors, 0 warnings, 2 tips
- tipThe Claude Help Center’s upload guide gives a 200-character description limit for claude.ai, though the platform docs say 1,024. Keep it under 200 if you’ll upload it there.
- tipSKILL.md doesn’t mention
scripts/shadcn-components.tar.gz. Say what each file is for and when to read or run it, or Claude won’t know to use it.
Folder
What’s in the folder?
- LICENSE.txt11 KB
- SKILL.md3.0 KB
- scripts/3 files, 31 KB
SKILL.md sections
- Web Artifacts Builder
- Design & Style Guidelines
- Quick Start
- Step 1: Initialize Project
- Step 2: Develop Your Artifact
- Step 3: Bundle to Single HTML File
- Step 4: Share Artifact with User
- Step 5: Testing/Visualizing the Artifact (Optional)
- Reference
Source
Licence and source
- Published by Anthropic in anthropics/skills/skills/web-artifacts-builder, last changed 2026-04-20.
- Licence: Apache-2.0, copying allowed with attribution. Our copy of the SKILL.md is unmodified, served with its licence.
- Read from commit
ca45fc4; write-up checked 2026-10-14. - Before installing, read the SKILL.md on GitHub and its scripts. Anthropic advises using skills only from sources you trust (security considerations).
FAQ
Questions people ask
When do I need web-artifacts-builder instead of a plain artifact?
When the app needs state, routing or many components, such as a dashboard with several views. A plain artifact is one file Claude writes directly, which is fine for a page or a small widget. The skill itself says not to use it for simple one-file artifacts, since the setup step adds time.
What does the bundle step do?
It runs Parcel over the finished project and inlines everything, the JavaScript, CSS and assets, into one bundle.html. The artifact viewer shows a single file, so this is what lets a multi-file React project appear as an artifact. You can also open that file in any browser or share it.
Why does the setup script fail?
Most often because the environment can’t reach npm. The scripts download packages, so they need network access, and the setup script installs pnpm globally if it’s missing. Claude API containers have no network access, so the skill won’t work there. In Claude Code, check that Node.js 18 or later is installed and your network allows npm.
Related
Related skills
All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands
Keep exploring