Eileenes/creative-skills / skills/x-profile-3d-video
x-profile-3d-video
Verified用 X(Twitter) 主页真实截图 + Remotion 代码动画,制作 30 秒竖屏 3D 风格个人介绍短片(主页平板翻转、头像弹出、置顶帖立起+浏览量滚动、撕纸拼贴墙、X Logo 收尾卡),自动合成配乐音效。当用户想“用我的 X 主页做一个类似的 3D 介绍视频/宣传片”时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.5 KB |
| scripts/chroma_key.py | script | 600 B |
| scripts/grab_x_profile.js | script | 3.1 KB |
| scripts/make_audio.py | script | 2.5 KB |
| template/render.cjs | script | 2.2 KB |
| template/src/Root.tsx | other | 240 B |
| template/src/Video.tsx | other | 24.0 KB |
| template/src/config.ts | script | 1.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 |