prototype
MAmattpocock/skills337k4,978 new stars in the last 7 days
把宠物素材做成 dsh-go 可导入的宠物包:clawd-on-desk 主题、GIF/PNG/WebP 表情包、逐帧目录、Aseprite 导出或单张图片。用于「把这个主题做成宠物」「把表情包做成宠物」「这个能导入吗」和 /pet-theme。
把素材目录转成宠物包 zip,用户在「设置 → 宠物 → 导入」里选它。脚本在 scripts/ 下。
支持(按目录内容自动识别,一个目录只放一种):
没认出来的动画自动进待机小剧场,不会浪费。
拿到素材目录(用户给链接就 git clone --depth 1,给 zip 就解压)。目录里没有 theme.json 也没有图片就停下,说清楚支持什么。
缺依赖才装:python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Pillow numpy
转:
python3 <scripts>/pet_theme_convert.py --input <目录> --out /tmp/pet-pack --id <id> --input-name <名字> [--source <链接>]
像素画(小图、硬边)自动保持尺寸锐利绘制;其它素材自动用 144 画布平滑绘制。 想强制锐利加 --crisp。
校验,必须 PASS:
python3 <scripts>/pet_pack_check.py /tmp/pet-pack/<id> --compat-reactions
打包:
cd /tmp/pet-pack/<id> && python3 -m zipfile -c <输出路径>/<id>.zip pack.json *.png
手机输出到 /sdcard/Download/DSH-Go/。
收尾:告诉用户导入路径,作者与授权显示在宠物页底部;只做自用转换,第三方素材 (尤其 CC BY-NC-SA 同人作品)不要打包进发行版或市场。
MAmattpocock/skills337k4,978 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
FIfirecrawl/firecrawl215k5,595 new stars in the last 7 days
Apply color and font themes to slides, docs and web pages, with 10 built-in themes.
ANanthropics/skills203k3,265 new stars in the last 7 days
Set visual direction and typography for UI, avoiding templated defaults.
ANanthropics/skills203k3,265 new stars in the last 7 days
Build complex HTML artifacts with React, Tailwind CSS, state management and routing.
ANanthropics/skills203k3,265 new stars in the last 7 days