Agent SkillsECNU-ICALK/AutoSkill › web-artifacts-builder

web-artifacts-builder

GitHub

用于构建复杂交互式 HTML 组件的工具集。基于 React、Tailwind CSS 和 shadcn/ui,通过初始化项目、开发代码、打包为单文件 HTML 并展示的流程,生成高质量前端 Artifact,避免 AI 生成的低质设计。

SkillBank/Common/anthropics-skill/web-artifacts-builder/SKILL.md ECNU-ICALK/AutoSkill

Trigger Scenarios

需要创建复杂的 React 前端应用或交互组件 要求使用 Tailwind CSS 和 shadcn/ui 构建多组件界面 需要将前端项目打包为单个可分享的 HTML 文件

Install

npx skills add ECNU-ICALK/AutoSkill --skill web-artifacts-builder -g -y
More Options

Non-standard path

npx skills add https://github.com/ECNU-ICALK/AutoSkill/tree/main/SkillBank/Common/anthropics-skill/web-artifacts-builder -g -y

Use without installing

npx skills use ECNU-ICALK/AutoSkill@web-artifacts-builder

指定 Agent (Claude Code)

npx skills add ECNU-ICALK/AutoSkill --skill web-artifacts-builder -a claude-code -g -y

安装 repo 全部 skill

npx skills add ECNU-ICALK/AutoSkill --all -g -y

预览 repo 内 skill

npx skills add ECNU-ICALK/AutoSkill --list

SKILL.md

Frontmatter
{
    "id": "3f752b81-bd49-5dc7-97af-d0074bdef057",
    "name": "web-artifacts-builder",
    "license": "Complete terms in LICENSE.txt",
    "description": "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 artifacts requiring state management, routing, or shadcn\/ui components - not for simple single-file HTML\/JSX artifacts."
}

Web 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 .parcelrc config 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

Version History

  • 94c47ca Current 2026-07-24 12:33

Same Skill Collection

SkillBank/Common/anthropics-skill/algorithmic-art/SKILL.md
SkillBank/Common/anthropics-skill/brand-guidelines/SKILL.md
SkillBank/Common/anthropics-skill/canvas-design/SKILL.md
SkillBank/Common/anthropics-skill/doc-coauthoring/SKILL.md
SkillBank/Common/anthropics-skill/frontend-design/SKILL.md
SkillBank/Common/anthropics-skill/internal-comms/SKILL.md
SkillBank/Common/anthropics-skill/mcp-builder/SKILL.md
SkillBank/Common/anthropics-skill/pdf/SKILL.md
SkillBank/Common/anthropics-skill/skill-creator/SKILL.md
SkillBank/Common/anthropics-skill/slack-gif-creator/SKILL.md
SkillBank/Common/anthropics-skill/theme-factory/SKILL.md
SkillBank/Common/anthropics-skill/webapp-testing/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/artifacts-builder/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/brand-guidelines/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/canvas-design/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/changelog-generator/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/competitive-ads-extractor/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/connect-apps/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/connect/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/content-research-writer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/developer-growth-analysis/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/domain-name-brainstormer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/file-organizer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/image-enhancer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/internal-comms/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/invoice-organizer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/lead-research-assistant/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/mcp-builder/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/meeting-insights-analyzer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/raffle-winner-picker/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/slack-gif-creator/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/tailored-resume-generator/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/theme-factory/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/twitter-algorithm-optimizer/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/webapp-testing/SKILL.md
SkillBank/Common/AwesomeClaudeSkills/youtube-downloader/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-article-illustrator/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-comic/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-compress-image/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-cover-image/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-danger-gemini-web/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-danger-x-to-markdown/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-format-markdown/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-image-gen/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-infographic/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-markdown-to-html/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-post-to-wechat/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-post-to-x/SKILL.md
SkillBank/Common/baoyu-skills/baoyu-slide-deck/SKILL.md

Metadata

Files
0
Version
94c47ca
Hash
5dadc43b
Indexed
2026-07-24 12:33

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-05 00:49
浙ICP备14020137号-1 $Map of visitor$