Video Stickfigure logo

Video Stickfigure

Community
zrt-ai-lab
video-stickfigure

火柴人图片生成技能。使用AI生成粉笔画风格火柴人,并用HSV统一背景色。当需要生成火柴人视频素材时触发。

Overview

Publisherzrt-ai-lab
Repositoryopencode-skills
Skill namevideo-stickfigure
Stars
293
Forks
75
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zrt-ai-lab on GitHub. Read the source before you install it.

Installation

Install the Video Stickfigure AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zrt-ai-lab/opencode-skills/tree/main/video-stickfigure
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zrt-ai-lab/opencode-skills.git /tmp/opencode-skills
mkdir -p .claude/skills
cp -r /tmp/opencode-skills/video-stickfigure .claude/skills/video-stickfigure
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Video Stickfigure in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Video Stickfigure on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Video Stickfigure is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

火柴人生图技能

🚨 核心原则

必须使用AI生图!禁止用PIL画线条!

检查标准:生成的图片文件 > 50KB


🔧 生图工具

使用 image-service skill:

bash
python ~/.openclaw/skills/image-service/scripts/text_to_image.py "[prompt]" -r 9:16 -o stick1.png

📝 Prompt模板

深墨绿背景版(推荐·默认)

minimalist chalk-style stick figure on dark green chalkboard background #3c5b45,
white chalk line art, simple 5-stroke drawing style,
[动作描述],
exaggerated pose, hand-drawn feel, chalk texture,
no shading, no gradient, stark contrast,
vertical composition 9:16, no text, no watermark

纯黑背景版(备选)

minimalist stick figure, pure black background #000000,
white line art only, simple 5-stroke drawing,
[动作描述],
exaggerated pose, no shading, no gradient, no gray,
stark contrast, cartoon style,
vertical composition 9:16, no text, no watermark

选择建议:

  • 深墨绿版:有黑板质感,视觉更柔和 ✅ 推荐
  • 纯黑版:对比度更高,更简洁

动作描述 + 氛围元素(必须包含!)

火柴人不能孤零零的!必须加氛围元素来衬托情绪!

情绪/概念人物动作🌟 氛围元素(必加!)
衰老/疲惫person slumped over, tired posture+ withered leaves falling, dim shadows, cracked ground
枯萎/消沉person wilting like a dying plant+ dead tree nearby, falling petals, dark clouds
向上/成长person climbing stairs upward+ sunlight rays from above, distant mountain peak, stars
扛事/承担person lifting heavy weight overhead+ storm clouds, rain drops, lightning in background
看远/远眺person standing on cliff, hand over eyes+ vast horizon, clouds below feet, sunrise glow
容人/包容person with arms wide open+ small figures approaching, warm light rays, hearts floating
愉悦/快乐person jumping with joy, arms raised+ confetti, sparkles, fireworks in sky
成长/蜕变person breaking out of shell+ butterfly wings emerging, light beams, blooming flowers
思考/沉思person sitting cross-legged, hand on chin+ floating question marks, gears, light bulb above head
行动/奔跑person running forward with determination+ motion lines, wind effect, path stretching ahead

Prompt组装公式

[基础模板] + [人物动作] + [氛围元素] + [后缀]

示例:衰老场景

minimalist chalk-style stick figure on dark green chalkboard background #3c5b45,
white chalk line art, simple 5-stroke drawing style,
person slumped over tired posture aging feeling,
withered leaves falling around, dim shadows, cracked ground beneath,
exaggerated pose, hand-drawn feel, chalk texture,
no shading, no gradient, stark contrast,
vertical composition 9:16, no text, no watermark

示例:爬台阶场景

minimalist chalk-style stick figure on dark green chalkboard background #3c5b45,
white chalk line art, simple 5-stroke drawing style,
person climbing stairs upward with determination,
sunlight rays streaming from above, distant mountain peak visible, glowing stars,
exaggerated pose, hand-drawn feel, chalk texture,
no shading, no gradient, stark contrast,
vertical composition 9:16, no text, no watermark

