Clawd 像素风动画生成器。根据用户的自然语言描述,生成自包含的 HTML 像素风动画文件,主角是 Claude Code 的吉祥物 Clawd(像素风小螃蟹)。当用户提到 clawd、clawd 动画、像素动画、pixel animation、给 clawd 做一个小动画、让小螃蟹做某事、或任何涉及为 Clawd 角色创建动画场景的需求时,务必使用此 skill。即使用户只是说"让小螃蟹安慰一下我"或"今天和小螃蟹的合作很愉快",也应触发。请判断用户互动需求的深度,如果用户互动意图只是"快速/简单动画"或"单一状态表情",应使用 clawd-animation-lite(消耗token更少,时长更短)而非此 skill。
npx skills add https://github.com/YiShu5/claude-skills --skill clawd-animation
你是 Clawd 像素动画的创作引擎。用户给你一句话(比如"clawd 在雨中撑伞"),你生成一个完整的、可直接在浏览器打开的 HTML 动画文件。
Clawd 是 Claude Code 的官方吉祥物——一只像素风的小螃蟹,配色温暖(珊瑚橙 #CD6E58),造型扁平可爱。所有动画必须忠实于这个视觉身份。
收到用户描述后,按以下步骤执行:
从用户描述中提取:
将动画拆分为 3-6 个阶段(phase),遵循叙事弧线:
引入 → 发现/触发 → 核心动作(可多阶段)→ 情绪高潮/收尾
每个阶段定义:
总时长控制在 4-8 秒循环,默认 5 秒。
如果场景需要模板中没有的道具:
道具设计原则:
references/template.html 作为基础=== YOUR ANIMATION HERE === 区域填入:getPhase(t) 阶段定义render(f) 中的完整动画逻辑<title> 和 info 文字将生成的 HTML 文件保存,文件名使用英文短横线命名(如 rainy-umbrella.html)。
px(gx, gy, color) 函数,不使用反锯齿image-rendering: pixelated14×8 扁平宽体。身体/眼睛/锚点坐标完整定义在 template.html 的 CLAWD_BODY 和 EYES 对象里,直接照抄即可。
关键约束:
#CD6E58,无渐变无阴影forward / look_right / look_left / look_down / blink完整定义在 template.html 的 PALETTE 对象中,始终从 PALETTE 引用颜色,不硬编码 hex。新道具颜色直接添加到 PALETTE。
particles = []<script> 中requestAnimationFrame 驱动,30 FPS这个系统适合生成单角色、单场景、简单叙事的小动画。
合理的请求:
超出范围的请求(应礼貌告知用户简化):
在生成动画前,务必读取以下参考资源:
| 文件 | 何时读取 | 内容 |
|------|---------|------|
| references/template.html | 每次生成都读 | 完整的动画引擎模板,包含所有绘制函数和引擎代码 |
| references/ice-cream.html | 仅当对多阶段节奏编排没有把握时才读;如果你已理解动画设计模式,跳过此文件,只读 template.html 即可 | 高质量范例:5秒9阶段的完整动画,展示道具设计、阶段编排、粒子使用的最佳实践 |
| references/clawd-kiss.html | 需要参考情绪/粒子表达时 | 无嘴巴版范例:用腮红(drawBlush)、眼神、爱心粒子表达情绪,展示了如何不依赖嘴巴叙事 |
| references/palette.json | 需要确认颜色时 | 完整调色板 |
用户输入: "clawd 吃冰淇淋"
Claude 的思考过程:
产出: ice-cream.html — 参见 references/ice-cream.html
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Improves the quality of images, especially screenshots, by enhancing resolution, sharpness, and clarity. Perfect for preparing images for presentations, documentation, or social media posts.
Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.
Lightweight WSI tile extraction and preprocessing. Use for basic slide processing tissue detection, tile extraction, stain normalization for H&E images. Best for simple pipelines, dataset preparation, quick tile-based analysis. For advanced spatial proteomics, multiplexed imaging, or deep learning pipelines use pathml.
Microscopy data management platform. Access images via Python, retrieve datasets, analyze pixels, manage ROIs/annotations, batch processing, for high-content screening and microscopy workflows.
Python library for working with DICOM (Digital Imaging and Communications in Medicine) files. Use this skill when reading, writing, or modifying medical imaging data in DICOM format, extracting pixel data from medical images (CT, MRI, X-ray, ultrasound), anonymizing DICOM files, working with DICOM metadata and tags, converting DICOM images to other formats, handling compressed DICOM data, or processing medical imaging datasets. Applies to tasks involving medical image analysis, PACS systems, radiology workflows, and healthcare imaging applications.
This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning models on custom datasets.
Take yishu5/clawd-animation from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.