gif-sticker-maker by minimax-ai/skills
npx skills add https://github.com/minimax-ai/skills --skill gif-sticker-maker将用户照片转换为 4 个动态 GIF 贴纸(Funko Pop / 泡泡玛特风格)。
开始任何生成步骤前,请确保:
MINIMAX_API_KEY 已导出(例如 export MINIMAX_API_KEY='your-key')ffmpeg 在 PATH 中可用(用于步骤 3 的 GIF 转换)如果缺少任何前提条件,请先进行设置。未满足全部三项条件前,请勿进行生成。
询问用户(使用其语言):
"您想自定义贴纸的字幕,还是使用默认字幕?"
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
工具 :scripts/minimax_image.py
{action} 和 {caption},基于 image-prompt-template.txt 构建提示词。--subject-ref <user_photo_path> 参数,以便生成的手办保留人物真实的面部特征。python3 scripts/minimax_image.py "<prompt>" -o output/sticker_hi.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_laugh.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_cry.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_love.png --ratio 1:1 --subject-ref <photo>
--subject-ref仅适用于人物主体(API 限制:type=character)。对于动物/物体/标志,请省略该标志并依赖文本描述。
工具 :scripts/minimax_video.py 配合 --image 标志(图片转视频模式)
对于每个贴纸图片,基于 video-prompt-template.txt 构建提示词,然后:
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_hi.png -o output/sticker_hi.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_laugh.png -o output/sticker_laugh.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_cry.png -o output/sticker_cry.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_love.png -o output/sticker_love.mp4
所有 4 个调用都是独立的——并发运行。
工具 :scripts/convert_mp4_to_gif.py
python3 scripts/convert_mp4_to_gif.py output/sticker_hi.mp4 output/sticker_laugh.mp4 output/sticker_cry.mp4 output/sticker_love.mp4
输出 GIF 文件,与每个 MP4 文件位于相同位置(例如 sticker_hi.gif)。
输出格式(严格顺序):
<deliver_assets> 块<deliver_assets> 之后不得有任何文本<deliver_assets>
<item><path>output/sticker_hi.gif</path></item>
<item><path>output/sticker_laugh.gif</path></item>
<item><path>output/sticker_cry.gif</path></item>
<item><path>output/sticker_love.gif</path></item>
</deliver_assets>
---|---|---|---
1 | 开心挥手 | hi | 挥手,头部轻微倾斜
2 | 开怀大笑 | laugh | 笑得身体抖动,眼睛眯起
3 | 哭泣流泪 | cry | 眼泪流下,身体颤抖
4 | 比心手势 | love | 双手比心,眼睛闪烁
多语言默认字幕请参见 references/captions.md。
<deliver_assets> 必须是响应的最后一部分,其后不得有任何文本每周安装量
103
代码仓库
GitHub 星标数
3.5K
首次出现
7 天前
安全审计
安装于
codex101
cursor100
opencode100
kimi-cli99
github-copilot99
gemini-cli99
Convert user photos into 4 animated GIF stickers (Funko Pop / Pop Mart style).
Before starting any generation step, ensure:
MINIMAX_API_KEY is exported (e.g. export MINIMAX_API_KEY='your-key')ffmpeg is available on PATH (for Step 3 GIF conversion)If any prerequisite is missing, set it up first. Do NOT proceed to generation without all three.
Ask user (in their language):
"Would you like to customize the captions for your stickers, or use the defaults?"
Tool : scripts/minimax_image.py
{action} and {caption}.--subject-ref <user_photo_path> so the generated figurine preserves the person's actual facial likeness.python3 scripts/minimax_image.py "<prompt>" -o output/sticker_hi.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_laugh.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_cry.png --ratio 1:1 --subject-ref <photo>
python3 scripts/minimax_image.py "<prompt>" -o output/sticker_love.png --ratio 1:1 --subject-ref <photo>
--subject-refonly works for person subjects (API limitation: type=character). For animals/objects/logos, omit the flag and rely on text description.
Tool : scripts/minimax_video.py with --image flag (image-to-video mode)
For each sticker image, build a prompt from video-prompt-template.txt, then:
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_hi.png -o output/sticker_hi.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_laugh.png -o output/sticker_laugh.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_cry.png -o output/sticker_cry.mp4
python3 scripts/minimax_video.py "<prompt>" --image output/sticker_love.png -o output/sticker_love.mp4
All 4 calls are independent — run concurrently.
Tool : scripts/convert_mp4_to_gif.py
python3 scripts/convert_mp4_to_gif.py output/sticker_hi.mp4 output/sticker_laugh.mp4 output/sticker_cry.mp4 output/sticker_love.mp4
Outputs GIF files alongside each MP4 (e.g. sticker_hi.gif).
Output format (strict order):
<deliver_assets> block with all GIF files<deliver_assets>
<item><path>output/sticker_hi.gif</path></item>
<item><path>output/sticker_laugh.gif</path></item>
<item><path>output/sticker_cry.gif</path></item>
<item><path>output/sticker_love.gif</path></item>
</deliver_assets>
---|---|---|---
1 | Happy waving | hi | Wave hand, slight head tilt
2 | Laughing hard | laugh | Shake with laughter, eyes squint
3 | Crying tears | cry | Tears stream, body trembles
4 | Heart gesture | love | Heart hands, eyes sparkle
See references/captions.md for multilingual caption defaults.
<deliver_assets> must be LAST in response, no text afterWeekly Installs
103
Repository
GitHub Stars
3.5K
First Seen
7 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex101
cursor100
opencode100
kimi-cli99
github-copilot99
gemini-cli99
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
50,900 周安装