[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-6e8fd0cc-d7f1-40ce-8c50-c83c31d7f8ca":3,"$fAV7RsuDfrt2V8z2mqSZhriAFXLBa1p-HXujkFWzxKr4":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"6e8fd0cc-d7f1-40ce-8c50-c83c31d7f8ca","web-artifacts-builder","构建强大的前端 claude.ai 碎片，请遵循以下步骤：","cat_design_graphic","mod_design","sickn33,design","---\nname: web-artifacts-builder\ndescription: \"To build powerful frontend claude.ai artifacts, follow these steps:\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Web Artifacts Builder\n\nTo build powerful frontend claude.ai artifacts, follow these steps:\n1. Initialize the frontend repo using `scripts\u002Finit-artifact.sh`\n2. Develop your artifact by editing the generated code\n3. Bundle all code into a single HTML file using `scripts\u002Fbundle-artifact.sh`\n4. Display artifact to user\n5. (Optional) Test the artifact\n\n**Stack**: React 18 + TypeScript + Vite + Parcel (bundling) + Tailwind CSS + shadcn\u002Fui\n\n## Design & Style Guidelines\n\nVERY IMPORTANT: To avoid what is often referred to as \"AI slop\", avoid using excessive centered layouts, purple gradients, uniform rounded corners, and Inter font.\n\n## Quick Start\n\n### Step 1: Initialize Project\n\nRun the initialization script to create a new React project:\n```bash\nbash scripts\u002Finit-artifact.sh \u003Cproject-name>\ncd \u003Cproject-name>\n```\n\nThis creates a fully configured project with:\n- ✅ React + TypeScript (via Vite)\n- ✅ Tailwind CSS 3.4.1 with shadcn\u002Fui theming system\n- ✅ Path aliases (`@\u002F`) configured\n- ✅ 40+ shadcn\u002Fui components pre-installed\n- ✅ All Radix UI dependencies included\n- ✅ Parcel configured for bundling (via .parcelrc)\n- ✅ Node 18+ compatibility (auto-detects and pins Vite version)\n\n### Step 2: Develop Your Artifact\n\nTo build the artifact, edit the generated files. See **Common Development Tasks** below for guidance.\n\n### Step 3: Bundle to Single HTML File\n\nTo bundle the React app into a single HTML artifact:\n```bash\nbash scripts\u002Fbundle-artifact.sh\n```\n\nThis 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.\n\n**Requirements**: Your project must have an `index.html` in the root directory.\n\n**What the script does**:\n- Installs bundling dependencies (parcel, @parcel\u002Fconfig-default, parcel-resolver-tspaths, html-inline)\n- Creates `.parcelrc` config with path alias support\n- Builds with Parcel (no source maps)\n- Inlines all assets into single HTML using html-inline\n\n### Step 4: Share Artifact with User\n\nFinally, share the bundled HTML file in conversation with the user so they can view it as an artifact.\n\n### Step 5: Testing\u002FVisualizing the Artifact (Optional)\n\nNote: This is a completely optional step. Only perform if necessary or requested.\n\nTo test\u002Fvisualize 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.\n\n## Reference\n\n- **shadcn\u002Fui components**: https:\u002F\u002Fui.shadcn.com\u002Fdocs\u002Fcomponents\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,208,1272,"2026-05-16 13:46:39",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"设计创意","design","mdi-palette-outline","UI 设计、生成艺术、品牌视觉等创意 Skill",3,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"视觉创意","graphic","mdi-brush","海报、Logo、插画等视觉创作",2,48,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"02ead5d3-c65c-4c50-890f-a8dee8da0205","1.0.0","web-artifacts-builder.zip",30027,"uploads\u002Fskills\u002F6e8fd0cc-d7f1-40ce-8c50-c83c31d7f8ca\u002Fweb-artifacts-builder.zip","e805c19c281b132f88d68c14c388d818313f1c469616700fcd7c2bd1c7169370","[{\"path\":\"LICENSE.txt\",\"isDirectory\":false,\"size\":11357},{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":3309},{\"path\":\"scripts\u002Fbundle-artifact.sh\",\"isDirectory\":false,\"size\":1517},{\"path\":\"scripts\u002Finit-artifact.sh\",\"isDirectory\":false,\"size\":9924},{\"path\":\"scripts\u002Fshadcn-components.tar.gz\",\"isDirectory\":false,\"size\":19967}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]