Agent skill UI design
Web Artifacts Builder
Shape a web interface around a coherent visual direction.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add anthropics/skills --skill web-artifacts-builder --agent claude-code --yesCheck this file in your project.claude/skills/web-artifacts-builder/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add anthropics/skills --skill web-artifacts-builderSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A fresh local project directory, compatible Node.js and pnpm, and the original Skill scripts with their adjacent components archive.
View operation manualWhat this skill helps with
- Shape a web interface around a coherent visual direction.
Good for
- Visual direction
- Task
- Build a self-contained interactive React artifact
- Inputs
- A fresh local project directory, compatible Node.js and pnpm, and the original Skill scripts with their adjacent components archive.
- Output
- A single working bundle.html with embedded JS and CSS, verified without an internet connection.
- Skill name
web-artifacts-builder- Repository
anthropics/skills
Follow the publisher’s build workflow
An underspecified approach
Run the bundler from my existing app and send me its dist folder.
The supplied bundler deletes the target project’s previous dist and bundle.html. A fresh scaffold also keeps the one-file build focused.
A verifiable workflow
- The initializer creates a React project with the supplied components and package configuration.
- The actual app runs from the generated package and the bundler writes bundle.html.
- The file loads, required controls work, and no network requests are needed for the tested interaction.
Web Artifacts Builder operation manual
A single working bundle.html with embedded JS and CSS, verified without an internet connection.
A fresh local project directory, compatible Node.js and pnpm, and the original Skill scripts with their adjacent components archive.
Initialize a new, disposable artifact project
The initializer creates a React project with the supplied components and package configuration.
Prompt · Step 1Use the installed Anthropic web-artifacts-builder for [new folder and artifact goal]. Inspect the installed init-artifact.sh and keep its shadcn-components.tar.gz beside it. Check Node and pnpm. The tested scaffold Vite 8.4.1 requires Node ^20.19.0 or >=22.12.0. From the proposed parent directory, run bash [installed init-artifact.sh path] [new project name]. Confirm the generated project root and retain its lockfile.Implement one working interaction and bundle it
The actual app runs from the generated package and the bundler writes bundle.html.
Prompt · Step 2Build [local interactive artifact] in the new project using public local fixture data. Verify that index.html exists and asset links resolve from the project. If the current Vite scaffold has a root /favicon.svg reference that Parcel cannot find, remove that link only when an icon is unnecessary, or use an actual local asset path. Run bash [installed bundle-artifact.sh path] from the generated project root and inspect the emitted bundle.html.Open the final HTML offline and operate it
The file loads, required controls work, and no network requests are needed for the tested interaction.
Prompt · Step 3Open [generated bundle.html] in an offline browser context. Confirm the heading, styles, expected interactions and keyboard operation at narrow and wide widths. Check for failed requests and uncaught errors. Replace any unintended remote assets with allowed local assets if needed. Return the actual bundle.html path and items you verified.
Look up build and troubleshooting
Use the actual project configuration and published scripts.
Why does Parcel stop at /favicon.svg?SKILL.md
- Command or reference
bundle-artifact.sh · bundle.html- Examples
- Some newly generated Vite projects use a favicon filename the published initializer does not strip. Check index.html and the actual file. Use a resolvable asset or remove the unused default link before bundling again.
Troubleshooting and FAQ
Why does Parcel stop at /favicon.svg?
Some newly generated Vite projects use a favicon filename the published initializer does not strip. Check index.html and the actual file. Use a resolvable asset or remove the unused default link before bundling again.