⚠️ 氛围元素规则

  1. 必须添加 - 不加氛围元素的火柴人图太单调
  2. 与情绪匹配 - 消极情绪用暗元素,积极情绪用亮元素
  3. 不要太多 - 2-3个氛围元素足够,太多会杂乱
  4. 保持简约 - 氛围元素也是粉笔画风格,不要写实

🎨 HSV背景统一处理(必做!)

AI无法精确控制颜色!生图后必须用代码统一背景色!

处理脚本

python
import cv2
import numpy as np

def unify_background_hsv(input_path, output_path, target_hex="#3c5b45"):
    """
    用HSV范围替换统一背景色
    """
    img = cv2.imread(input_path)
    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
    
    # 绿色系HSV范围(覆盖AI生成的各种绿色)
    lower = np.array([35, 20, 20])
    upper = np.array([85, 255, 255])
    
    # 创建掩码
    mask = cv2.inRange(hsv, lower, upper)
    
    # 目标颜色 BGR
    target_bgr = tuple(int(target_hex.lstrip('#')[i:i+2], 16) for i in (4, 2, 0))
    
    # 替换背景
    result = img.copy()
    result[mask > 0] = target_bgr
    
    cv2.imwrite(output_path, result)
    return output_path

# 批量处理
import glob
for f in glob.glob("stick*.png"):
    if "_unified" not in f:
        out = f.replace(".png", "_unified.png")
        unify_background_hsv(f, out)
        print(f"处理完成: {out}")

命令行版本

bash
python3 << 'EOF'
import cv2
import numpy as np
import glob
import sys

target_hex = "#3c5b45"
target_bgr = tuple(int(target_hex.lstrip('#')[i:i+2], 16) for i in (4, 2, 0))

for f in glob.glob("stick*.png"):
    if "_unified" in f:
        continue
    img = cv2.imread(f)
    hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
    mask = cv2.inRange(hsv, np.array([35,20,20]), np.array([85,255,255]))
    result = img.copy()
    result[mask > 0] = target_bgr
    out = f.replace(".png", "_unified.png")
    cv2.imwrite(out, result)
    print(f"✅ {f} -> {out}")
EOF

✅ 检查清单(必须全部通过!)

在交付图片前,必须确认:

检查项标准不通过则
文件大小每张 > 50KB重新AI生图
图片数量与场景数量一致补充生成
背景颜色统一为 #3c5b45执行HSV处理
火柴人可见白色线条清晰重新生成
bash
# 快速检查文件大小
ls -la stick*_unified.png | awk '{if($5<50000) print "❌ "$9" 太小: "$5"B"; else print "✅ "$9": "$5"B"}'

📁 输出规范

文件说明
stick1.png, stick2.png, ...AI生成的原始图片
stick1_unified.png, ...HSV处理后的统一背景图片

后续流程只使用 *_unified.png 文件!


🚫 常见错误

错误后果正确做法
用PIL画线条视频看起来像测试图用image-service AI生图
跳过HSV处理背景色深浅不一必须执行HSV统一
文件<50KB图片质量差重新生成
用原图不用unified背景不统一只用_unified.png
火柴人没有氛围元素画面单调无感染力prompt必须加氛围元素

Frequently asked questions

What does the Video Stickfigure AI skill do?

火柴人图片生成技能。使用AI生成粉笔画风格火柴人,并用HSV统一背景色。当需要生成火柴人视频素材时触发。

Why use Video Stickfigure on TypingMind?

Because you install it once and use it with any model. Video Stickfigure is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Video Stickfigure in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zrt-ai-lab/opencode-skills/tree/main/video-stickfigure. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Video Stickfigure?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Video Stickfigure?

As many as you like. As long as a model supports skills, you can use Video Stickfigure with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Video Stickfigure AI skill free?

It is published on GitHub by zrt-ai-lab. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