Agent skill

Web Artifacts Builder V2

by sammcj in sammcj/agentic-coding

Suite of tools for creating elaborate, multi-component claude.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui).

Apache-2.0Auto-check passedFrontend & Design

Install Web Artifacts Builder V2

skills CLI
$ npx skills add sammcj/agentic-coding --skill web-artifacts-builder-v2 -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sammcj/agentic-coding web-artifacts-builder-v2 --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sammcj/agentic-coding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills/web-artifacts-builder-v2 .claude/skills/web-artifacts-builder-v2 && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
web-artifacts-builder-v2
GitHub stars
162
Token cost
~1.9k tokens
SKILL.md length
941 words
Files
6 (incl. scripts)
Skills in repo
62
Repo updated
First seen
Licence
Apache-2.0

At a glance

Suite of tools for creating elaborate, multi-component claude.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui).

  • Works in 6 steps: Initialise the project → Apply a theme → Develop the artefact → …
  • Complex artefacts requiring state management
  • SKILL.md covers Design principles, Anti-slop rule, Themes and Quick start, plus 1 more section
  • Runs Shell scripts from its folder; calls bash and pnpm

What it does

Web Artifacts Builder V2 is an agent skill from sammcj/agentic-coding. Suite of tools for creating elaborate, multi-component claude.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui). Use for complex artefacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artefacts.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `scripts/bundle-artifact.sh` and `scripts/init-artifact.sh`).

It sits in Frontend & Design, covering HTML artifacts, React components and State management. It works with shadcn/ui, React and Tailwind CSS. The repository describes itself as: Agentic Coding Rules, Templates etc... The licence is Apache-2.0.

When your agent uses it

  • Complex artefacts requiring state management
  • Shadcn/ui components - not for simple single-file HTML/JSX artefacts

Example prompts

  • “/web-artifacts-builder-v2”

Requirements

  • A Bash shell

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Initialise the project
  2. Apply a theme
  3. Develop the artefact
  4. Bundle to a single HTML file
  5. Share with the user
  6. Test (optional)

What it can do on your machine

Read from SKILL.md and the folder at commit 62ba5a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • ui.shadcn.com
    • tailwindcss.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Web Artifacts Builder V2 loads about 1.9k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 941 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from sammcj/agentic-coding at commit 62ba5a2, republished under its Apache-2.0 licence (© sammcj). 941 words, ~1,868 tokens.

Download SKILL.mdSave it as .claude/skills/web-artifacts-builder-v2/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
web-artifacts-builder-v2
description
Suite of tools for creating elaborate, multi-component claude.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui). Use for complex artefacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artefacts.
license
Complete terms in LICENSE.txt (Anthropic original, locally modified)
metadata.source
Rewritten from Anthropic's official `web-artefacts-builder` skill, with lots of updates

Web Artefacts Builder

To build a frontend claude.ai artefact, follow these steps:

  1. Initialise the frontend repo with scripts/init-artifact.sh
  2. Pick a theme from resources/themes.css and apply it (see "Themes" below)
  3. Develop your artefact by editing the generated code
  4. Bundle to a single HTML file with scripts/bundle-artifact.sh
  5. Share the bundled artefact with the user
  6. (Optional) Test the artefact

Stack: React 19 + TypeScript + Vite 8 + Tailwind CSS v4 + shadcn/ui (new-york style) + lucide-react. Bundling via vite-plugin-singlefile. Requires Node 20.19+ or 22.12+.

Design principles

These principles are adapted from the html-design-examples skill. Load that skill alongside this one when you need patterns for specific artefact intents (status report, code review, PR write-up, design system page, editor, etc.); its rendered catalogue at resources/index.html indexes 20 single-file references.

  • Calm, editorial aesthetic. Restrained accent colour, generous whitespace, content does the talking. Avoid hero gradients, marketing sheen, and dashboard-style chrome unless the artefact is a dashboard.
  • Typography over chrome. Establish hierarchy with weight, size, and leading before reaching for borders, backgrounds, or coloured bars. Serif headings paired with sans body is the recurring pattern in the references and a reliable choice when you have no other signal. Defaulting to Inter as the only typeface is an AI-output tell - pick a pairing from the chosen theme's font notes.
  • Earn your accent. Most themes ship with a single accent colour. Treat it as scarce. Use it for the one thing on the page that demands attention (the primary action, the link, the focused state) and almost nowhere else.
  • Use the full width when it helps. Don't centre a narrow column when the content is tabular, comparative, or spatial. A wide layout with structured columns reads better than a 720px text shaft for anything that isn't longform prose.
  • Export interactive state. If the artefact is an editor, board, or any surface where the user is doing work, finish it with a "copy as JSON" or "copy as prompt" button so the result flows back into the agent loop. See the 18-editor-triage-board.html example in html-design-examples for the pattern.

Anti-slop rule

