zartin790

web-artifacts-builder

1
0
# Install this skill:
npx skills add zartin790/llm_system_template_agents_skills_patterns_tools_prompts --skill "web-artifacts-builder"

Install specific skill from multi-skill repository

# Description

Suite of tools for creating elaborate, multi-component HTML

# SKILL.md


name: web-artifacts-builder
description: Suite of tools for creating elaborate, multi-component HTML
artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui).
Use for complex artifacts requiring state management, routing, or shadcn/ui components
- not for simple single-file HTML/JSX artifacts.
license: Complete terms in LICENSE.txt


Web Artifacts Builder

To build powerful frontend artifacts, follow these steps:
1. Initialize a frontend repo (React + TypeScript + Tailwind + shadcn/ui)
2. Develop your artifact by editing the generated code
3. Bundle all code into a single HTML file
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

Create a new React + TypeScript project (e.g., via Vite) and add Tailwind CSS + shadcn/ui. Ensure:
- βœ… 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

Bundle the React app into a single HTML artifact using your preferred bundler (e.g., Parcel with html-inline) so all assets are inlined into bundle.html. Ensure your project has an index.html in the root directory.

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

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.