artifacts-builder
anthropics/skills · Agent Skill
Builds interactive web artifacts: single-page applications, dashboards, and games with correct structure.
Jump to install ↓Overview
| Publisher | |
|---|---|
| Repository | anthropics/skills ↗ |
| Skill folder | web-artifacts-builder |
| Stars | 176,064 |
| Bundled files | SKILL.md only |
| License | not specified — check with the author |
| Links | Skill source ↗ · Repository ↗ |
Mozgi check
What we found in the skill files. Details come with a subscription.
Installation
A skill is a folder with a SKILL.md file. Pick your agent and run the commands in a terminal (macOS, Linux or Git Bash on Windows) from your project root.
Copy the prompt into Claude, Codex or another assistant: it will review the skill and install it for you.
Install the “artifacts-builder” skill from mozgi.io (https://mozgi.io/skills/artifacts-builder/) for me. 1. Take the skill folder from the source: https://github.com/anthropics/skills/tree/main/skills/web-artifacts-builder 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “artifacts-builder” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/artifacts-builder/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/anthropics/skills.git /tmp/skills mkdir -p .claude/skills cp -r /tmp/skills/skills/web-artifacts-builder .claude/skills/web-artifacts-builder
Restart Claude Code — the skill appears in the list; call it manually with /artifacts-builder. For all projects use ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/anthropics/skills.git /tmp/skills mkdir -p .agents/skills cp -r /tmp/skills/skills/web-artifacts-builder .agents/skills/web-artifacts-builder
Codex looks for skills in .agents/skills from the current folder up to the repo root; call one with /skills or $artifacts-builder. For all projects use ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/anthropics/skills.git /tmp/skills mkdir -p .cursor/skills cp -r /tmp/skills/skills/web-artifacts-builder .cursor/skills/web-artifacts-builder
Cursor picks the skill up on start; call it with “/” in Agent chat. Cursor also reads .claude/skills and .agents/skills. For all projects use ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/anthropics/skills.git /tmp/skills mkdir -p .gemini/skills cp -r /tmp/skills/skills/web-artifacts-builder .gemini/skills/web-artifacts-builder
Gemini CLI offers to activate the skill when a task matches — you approve it. For all projects use ~/.gemini/skills.
SKILL.md contents
Original author text · read-onlyWeb Artifacts Builder
To build powerful frontend claude.ai artifacts, follow these steps:
1. Initialize the frontend repo using scripts/init-artifact.sh
2. Develop your artifact by editing the generated code
3. Bundle all code into a single HTML file using scripts/bundle-artifact.sh
4. Display artifact to user
5. (Optional) Test the artifact
Stack: React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn/ui
Design & Style Guidelines
VERY IMPORTANT: To avoid what is often referred to as "AI slop", avoid using excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.
Quick Start
Step 1: Initialize Project
Run the initialization script to create a new React project:
bash scripts/init-artifact.sh <project-name>
cd <project-name>
This creates a fully configured project with:
- ✅ React + TypeScript (via Vite)
- ✅ Tailwind CSS 3.4.1 with shadcn/ui theming system
- ✅ Path aliases (
@/) configured - ✅ 40+ shadcn/ui components pre-installed
- ✅ All Radix UI dependencies included
- ✅ Parcel configured for bundling (via .parcelrc)
- ✅ Node 18+ compatibility (auto-detects and pins Vite version)
Step 2: Develop Your Artifact
To build the artifact, edit the generated files. See Common Development Tasks below for guidance.
Step 3: Bundle to Single HTML File
To bundle the React app into a single HTML artifact:
bash scripts/bundle-artifact.sh
This creates bundle.html - a self-contained artifact with all JavaScript, CSS, and dependencies inlined. This file can be directly shared in Claude conversations as an artifact.
Requirements: Your project must have an index.html in the root directory.
What the script does:
- Installs bundling dependencies (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline)
- Creates
.parcelrcconfig with path alias support - Builds with Parcel (no source maps)
- Inlines all assets into single HTML using html-inline
Step 4: Share Artifact with User
Finally, share the bundled HTML file in conversation with the user so they can view it as an artifact.
Step 5: Testing/Visualizing the Artifact (Optional)
Note: This is a completely optional step. Only perform if necessary or requested.
To test/visualize the artifact, use available tools (including other Skills or built-in tools like Playwright or Puppeteer). In general, avoid testing the artifact upfront as it adds latency between the request and when the finished artifact can be seen. Test later, after presenting the artifact, if requested or if issues arise.
Reference
- shadcn/ui components: https://ui.shadcn.com/docs/components
Frequently asked questions
What does the artifacts-builder skill do?
Builds interactive web artifacts: single-page applications, dashboards, and games with correct structure.
How do I install artifacts-builder?
Open the “Installation” block on this page and pick your agent — Claude Code, Codex, Cursor or Gemini CLI — for ready-made commands that copy the skill folder to the right place. Or copy the prompt from the “Via assistant” tab and let the assistant review and install the skill.
Which AI models work with artifacts-builder?
Skills are plain Markdown instructions (the Agent Skills format), so artifacts-builder works with any agent that reads SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and more. The model loads the instructions only when a task matches the skill's description.
Is artifacts-builder free?
The skill is published openly by anthropics. The skill itself costs nothing — you only pay your AI provider for the tokens you use. No license is specified in the repository — check the terms with the author before commercial use.
Is it safe to install skills?
A skill is a set of instructions your agent will follow, so read SKILL.md and its companion files before installing. Scripts in the skill folder only run if your agent runs them — keep an eye on what it does and do not grant unnecessary permissions.
How is a skill different from an MCP server or a plugin?
An MCP server or plugin gives the model new tools — code that runs and returns a result. A skill gives it knowledge and process: how to approach a task, which steps to follow and what good output looks like. It needs no server or API key.