Use visual accents (coloured border stripes, tinted-background callout boxes, accent bars on cards) only when the colour or treatment encodes specific information - status, category, severity, or priority that I've explicitly defined. Don't apply visual accents decoratively, don't rotate through palette colours across sibling items for variety, and don't reach for the tinted-callout-with-coloured-bar pattern as a default way to mark asides. If you're about to add an accent, ask whether removing it would lose information; if not, remove it and rely on plain typographic hierarchy instead.

Other things to avoid because they read as AI-default output: excessive centred layouts, purple gradients, uniformly rounded corners on everything, glassmorphism, emoji bullets, and three-card-grid hero sections with identical icons. The same goes for status badges or pulsing dots whose state never changes ("Active", "Verified"), copy that echoes the prompt or stack ("Built with..."), fake-system naming (// separators, SCREAMING_SNAKE labels, version pills, spaced mono-caps eyebrows), and landing-page furniture on working screens (hype subtitles, vanity stat strips, one headline word in the accent colour). Check the alignment of SVGs, ASCII art and timeline markers by measuring the computed boxes.

Show full SKILL.md (416 more words)Show less

Themes

resources/themes.css ships five named themes. Pick one before you start writing components - retrofitting a palette is much more work than choosing one up front.

ThemeMoodGood for
Editorial paperWarm paper, ink, ochre accentLongform writeups, plans, reports, post-mortems
Technical monoNear-monochrome, single green accentCode reviews, system diagrams, status pages, debugging
Warm desaturatedSand, clay-brown, muted terracottaBrand-adjacent artefacts, design pages, anything that wants warmth without volume
Cool mutedQuiet slate, low-chroma tealDashboards, status reports, technical docs
Nordic darkPolar-night greys, frost-blueIncident write-ups, debug dumps, dark-mode-first developer tooling

To apply a theme:

  1. Read resources/themes.css and copy the :root { ... } and .dark { ... } blocks for the chosen theme.
  2. Replace the existing :root and .dark blocks in your project's src/index.css. Leave the @theme inline and @layer base blocks alone - they wire the variables into Tailwind utilities.
  3. Add the suggested font stack (the comment block above each theme lists one) - either via a <link rel="stylesheet"> tag in index.html from Google Fonts, or by setting body { font-family: ... } in src/index.css.

If the user has an existing brand or design system, defer to it rather than picking from the gallery.

Quick start

Step 1: Initialise the project
bash
bash scripts/init-artifact.sh <project-name>
cd <project-name>

This creates a configured project with:

  • React 19 + TypeScript via Vite 8
  • Tailwind CSS v4 (CSS-first config in src/index.css, no tailwind.config.js)
  • 40+ shadcn/ui components in src/components/ui/
  • radix-ui umbrella package and lucide-react
  • Path alias @/ configured in both tsconfig.json and vite.config.ts
  • Minimal App.tsx placeholder ready for you to edit
Step 2: Apply a theme

See "Themes" above.

Step 3: Develop the artefact

Edit src/App.tsx and add components as needed. Components are imported from @/components/ui/<name>. The cn() helper lives at @/lib/utils.

To preview during development:

bash
pnpm dev
Step 4: Bundle to a single HTML file
bash
bash scripts/bundle-artifact.sh

This produces bundle.html - a single self-contained file with all JS, CSS, and assets inlined. The script:

  • Adds vite-plugin-singlefile as a dev dependency
  • Writes a vite.config.bundle.ts that extends your config with the single-file plugin and inlining options
  • Runs vite build --config vite.config.bundle.ts
  • Renames dist/index.html to bundle.html

The artefact requires nothing at runtime - hand it to the user directly.

Step 5: Share with the user

Pass bundle.html back to the user as the artefact.

Step 6: Test (optional)

Only test before sharing if the user has asked, or if the artefact has interactive logic that you don't want to ship broken. Use Playwright or open the file locally. Otherwise prefer shipping fast and iterating on feedback.

Reference

© sammcj, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts) in Skills/web-artifacts-builder-v2 of sammcj/agentic-coding.

  • SKILL.md
  • LICENSE.txt
  • resources/themes.css
  • scripts/bundle-artifact.sh
  • scripts/init-artifact.sh
  • scripts/shadcn-components.tar.gz

Open the folder on GitHubat commit 62ba5a2

Compare with similar skills

Web Artifacts Builder V2 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Web Artifacts Builder V2 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Web Artifacts Builder V2 this skillsammcj/agentic-coding162—~1.9kAutomated safety check: PassApache-2.0
Web Artifacts BuilderLeastBit/Claude_skills_zh-CN588—~458Automated safety check: PassApache-2.0
Artifacts Builderboshi-xixixi/TraeSkill275—~768Automated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
Creative Tim UI Blockscreativetimofficial/ui12k—~2.1kAutomated safety check: NotesMIT
Animated React Component LibrariesHainrixz/editor-pro-max2611 repos~5.7kAutomated safety check: PassCustom licence

