Communitygithub.com

minimalistic-graphics

生成极简黑白线条垂直动画(1080x1920),用于短视频。细线台阶逐级上升,白色圆点沿台阶跳跃,顶部圆点周围绘制轨道与火花,并有一行低调的小写文字切换为第二行。

minimalistic-graphics 是什么?

该技能(minimalistic-graphics)用于生成极简风格的黑白线稿垂直动画(1080x1920),特别适合需要平静、自律成长视觉的短视频(Reels)。核心视觉元素包括:细线台阶逐级上升、一个白色圆点沿台阶跳跃、圆点停留在顶部后周围出现旋转轨道与火花,以及一行低调的小写文字切换为第二行。用户需提供1-2句简短文字(每行不超过30字符),技能会自动构建JSON规格文件,使用Node.js、Python和ffmpeg渲染最终MP4视频及剧照拼图。支持自定义台阶数量(3-7级)、黑白背景切换(light模式)、以及通过模板文件修改基础图形元素。要求最终输出必须通过视觉QA,确保文字完整显示在安全区内且结尾帧圆点与轨道清晰。技能强调安静、克制的视觉风格,最适合表现稳步进展、习惯养成、耐心与复利等主题。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hieubm1707/gemini-animation-skills/tree/HEAD/skills/minimalistic-graphics

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

极简图形(minimalistic-graphics)

┌──────────────────────┐
│ every step feels     │  一行小写文字(顶部切换到第二行)
│ small.         (•)   │  轨道 + 环 + 圆点周围的火花
│              ┌──┐    │
│         ┌──┐ │  │    │  细线台阶逐级上升,圆点沿台阶跳跃
│    ┌──┐ │  │ │  │    │
│ ┌──┐  │ │  │ │  │    │
└──────────────────────┘

安装检查

SKILL_DIR 是包含本 SKILL.md 文件的目录(请在 <skills> 中检查路径)。

SKILL_DIR="$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<包含此 SKILL.md 的目录>")"
KIT="$(python3 -c 'import os,sys; print(os.path.realpath(os.path.join(sys.argv[1], "..", "..", "kit")))' "$SKILL_DIR")"
[ -s "$KIT/vendor/gsap.min.js" ] || bash "$KIT/setup.sh"

需要 ffmpeg, node (18+), 以及 python3 (3.9+)。

步骤

  1. 撰写文案。 将用户的想法拆成1或2行简短短语:一个铺垫和一个转折(例如 "every step feels small." / "until you look back.")。每行不超过约30个字符,小写,以句点结尾。
  2. 编写规格文件。 使用下面的 schema 创建 <名称>.minimal.json 文件。
  3. 先验证。 运行:
    python3 "$SKILL_DIR/build.py" <名称>.minimal.json --check
    
  4. 渲染。 运行:
    python3 "$SKILL_DIR/build.py" <名称>.minimal.json
    
    大约需要10秒。使用 --snap 2.4 可快速检查单帧 PNG。
  5. 视觉检查(必需)。 使用 read_file 检查 <名称>.minimal.sheet.jpg:
    • 每一行文字都干净地显示在红色安全区框内的一行上。
    • 最终帧清晰显示顶部圆点、轨道环和第二行文字。
  6. 交付。 返回可点击的 .mp4 和 .sheet.jpg 链接。

规格 Schema

{
  "lines": ["every step feels small.", "until you look back."],
  "steps": 5,
  "light": false
}
  • lines:1或2个短字符串(每个不超过约30字符)。当圆点到达顶部台阶时,第二行文字切换显示。
  • steps:整数 3 到 7。台阶越多,跳跃越快,片段略微延长(5级台阶约3.8秒)。
  • light:true 为黑色线条白色背景;false 为白色线条纯黑背景。
  • hold(可选):片尾额外保持的秒数。
  • out(可选):自定义输出的 .mp4 路径。
  • template(可选):相对于规格文件的自定义 template.html 副本路径。

自定义图形(高级)

如需其他极简图形(迷宫、蜿蜒线条、填满的圆),请将 "$SKILL_DIR/template.html" 复制到规格文件旁边,设置 "template": "template.html",并在保持视觉语法不变的前提下编辑 SVG/GSAP 形状:纯黑画布,细白线条,一个实心白点,一行低调的小写文字。

审美规则

  • 安静且克制:小写,无表情符号,无加粗强调,无感叹号。
  • 紧扣隐喻:最适合表现稳步进展、习惯养成、耐心与复利。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

breakdown

Makes a 3D exploded-view vertical animation (1080x1920) for a reel using three.js. A phone floats on a dark studio backdrop, separates layer by layer (glass, OLED screen, frame, logic board, battery, back), and draws thin leader lines to numbered labels. Use when the user asks for /breakdown, an exploded view, a "what's inside" teardown, or a labelled 3D hardware breakdown.

graph

Makes a minimal vertical (1080x1920) line-graph animation for a reel. A smooth black line draws itself on white (or white on black) while one large number counts up with the tip and lands on the final value. Use when the user asks for /graph, a growth chart, a "0 to 100K" number counter, an animated stat, or a minimal metric line chart.

low-poly

Makes a PS1/N64-era retro low-poly 3D vertical animation (1080x1920) for a reel using three.js. Chunky low-res nearest-neighbour pixels, vertex snapping, dithering, warm flat lighting, and small yellow captions with a thin black outline. Built-in scene: a dog waits on a station platform while a train arrives and leaves, and seasons turn to snow. Use when the user asks for /low-poly, PS1-style, N64 retro 3D, or "low poly shorts" animations.

map-route

Makes a 3D map route vertical animation (1080x1920) for a reel using three.js. Features a clean white 3D city with parks and a river, a coloured route drawing itself while the camera follows, a bouncing red destination pin, a live countdown ETA card, and a destination card. Use when the user asks for /map-route, an animated route, a "from A to B" map, a journey, or a commute animation.

相关技能