Web Artifacts Builder
用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建复杂的、多组件的 claude.ai HTML artifact 的工具套件。适用于需要状态管理、路由或 shadcn/ui 组件的复杂 artifact - 不适用于简单的单文件 HTML/JSX artifact。
Install
npx skills add LeastBit/Claude_skills_zh-CN --skill web-artifacts-buildergit clone --depth 1 https://github.com/LeastBit/Claude_skills_zh-CN.git /tmp/Claude_skills_zh-CN
mkdir -p ~/.claude/skills
cp -r /tmp/Claude_skills_zh-CN/skills/web-artifacts-builder ~/.claude/skills/web-artifacts-builderPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Web Artifacts 生成器 (Web Artifacts Builder) 要构建强大的前端 claude.ai artifact,请遵循以下步骤: 1. 使用 `scripts/init-artifact.sh` 初始化前端仓库 2. 通过编辑生成的代码来开发你的 artifact 3. 使用 `scripts/bundle-artifact.sh` 将所有代码打包成单个 HTML 文件 4. 向用户展示 artifact 5. (可选) 测试 artifact **技术栈**: React 18 + TypeScript + Vite + Parcel (打包) + Tailwind CSS + shadcn/ui ## 设计与风格指南 非常重要:为了避免通常被称为“AI 废话 (AI slop)”的设计,请避免过度使用居中布局、紫色渐变、统一的圆角和 Inter 字体。 ## 快速上手 ### 第 1 步:初始化项目 运行初始化脚本以创建一个新的 React 项目: ```bash bash scripts/init-artifact.sh <项目名称> cd <项目名称> ``` 这将创建一个配置齐全的项目,包含: - ✅ React + TypeScript (通过 Vite) - ✅ 带有 shadcn/ui 主题系统的 Tailwind CSS 3.4.1 - ✅ 已配置路径别名 (`@/`) - ✅ 预装了 40 多个 shadcn/ui 组件 - ✅ 包含所有 Radix UI 依赖项 - ✅ 配置了 Parcel 用于打包 (通过 .parcelrc) - ✅ Node 18+ 兼容性 (自动检测并固定 Vite 版本) ### 第 2 步:开发你的 Artifact 要构建 artifact,请编辑生成的文件。请参阅下面的**常见开发任务**获取指导。 ### 第 3 步:打包为单个 HTML 文件 要将 React 应用打包成单个 HTML artifact: ```bash bash scripts/bundle-artifact.sh ``` 这将创建 `bundle.html` —— 一个包含所有内联 JavaScript、CSS 和依赖项的自包含 artifact。此文件可以直接作为 artifact 在 Claude 对话中分享。 **要求**: 你的项目根目录下必须有一个 `index.html`。 **脚本作用**: - 安装打包依赖项 (parcel, @parcel/config-default, parcel-resolver-tspaths, html-inline) - 创建支持路径别名的 `.parcelrc` 配置 - 使用 Parcel 构建 (不包含 source maps) - 使用 html-inline 将所有资产内联到单个 HTML 中 ### 第 4 步:与用户分享 Artifact 最后,在对话中与用户分享打包好的 HTML 文件,以便他们将其作为 artifact 查看。 ### 第 5 步:测试/预览 Artifact (可选) 注意:这是一个完全可选的步骤。仅在必要或有要求时执行。
Details
- Skill name
web-artifacts-builder- Repository
- LeastBit/Claude_skills_zh-CN
- Path
skills/web-artifacts-builder/SKILL.md- Repo updated
- 19 January 2026
FAQ
What does the Web Artifacts Builder skill do?
用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建复杂的、多组件的 claude.ai HTML artifact 的工具套件。适用于需要状态管理、路由或 shadcn/ui 组件的复杂 artifact - 不适用于简单的单文件 HTML/JSX artifact。
How do I install the Web Artifacts Builder skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add LeastBit/Claude_skills_zh-CN --skill web-artifacts-builder. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Web Artifacts Builder popular?
It lives in LeastBit/Claude_skills_zh-CN, which has 617 GitHub stars and 96 forks.
Related skills
Skill Creator
617LeastBit/Claude_skills_zh-CN
创建高效技能的指南。当用户想要创建新技能(或更新现有技能)以扩展 Claude 的能力,包括专业知识、工作流程或工具集成时,应使用此技能。
Algorithmic Art
617LeastBit/Claude_skills_zh-CN
使用 p5.js 创建带有种子随机性和交互式参数探索的算法艺术。当用户请求使用代码创建艺术、生成艺术、算法艺术、流场或粒子系统时使用此技能。创作原创算法艺术,而不是复制现有艺术家的作品,以避免版权侵犯。
Brand Guidelines
617LeastBit/Claude_skills_zh-CN
将 Anthropic 官方品牌颜色和字体应用于任何可能需要 Anthropic 视觉风格的作品。适用于品牌颜色或样式指南、视觉格式化或公司设计标准的场景。
Brand Positioning Audit
457BrianRWagner/ai-marketing-claude-code-skills
Use when founder/marketer needs to diagnose positioning problems (ICP clarity, differentiation, proof). Also: 'our positioning is generic', 'what makes us different', 'struggling to explain what we do', 'positioning is weak'. NOT for: copywriting, website design, long-form content creation.
Theme Factory
617LeastBit/Claude_skills_zh-CN
用于为作品应用主题样式的工具包。这些作品可以是幻灯片、文档、报告、HTML 落地页等。提供 10 个预设主题,包含颜色/字体配置,可应用于任何已创建的作品,也可以即时生成新主题。
Homepage Audit
457BrianRWagner/ai-marketing-claude-code-skills
Full conversion audit for any homepage or landing page. Use when someone asks to "review my homepage," "audit my landing page," "why isn't my page converting," "check my website," or wants feedback on their marketing page. Requires URL or screenshot before proceeding.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.