web-artifacts-builder — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited web-artifacts-builder (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
要构建功能强大的前端 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>这将创建一个完全配置好的项目,包含:
@/)要构建工件,请编辑生成的文件。请参阅下文的 常见开发任务 获取指导。
要将 React 应用打包成单个 HTML 工件:
bash scripts/bundle-artifact.sh这将创建 bundle.html 文件——一个自包含的工件,内联了所有 JavaScript、CSS 和依赖项。此文件可以直接在 Claude 对话中作为工件共享。
要求:您的项目根目录中必须有一个 index.html 文件。
该脚本的功能:
.parcelrc 配置文件最后,在对话中与用户共享打包好的 HTML 文件,以便他们可以将其作为工件查看。
注意:这是一个完全可选的步骤。仅在必要或被请求时执行。
要测试/可视化该工件,请使用可用工具(包括其他技能或像 Playwright 或 Puppeteer 这样的内置工具)。通常,避免预先测试工件,因为这会增加从请求到看到成品工件之间的延迟。如果在呈现工件后被请求或出现问题,则稍后进行测试。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.