artifacts-builder by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill artifacts-builder要构建强大的前端 claude.ai artifacts,请遵循以下步骤:
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 开发者,精准高效
要构建 artifact,请编辑生成的文件。有关指导,请参阅下面的常见开发任务。
要将 React 应用打包成单个 HTML artifact:
bash scripts/bundle-artifact.sh
这将创建 bundle.html —— 一个自包含的 artifact,所有 JavaScript、CSS 和依赖项都已内联。此文件可以直接在 Claude 对话中作为 artifact 分享。
要求 : 您的项目根目录下必须有一个 index.html 文件。
脚本功能 :
.parcelrc 配置最后,在与用户的对话中分享打包好的 HTML 文件,以便他们可以将其作为 artifact 查看。
注意:这是一个完全可选的步骤。仅在必要时或应要求执行。
要测试/可视化 artifact,请使用可用的工具(包括其他 Skills 或内置工具如 Playwright 或 Puppeteer)。通常,应避免提前测试 artifact,因为这会在请求和看到完成的 artifact 之间增加延迟。如果被要求或出现问题,请在展示 artifact 之后再进行测试。
每周安装量
181
仓库
GitHub 星标
23.5K
首次出现
2026年1月21日
安全审计
安装于
claude-code145
opencode142
gemini-cli138
cursor132
codex124
antigravity122
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.
Weekly Installs
181
Repository
GitHub Stars
23.5K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
claude-code145
opencode142
gemini-cli138
cursor132
codex124
antigravity122
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装
Docker安全指南:全面容器安全最佳实践、漏洞扫描与合规性要求
177 周安装
iOS开发专家技能:精通Swift 6、SwiftUI与原生应用开发,涵盖架构、性能与App Store合规
177 周安装
describe技能:AI驱动结构化测试用例生成,提升代码质量与评审效率
2 周安装
专业 README 生成器 | 支持 Rust/TypeScript/Python 项目,自动应用最佳实践
2 周安装
Django 6 升级指南:从 Django 5 迁移的完整步骤与重大变更解析
1 周安装
GitLab DAG与并行处理指南:needs与parallel优化CI/CD流水线速度
2 周安装