Eileenes/creative-skills / skills/x-profile-3d-promo
x-profile-3d-promo
Verified把一个社交媒体主页(X / 小红书 / 公众号等)的截图做成"3D 主页介绍片":暗色主页斜放在 3D 空间、头像里跳出 3D 小人、置顶内容立起展示 + 数字滚动、撕纸拼贴墙、Logo 收尾卡,带配乐音效。用户给出主页链接和/或参考视频、要求做"个人主页介绍片 / 账号宣传片 / 类似风格视频"时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.7 KB |
| scripts/chroma_key.py | script | 600 B |
| scripts/grab_x_profile.js | script | 1.5 KB |
| scripts/make_audio.py | script | 2.5 KB |
| template/render.cjs | script | 1.6 KB |
| template/src/Root.tsx | other | 240 B |
| template/src/Video.tsx | other | 23.4 KB |
| template/src/index.ts | script | 88 B |
| template/tsconfig.json | config | 163 B |
scripts/chroma_key.py
View on GitHub# 绿幕抠图:python3 chroma_key.py in.jpg out.png
import sys, cv2, numpy as np
im = cv2.imread(sys.argv[1]).astype(np.float32)
b, g, r = im[..., 0], im[..., 1], im[..., 2]
d = g - np.maximum(r, b) # 绿色程度
a = 1 - np.clip((d - 25) / 60, 0, 1) # 透明度
a = cv2.GaussianBlur(a, (3, 3), 0)
im[..., 1] = np.where(d > 0, np.minimum(g, np.maximum(r, b) + 10), g) # 去绿边
out = np.dstack([im, a * 255]).astype(np.uint8)
ys, xs = np.where(a > 0.5)
out = out[max(0, ys.min() - 6):ys.max() + 6, max(0, xs.min() - 6):xs.max() + 6]
cv2.imwrite(sys.argv[2], out)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |