web-artifacts-builder by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill web-artifacts-builder要构建强大的前端 claude.ai 工件,请按照以下步骤操作:
scripts/init-artifact.sh 初始化前端仓库scripts/bundle-artifact.sh 将所有代码打包成单个 HTML 文件技术栈 : React 18 + TypeScript + Vite + Parcel (打包) + Tailwind CSS + shadcn/ui
非常重要:为了避免通常所说的“AI 风格泛滥”,请避免使用过多的居中布局、紫色渐变、统一的圆角以及 Inter 字体。
运行初始化脚本以创建新的 React 项目:
bash scripts/init-artifact.sh <project-name>
cd <project-name>
这将创建一个完全配置好的项目,包含:
@/)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
要构建工件,请编辑生成的文件。有关指导,请参阅下面的常见开发任务。
要将 React 应用打包成单个 HTML 工件:
bash scripts/bundle-artifact.sh
这将创建 bundle.html —— 一个自包含的工件,所有 JavaScript、CSS 和依赖项都已内联。此文件可以直接在 Claude 对话中作为工件分享。
要求 : 您的项目必须在根目录下有一个 index.html 文件。
脚本功能 :
.parcelrc 配置最后,在与用户的对话中分享打包好的 HTML 文件,以便他们可以将其视为工件查看。
注意:这是一个完全可选的步骤。仅在必要时或应要求执行。
要测试/可视化工件,请使用可用的工具(包括其他 Skills 或内置工具如 Playwright 或 Puppeteer)。通常,避免提前测试工件,因为这会在请求和看到最终工件之间增加延迟。如果被要求或出现问题,可以在展示工件之后再进行测试。
此技能适用于执行概述中描述的工作流或操作。
每周安装量
277
仓库
GitHub 星标数
27.1K
首次出现
2026年1月19日
安全审计
安装于
opencode226
gemini-cli226
claude-code222
antigravity216
cursor196
codex195
To build powerful frontend claude.ai artifacts, follow these steps:
scripts/init-artifact.shscripts/bundle-artifact.shStack : React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn/ui
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.
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:
@/) configuredTo build the artifact, edit the generated files. See Common Development Tasks below for guidance.
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 :
.parcelrc config with path alias supportFinally, share the bundled HTML file in conversation with the user so they can view it as an artifact.
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.
This skill is applicable to execute the workflow or actions described in the overview.
Weekly Installs
277
Repository
GitHub Stars
27.1K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode226
gemini-cli226
claude-code222
antigravity216
cursor196
codex195
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装
代码复杂度分析工具:Python/Go代码质量检测与重构指南
273 周安装
批量处理器技能 - 高效批量处理文档,支持PDF转换、文本提取、文件重命名
273 周安装
Cypress 自动化测试指南:E2E 与组件测试最佳实践、安装配置与故障排除
273 周安装
Antigravity Manager - AI账户管理器与代理网关,支持Gemini/Claude多账户轮换与协议转换
273 周安装
Inngest 持久化函数教程:构建容错工作流与 TypeScript 实践指南
273 周安装
AI合同审查工具 - 依据谈判手册自动分析条款、标记偏差与商业影响
273 周安装