prototype
Prototype
Adapted from Anthropic's web-artifacts-builder skill
Create lightweight React prototypes that bundle to a single shareable HTML file.
When to Use This vs. Other Tools
Use prototype |
Use audreygen |
Use Astro |
|---|---|---|
| Quick prototype | Full app | Static site |
| Interactive demo | Needs database | Content-heavy |
| Shareable single file | Needs API/auth | Blog, docs |
| Claude artifacts | Production app | Marketing |
Stack
- React 18 + TypeScript + Vite
- Tailwind CSS + shadcn/ui
- Parcel for bundling
- 40+ shadcn components pre-installed
Workflow
1. Initialize Project
bash scripts/init-artifact.sh my-demo
cd my-demo
pnpm dev
2. Develop
Edit files in src/. All shadcn/ui components available:
import { Button } from '@/components/ui/button'
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'
import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'
3. Bundle to Single HTML
bash scripts/bundle-artifact.sh
Creates bundle.html - single file with all JS/CSS inlined.
4. Share
- Open in browser
- Share file directly
- Paste into Claude.ai as artifact
Setup Required
Before first use, download the shadcn components tarball:
curl -L -o scripts/shadcn-components.tar.gz \
https://github.com/anthropics/skills/raw/main/skills/web-artifacts-builder/scripts/shadcn-components.tar.gz
Design Notes
Same guidelines as your other projects:
- Use theme tokens (
text-muted-foreground) not hardcoded colors @/imports- No semicolons
- shadcn/ui patterns
For distinctive/creative UI, combine with the creative-design skill.
More from cerico/macfair
infographic
Generate infographics from text. Extracts key info, renders SVG, exports PNG. Uses Claude Code (no API costs).
38visx
Build data visualizations with visx (React + D3). Use for charts, graphs, and interactive data exploration.
21creative-design
Create distinctive, memorable UI for landing pages, portfolios, marketing sites, and one-off creative work. Use when the user explicitly wants something "distinctive", "creative", "memorable", or "unique" - NOT for standard app components where consistency matters.
20threejs
Build 3D scenes, animations, and interactive experiences with Three.js. Use for product viewers, backgrounds, data visualization, or creative experiments.
13test-review
Review existing tests for completeness, quality issues, and common mistakes
12scaffold-route
Scaffold a new Next.js route with tRPC router, Zod validation, and proper file structure
12