Claude skill · Development · Anthropic
Web artifacts builder skill for Claude
Builds complex claude.ai artifacts as React, TypeScript, Tailwind and shadcn/ui projects, then bundles them into one HTML file.
- Command
- /web-artifacts-builder
- Licence
- Apache-2.0, copying allowed with attribution
- Folder
- 5 files, 45 KB
- Runs code
- 2 scripts
Overview
What it does
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 Claude uses 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 to install it
Claude Code
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skillsThe example-skills plugin installs 12 skills from this repository, including this one. Its skills are then namespaced, such as /example-skills:web-artifacts-builder.
git clone --depth 1 https://github.com/anthropics/skills.git
mkdir -p ~/.claude/skills
cp -r skills/skills/web-artifacts-builder ~/.claude/skills/That makes it a personal skill, available as /web-artifacts-builder in all your projects. Copy it into .claude/skills/ in a repository instead to share it with your team.
claude.ai and the Claude API
Zip the skill folder, then in claude.ai open Customize > Skills, choose + and Create skill, then Upload a skill. Code execution must be turned on.
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 toolChecks
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
dbd4588; 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).
Related
More skills
- Claude APIA large reference for building on the Claude API and SDKs: current model IDs, pricing, streaming, tool use, caching and agents, for seven languages plus curl.
- MCP server builderA four-phase guide to building good MCP servers in Python (FastMCP) or TypeScript, from research and tool design to testing and evaluations.
- Skill creatorAnthropic’s skill for writing skills: draft a SKILL.md, test it against a baseline, review the results, and tune the description so it triggers reliably.
- Web app testingTests local web apps with Python Playwright: start the servers, inspect the page, then act, with screenshots and browser logs.
All Claude skillsWrite your own skillSlash command builderGuide: subagents, skills and commands