Similar skills

  • Web Artifacts Builder

    LeastBit/Claude_skills_zh-CN

    用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建复杂的、多组件的 claude.ai HTML artifact 的工具套件。适用于需要状态管理、路由或 shadcn/ui 组件的复杂 artifact - 不适用于简单的单文件 HTML/JSX artifact。

    588 GitHub stars~458 tokensUpdated 8 mo ago
    Frontend & DesignAuto-check passed
  • Artifacts Builder

    boshi-xixixi/TraeSkill

    当用户需要创建复杂的多组件 HTML Artifacts(包含 React、Tailwind CSS、shadcn/ui)时使用。此 Skill 用于需要状态管理、路由或 shadcn/ui 组件的复杂 Artifacts,不适用于简单的单文件 HTML/JSX。

    275 GitHub stars~768 tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Creative Tim UI Blocks

    creativetimofficial/ui

    Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.

    12k GitHub stars~2.1k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check: notes
  • Animated React Component Libraries

    Hainrixz/editor-pro-max

    Helps choose and drop in animated React components from Magic UI and React Bits for landing pages, marketing sites and dashboards, instead of hand-coding animations.

    261 GitHub starsUsed in 1 repo~5.7k tokens
    Frontend & DesignAuto-check passed
  • Tailwind To Stylex

    shadcn-labs/shadcn-cssinjs

    Migrate TailwindCSS to StyleX. An agent skill from shadcn-labs/shadcn-cssinjs.

    123 GitHub stars~2.7k tokensUpdated 27 days ago
    Frontend & DesignAuto-check passed

More from sammcj/agentic-coding

All 62 skills in this repo
  • Yue2 Music

    sammcj/agentic-coding

    A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

    162 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Bento Slides

    sammcj/agentic-coding

    A skill your agent uses when creating or editing Bento (.bento.html) slide decks, including any request for a single-file HTML slide deck.

    162 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Idrive Backup

    sammcj/agentic-coding

    A skill your agent uses whenever the user wants you to manage, discuss or diagnose iDrive Backup configuration on macOS

    162 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check: notes
  • Piper Tts Training

    sammcj/agentic-coding

    Train custom TTS voices for Piper (ONNX format) using fine-tuning or from-scratch approaches.

    162 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • PPTX To Md

    sammcj/agentic-coding

    Convert a PPTX slide deck into per-slide markdown that preserves both the verbatim text and the meaning of embedded screenshots, diagrams and charts in their original layout positions.

    162 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Skill Creator Primer

    sammcj/agentic-coding

    You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill.

    162 GitHub stars~9.8k tokensUpdated yesterday
    Auto-check passed

Questions about Web Artifacts Builder V2

What does Web Artifacts Builder V2 do?

Suite of tools for creating elaborate, multi-component claude.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui). Web Artifacts Builder V2 is an agent skill from sammcj/agentic-coding.ai HTML artefacts using modern frontend web technologies (React 19, Tailwind CSS v4, shadcn/ui).

When should I use Web Artifacts Builder V2?

Web Artifacts Builder V2 fits situations like: complex artefacts requiring state management; shadcn/ui components - not for simple single-file HTML/JSX artefacts.

How do I install Web Artifacts Builder V2 in Claude Code?

Run `npx skills add sammcj/agentic-coding --skill web-artifacts-builder-v2 -a claude-code`. Or copy the skill folder (Skills/web-artifacts-builder-v2 in sammcj/agentic-coding) into .claude/skills/web-artifacts-builder-v2 in your project. Claude Code loads it when a task matches its description.

How do I install Web Artifacts Builder V2 in Codex?

Run `npx skills add sammcj/agentic-coding --skill web-artifacts-builder-v2 -a codex`. Or copy the skill folder (Skills/web-artifacts-builder-v2 in sammcj/agentic-coding) into .agents/skills/web-artifacts-builder-v2 in your project. Codex loads it when a task matches its description.

Can I use Web Artifacts Builder V2 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sammcj/agentic-coding --skill web-artifacts-builder-v2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/web-artifacts-builder-v2, .gemini/skills/web-artifacts-builder-v2, .github/skills/web-artifacts-builder-v2 and .opencode/skills/web-artifacts-builder-v2 in your project.

What does Web Artifacts Builder V2 need to run?

Going by SKILL.md and its folder, Web Artifacts Builder V2 needs a shell for the scripts in its folder and the command-line tools its instructions call (bash and pnpm). Our summary lists: A Bash shell.

Does Web Artifacts Builder V2 access the network?

SKILL.md names 2 domains. As links in the text: ui.shadcn.com and tailwindcss.com. This is read from the text; nothing was executed.

Is Web Artifacts Builder V2 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Web Artifacts Builder V2 use?

Web Artifacts Builder V2 is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Web Artifacts Builder V2 use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Web Artifacts Builder V2?

Skills that share tags, products or a category with Web Artifacts Builder V2: Web Artifacts Builder (LeastBit/Claude_skills_zh-CN, 588 stars), Artifacts Builder (boshi-xixixi/TraeSkill, 275 stars), Web Artifacts Builder (anthropics/skills, 180k stars) and Creative Tim UI Blocks (creativetimofficial/ui, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Web Artifacts Builder V2?

sammcj (a GitHub user) maintains it in sammcj/agentic-coding, which has 162 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 7, 2026.

Source: sammcj/agentic-coding on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.