Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMar 29, 2026·2 min de lectura

Claude Official Skill: web-artifacts-builder

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 artifact...

Listo para agents

Instalación con revisión previa

Este activo requiere revisión. El prompt copiado pide dry-run, muestra escrituras y continúa solo tras confirmación.

Needs Confirmation · 66/100Política: confirmar
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Community
Entrada
Claude Official Skill: web-artifacts-builder
Comando con revisión previa
npx -y tokrepo@latest install 483d7b75-7919-4f73-bf4d-e93d01c1da47 --target codex

Primero dry-run, confirma las escrituras y luego ejecuta este comando.

TL;DR
Official Claude skill for building multi-component HTML artifacts with React and Tailwind CSS.
§01

What it is

The web-artifacts-builder is an official Claude skill for creating elaborate, multi-component HTML artifacts inside claude.ai conversations. It uses React, Tailwind CSS, and shadcn/ui to produce interactive web applications, dashboards, forms, and visualizations directly in the chat window.

This skill targets users who want to prototype UI components, build internal tools, or create interactive data visualizations without leaving their Claude conversation.

§02

How it saves time or tokens

The skill encodes best practices for artifact creation: proper React component structure, Tailwind utility classes, responsive layouts, and shadcn/ui patterns. Instead of prompting Claude from scratch and iterating on styling, the skill produces well-structured artifacts on the first attempt.

The built-in component library (shadcn/ui) means common UI elements like buttons, cards, tables, and modals are available without importing external CSS.

§03

How to use

  1. Start a conversation in claude.ai
  2. Describe the artifact you want: a dashboard, form, calculator, or visualization
  3. Claude generates a self-contained HTML artifact with React and Tailwind
  4. Preview and iterate directly in the chat interface
§04

Example

// Example artifact: a simple expense tracker
import React, { useState } from 'react';
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';

function ExpenseTracker() {
  const [expenses, setExpenses] = useState([]);
  const [amount, setAmount] = useState('');
  const [description, setDescription] = useState('');

  const addExpense = () => {
    if (amount && description) {
      setExpenses([...expenses, { amount: parseFloat(amount), description }]);
      setAmount('');
      setDescription('');
    }
  };

  const total = expenses.reduce((sum, e) => sum + e.amount, 0);

  return (
    <Card>
      <CardHeader>
        <CardTitle>Expense Tracker (Total: ${total.toFixed(2)})</CardTitle>
      </CardHeader>
      <CardContent>
        <div className='flex gap-2 mb-4'>
          <Input placeholder='Description' value={description}
            onChange={(e) => setDescription(e.target.value)} />
          <Input type='number' placeholder='Amount' value={amount}
            onChange={(e) => setAmount(e.target.value)} />
          <Button onClick={addExpense}>Add</Button>
        </div>
        {expenses.map((e, i) => (
          <div key={i} className='flex justify-between py-1'>
            <span>{e.description}</span>
            <span>${e.amount.toFixed(2)}</span>
          </div>
        ))}
      </CardContent>
    </Card>
  );
}
§05

Related on TokRepo

§06

Common pitfalls

  • Artifacts run in a sandboxed iframe; they cannot make external API calls or access browser storage
  • Complex multi-page applications may exceed artifact size limits; break them into separate artifacts
  • shadcn/ui components are pre-bundled; not all variants are available in the artifact environment

Preguntas frecuentes

What technologies are available in artifacts?+

Artifacts support React, Tailwind CSS, and shadcn/ui components. They also support Recharts for data visualization and Lucide icons. External libraries beyond these are not available in the sandbox.

Can I export artifacts as standalone applications?+

You can copy the generated code and use it in your own React project. The code is standard React with Tailwind and shadcn/ui, so it works in any modern React setup with those dependencies installed.

Do artifacts support interactivity?+

Yes. Artifacts are full React applications with state management. Buttons, forms, animations, and user interactions all work. The only limitation is no external network requests from within the artifact.

Can I use this skill in Claude Code?+

The web-artifacts-builder skill is designed for claude.ai artifacts. In Claude Code, you would generate the same React code and save it as files in your project instead of rendering in an artifact window.

How complex can artifacts get?+

Artifacts can include multiple components, state management, data tables, charts, and interactive forms. The practical limit is the artifact size constraint and the fact that external APIs are not accessible. For prototyping and internal tools, this is usually sufficient.

Referencias (3)
  • Anthropic Docs— Claude artifacts support React, Tailwind CSS, and shadcn/ui
  • shadcn/ui— shadcn/ui component library for React
  • Tailwind CSS— Tailwind CSS utility-first CSS framework
🙏

Fuente y agradecimientos

Created by Anthropic. Licensed under MIT. anthropics/skills

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados