帮助用户用 React、Tailwind 与 shadcn/ui 构建复杂网页组件与交互原型
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "web-artifacts-builder" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/skills/main/skills/web-artifacts-builder/SKILL.md 2. 保存为 ~/.claude/skills/web-artifacts-builder/SKILL.md 3. 装好后重载技能,告诉我可以用了
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.
创建、读取、编辑与整理 PPTX 演示文稿及其中的文本和备注内容。
用于创建、编辑与优化AI技能,并评测其效果与触发准确性。
帮助用户制作适配 Slack 的动画 GIF,并检查规格与动画效果。
用 p5.js 与可控随机参数生成原创算法艺术与交互式视觉作品
将各类内容套用 Anthropic 官方品牌色彩与字体规范。
用于创建、编辑与整理Word文档,并生成带专业排版的 .docx 文件。
帮助用户设计并生成高质量、可生产的前端界面与网页组件代码
帮助用户创作海报、插画等静态视觉作品,并导出为 PNG 或 PDF。
将 HTML、Markdown 与多文件站点快速发布为可分享链接。
使用 Playwright 测试本地 Web 应用、排查界面问题并采集截图与日志
为幻灯片、文档和落地页快速套用或生成统一视觉主题。
帮助你基于接口文档或脚本快速生成可组合的命令行工具