返回顶部
a

artifacts-builder-pro构件生成器

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
222
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

artifacts-builder-pro

Artifacts Builder

要构建强大的前端claude.ai artifacts,请遵循以下步骤:

  1. 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 生成痕迹,请避免过度使用居中布局、紫色渐变、统一圆角和Inter字体。

快速开始

第一步:初始化项目

运行初始化脚本创建新的React项目:
bash
bash scripts/init-artifact.sh <项目名称>
cd <项目名称>

这将创建一个完全配置好的项目,包含:

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

第二步:开发你的Artifact

要构建artifact,请编辑生成的文件。有关指导,请参阅下面的常见开发任务

第三步:打包为单个HTML文件

要将React应用打包为单个HTML artifact:
bash
bash scripts/bundle-artifact.sh

这将创建 bundle.html - 一个自包含的artifact,所有JavaScript、CSS和依赖都已内联。该文件可以直接在Claude对话中作为artifact分享。

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

脚本功能

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

第四步:与用户分享Artifact

最后,在对话中与用户分享打包后的HTML文件,以便他们可以将其作为artifact查看。

第五步:测试/可视化Artifact(可选)

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

要测试/可视化artifact,请使用可用工具(包括其他技能或内置工具,如Playwright或Puppeteer)。通常,避免预先测试artifact,因为这会在请求和看到完成的artifact之间增加延迟。在展示artifact后,如果被要求或出现问题,再进行测试。

参考

  • - shadcn/ui组件:https://ui.shadcn.com/docs/components

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 artifacts-builder-pro-1776102555 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 artifacts-builder-pro-1776102555 技能

通过命令行安装

skillhub install artifacts-builder-pro-1776102555

下载

⬇ 下载 artifacts-builder-pro v1.0.0(免费)

文件大小: 10.32 KB | 发布时间: 2026-4-15 11:44

v1.0.0 最新 2026-4-15 11:44
Initial release of artifacts-builder-pro: a toolkit for building advanced claude.ai HTML artifacts with modern frontend technologies.

- Provides scripts to initialize, develop, and bundle React + Tailwind + shadcn/ui projects into single HTML artifacts
- Includes 40+ shadcn/ui components and full Radix UI support
- Uses Vite (React 18 + TypeScript) for development and Parcel for bundling
- Ensures projects follow design guidelines to avoid common layout/style issues
- Instructions for artifact creation, bundling, and optional testing provided in SKILL.md

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部