cn-web-artifacts-builder

For building refined, multi‑component Claude web artifacts using modern front‑end web technologies (React, Tailwind CSS, shadcn/ui).

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cn-web-artifacts-builder" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-10809a446d14eff6f4cefd8b6cdebaa7bd3834dcd67fad5912179beb7b729adf. Verify the upstream source and version against https://skillhub.cn/skills/org-02qudk26/cn-web-artifacts-builder before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For building refined, multi‑component Claude web artifacts using modern front‑end web technologies (React, Tailwind CSS, shadcn/ui).

0 Downloads

Introduction source: third_party · org-02qudk26 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "web-artifacts-builder"
description: "用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建精致的多组件 claude.ai HTML 工件的工具套件。用于需要状态管理、路由或 shadcn/ui 组件的复杂工件 - 不适用于简单的单文件 HTML/JSX 工件。"
license: "\"Complete terms in LICENSE.txt\""
displayName: "Web 工件生成器"
summary: "用于使用现代前端 Web 技术(React、Tailwind CSS、shadcn/ui)创建精致的多组件 claude"
version: 1.0.0
tags: [文物, 沙德网, 套房, 工具, HTML, Tailwind]

Web 工件生成器

要构建强大的前端 claude.ai 工件,请按照以下步骤操作:

  1. 使用 scripts/init-artifact.sh 初始化前端存储库
  2. 通过编辑生成的代码来开发您的工件
  3. 使用 scripts/bundle-artifact.sh 将所有代码捆绑到单个 HTML 文件中 4.向用户展示工件 5.(可选)测试工件

堆栈:React 18 + TypeScript + Vite + Parcel(捆绑)+ Tailwind CSS + shadcn/ui

设计和风格指南

非常重要:为了避免通常所说的“AI slop”,请避免使用过多的居中布局、紫色渐变、统一圆角和 Inter 字体。

快速入门

第 1 步:初始化项目

运行初始化脚本创建一个新的 React 项目: 块0块

这将创建一个完全配置的项目:

  • ✅ React + TypeScript(通过 Vite)
  • ✅ Tailwind CSS 3.4.1 带有 shadcn/ui 主题系统
  • ✅ 配置路径别名 (@/)
  • ✅ 预装 40+ shadcn/ui 组件
  • ✅ 包含所有 Radix UI 依赖项
  • ✅ 配置用于捆绑的包裹(通过 .parcelrc)
  • ✅ Node 18+ 兼容性(自动检测并固定 Vite 版本)

第 2 步:开发您的工件

要构建工件,请编辑生成的文件。请参阅下面的 常见开发任务 以获取指导。

步骤 3:捆绑到单个 HTML 文件

要将 React 应用程序捆绑到单个 HTML 工件中: 块1块

这将创建 bundle.html - 一个内联所有 JavaScript、CSS 和依赖项的独立工件。该文件可以作为工件直接在 Claude 对话中共享。

要求:您的项目根目录中必须有一个 index.html。

脚本的作用:

  • 安装捆绑依赖项(parcel、@parcel/config-default、parcel-resolver-tspaths、html-inline)
  • 创建具有路径别名支持的 .parcelrc 配置
  • 使用 Parcel 构建(无源映射)
  • 使用 html-inline 将所有资源内联到单个 HTML 中

步骤 4:与用户共享工件

最后,在与用户的对话中共享捆绑的 HTML 文件,以便他们可以将其视为工件。

步骤 5:测试/可视化工件(可选)

注意:这是一个完全可选的步骤。仅在必要或要求时执行。

要测试/可视化工件,请使用可用的工具(包括其他技能或内置工具,例如 Playwright 或 Puppeteer)。一般来说,避免预先测试工件,因为它会增加请求和可以看到完成的工件之间的延迟。如果有要求或出现问题,请在展示工件后稍后进行测试。

参考

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供完整的前端工件构建工具链,支持 React+TypeScript+Tailwind+shadcn/ui 技术栈
  • 包含初始化、开发、捆绑、测试全流程,解决用户在 Claude 中创建复杂前端工件的实际需求
  • 预装 40+ shadcn/ui 组件,显著提升开发效率
Trigger Precision95/100

Highlights

  • description 明确描述使用现代前端 Web 技术创建多组件工件的工具套件
  • 触发词覆盖完整,边界清晰,避免与其他工具混淆
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含完整步骤划分(5个步骤)和端到端示例
  • frontmatter 完整,技术栈说明详细,设计指南实用
Execution Reliability88/100

Highlights

  • 提供了完整的初始化脚本和捆绑脚本,工具来源明确
  • 参数配置清晰,覆盖主要异常场景,Node 18+ 兼容性处理完善
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • ui.shadcn.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.