SkillsGrove
SkillsGrove/Video production/7ohnson/VLM-Generation-Harness/greybox-harness

greybox-harness

Installation

$npx skills add https://github.com/7ohnson/VLM-Generation-Harness --skill greybox-harness
$git clone --depth 1 https://github.com/7ohnson/VLM-Generation-Harness.git /tmp/VLM-Generation-Harness && mkdir -p ~/.claude/skills && cp -r /tmp/VLM-Generation-Harness/. ~/.claude/skills/greybox-harness
Please install this Agent Skill for me: https://github.com/7ohnson/VLM-Generation-Harness/tree/2c64ed4ddcbc6f002e3afd15c7c7492ddd0ae0ca/ — read its SKILL.md and scripts first, and only install it into my skills folder once you have confirmed it is safe.

Summary

Original description · MIT用 Blender 白模(greybox)给 AI 视频生成做机位、空间和切点的预演层——建房间、摆机位、导出参考视频喂进生成模型的 video 通道,再用规范化的 prompt 补齐表演与材质。当任务涉及「白模/greybox/previs/分镜预演」、要让同一场景的多个镜头保持空间一致、要精确控制硬切时刻、或要在花钱出片之前先验证机位和遮挡时使用。
The SKILL.md below is reproduced from 7ohnson/VLM-Generation-Harness (commit 2c64ed4) under the MIT license. The text is unchanged; only the file header metadata is omitted, images are shown as links, and very long files are truncated. Copyright 2026 Johnson Wang. License: LICENSE. Only the instructions file is shown; see the original repository for any scripts.

白模 harness · AI 视频生成的 dev 环境

白模是机位和空间的 dev 环境,生成模型是 prod。 先在 Blender 里把房间、机位、走位、切点试对,人 confirm 之后再花钱出片。

核心主张:空间和时间用几何控制,长相和表演用文字控制,两者不许互相越界。

什么时候用

  • 同一个场景要出好几条,需要它们看起来是同一个房间
  • 需要精确控制「第几秒切一刀」
  • 一条里有多个机位、多次硬切
  • 有「道具只能动一次」「人物统一从左往右」这类硬锁
  • 出片贵,想在花钱之前拦住错误

单镜头、无切点、空间不重要的片子,不需要这套东西。

目录

路径 是什么
blockout/ Blender 工具链。rig(建体块/双通道渲染/平面图)、human(可摆姿势的人体代理)、project(投影校验/遮挡扫描)
blockout/scene_template.py 开新场景从这里复制
tools/ verify_cuts(切点核验)、check_prompt(prompt 自检)、contact_sheet(接触表)、slice_shots(按镜号切片)
templates/ prompt 骨架、跨条复用的空间锁骨架
examples/boutique/ 一条 16 秒 7 镜 6 切的完整例子,含白模视频、平面图、prompt、核验报告
docs/ 流程、铁律、prompt 规范、模型侧实测、疑难排查

怎么跑

# 1. 建场景(复制模板改)
cp blockout/scene_template.py scenes/my_scene.py

# 2. 先算再渲 —— 每一步都不花钱
blender -b --python scenes/my_scene.py -- probe          # 人体关节实测坐标
blender -b --python scenes/my_scene.py -- project        # 构图数字:位置/占幅/距离
blender -b --python scenes/my_scene.py -- blockers       # 谁挡住了谁
blender -b --python scenes/my_scene.py -- plan  out      # 俯视平面图 + 视锥

# 3. 审片版给人看 → confirm
blender -b --python scenes/my_scene.py -- review      out
blender -b --python scenes/my_scene.py -- review_anim out/review
ffmpeg -framerate 24 -i out/review/f_%04d.png -pix_fmt yuv420p out/review.mp4

# 4. 送模版给模型
blender -b --python scenes/my_scene.py -- anim out/model
ffmpeg -framerate 24 -i out/model/f_%04d.png -pix_fmt yuv420p out/model.mp4

# 5. 写 prompt 并自检
python3 tools/check_prompt.py prompts/my.txt scenes/my_scene.py

# 6. 出片 → 核验
python3 tools/verify_cuts.py result.mp4 scenes/my_scene.py
python3 tools/contact_sheet.py result.mp4 -o sheet.png --scene scenes/my_scene.py

读哪份文档

三条最容易踩的

  1. 给模型的是平光灰模,不是彩色审片版。 参考视频是像素通道不是说明书通道 —— 描边、烧字、饱和色都可能被抄进成片。两个通道的几何逐字节一致, 但明度不一定 —— 审片版靠描边和颜色分层,送模版只有明度。跑 -- audit 自检。
  2. 要看穿的地方必须是真的洞。 Workbench 里没有透明, 一块「玻璃」就是一堵实心墙,主体会被吃掉。
  3. 核验数据从场景文件取,不从 prompt 取。 prompt 的时间码本来就是照着场景文件抄的, 拿它验 prompt 是循环验证。

依赖

  • Blender 5.x(用了自带的 Rigify;BLENDER_WORKBENCH 直接赋值可用,虽然不在 engine 枚举里)
  • ffmpeg / ffprobe
  • Python + Pillow(只有接触表用)
  • 一个提供「参考视频 + 参考图」两个通道的视频生成模型
View full license text (MIT)
MIT License

Copyright (c) 2026 Johnson Wang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.