---
catalog_id: "R-002"
kind: "repo"
domain: "agent"
domain_label: "Agent 编排 / Agent Systems"
date: "2026-11-26"
title: "EL4CTEO/blender-skills"
verdict: "单JSON幂等脚本驱动三维生产，自带5.x迁移与质检"
summary: "面向 Blender 5.2 LTS+ / 5.3 的 28 个模块化 Agent Skill 套件，将复杂 3D 生产抽象为单 JSON 契约的幂等脚本、5.x 破坏性 API 迁移表以及强制量化质检 + 多视角接触表（Turnaround/Review Sheet）闭环。"
summary_en: "28 modular Blender 5.2+ agent skills wrapping 3D production in single-JSON idempotent scripts, 5.x API migration tables, and turnaround QA."
canonical_url: "https://oumuatown.com/repos/EL4CTEO__blender-skills/"
markdown_url: "https://oumuatown.com/repos/EL4CTEO__blender-skills.md"
og_image_zh: "https://oumuatown.com/og/zh/R-002.png"
og_image_en: "https://oumuatown.com/og/en/R-002.png"
cite_count: 47
repo: "el4cteo/blender-skills"
github_url: "https://github.com/el4cteo/blender-skills"
commit: "1a1cc6c"
tags:
  - "blender"
  - "agent-skills"
  - "headless-rendering"
  - "asset-qa"
  - "automation"
github_repos:
  - "https://github.com/el4cteo/blender-skills/tree/1a1cc6c"
  - "https://github.com/profrino/blender-mcp-assembly-skill/tree/afad3b1"
  - "https://github.com/nvidia/simready-blender-add-on/tree/cec4afc"
---

# R-002 · EL4CTEO/blender-skills

> **结论 / Verdict**: 单JSON幂等脚本驱动三维生产，自带5.x迁移与质检
> **EN Summary**: 28 modular Blender 5.2+ agent skills wrapping 3D production in single-JSON idempotent scripts, 5.x API migration tables, and turnaround QA.

## Provenance & Evidence

- Primary Repository: https://github.com/el4cteo/blender-skills (@1a1cc6c)
- Referenced Repository: https://github.com/profrino/blender-mcp-assembly-skill/tree/afad3b1
- Referenced Repository: https://github.com/nvidia/simready-blender-add-on/tree/cec4afc
- Verified Source Citations (#Lxx): 47
- Web Reader: https://oumuatown.com/repos/EL4CTEO__blender-skills/

# EL4CTEO/blender-skills

> 仓库地址：https://github.com/EL4CTEO/blender-skills · 审计版本：`EL4CTEO/blender-skills@1a1cc6c` · 审计日期：2026-11-26
> 来源文章：[关联文章](../articles/2026-11-26-fable-5-2-motion-playbook.md)

## 定位与解决的真问题

- **核心定位与目标用户**：为编码 Agent（Claude Code、Codex、OpenCode、Gemini CLI、Cursor 等）提供覆盖建模、材质、绑定、动画、模拟、渲染、导出与自动化质检的 **28 个 Blender 5.2 LTS+ / 5.3 技能库**（`AGENTS.md#L1-L41`）。
- **相比常规做法解决的关键痛点**：
  1. **对抗 LLM 训练数据中的 Blender 3.x/4.x 过时 API 幻觉**：专门维护经过真机实测验证的 5.0–5.3 破坏性变更表与 `bpy` 模式库，规避 `action.fcurves`、`BLENDER_EEVEE_NEXT`、`material.use_nodes`、`scene.node_tree` 等高频报错（`skills/blender-core/SKILL.md#L76-L78`、`skills/blender-core/references/api-changes-5x.md#L1-L110`）。
  2. **解决多语言界面与动态枚举盲猜**：禁止按本地化名称查找节点，统一强制按 `node.type` 检索与 `bl_rna` 枚举自省（`shared/_bpyx.py#L99-L114`、`skills/blender-core/SKILL.md#L64-L65`）。
  3. **消除无头批量渲染上下文爆破**：通过宿主机包装器只提取标记行 `@@JSON@@{...}`，将 Blender 启动噪声和异常堆栈隔离在可控 JSON 载荷之外（`shared/_bpyx.py#L35-L60`、`skills/blender-core/scripts/run_in_blender.py#L76-L87`）。

## 技术栈与核心目录结构

- **语言 / 运行时 / 关键依赖**：Python 3.9+（宿主机调度器）+ Blender 5.2 LTS / 5.3.0 内嵌 Python 3.13（`bpy`、`bmesh`、`mathutils`、`numpy`），遵循 `agentskills.io` 规范（`AGENTS.md#L3`、`skills/blender-core/references/api-changes-5x.md#L12`）。
- **28 个 Skill 模块全景与关键目录划分**（`AGENTS.md#L11-L41`、`skills/` 目录实盘计数 28 个）：
  - **基础路由与流水线（3）**：`blender-core`（执行契约与路由）、`blender-pipeline-automation`（批量/分片 CLI 与 CI）、`blender-addon-development`。
  - **建模、拓扑与场景（7）**：`blender-scene-setup`、`blender-hardsurface-modeling`、`blender-sculpting`、`blender-retopology-uv`、`blender-geometry-nodes`、`blender-environment-kits`、`blender-game-optimization`。
  - **材质、纹理与烘焙（4）**：`blender-pbr-materials`、`blender-texturing`、`blender-texture-baking`、`blender-stylized-npr`。
  - **角色、绑定与动画（5）**：`blender-character-rigging`、`blender-facial-shapekeys`、`blender-animation`、`blender-clothing`、`blender-hair-grooming`。
  - **灯光、气氛、模拟与渲染（6）**：`blender-lighting-lookdev`、`blender-rendering`、`blender-time-of-day`、`blender-weather-fx`、`blender-simulation`、`blender-video-editing`。
  - **交付、质检与端到端剧本（3）**：`blender-export-pipelines`、`blender-asset-qa`、`blender-workflow-recipes`。
  - **共享与工程校验工具**：`shared/_bpyx.py` + `tools/sync_shared.py`（单一真相同步至各 `skills/*/scripts/_bpyx.py`）、`tools/validate_skills.py`（前端元数据、Token 预算、相对链接与脚本 AST 契约检查）、`tools/run_tests.py` + `tests/test_*.py`。

## 核心实现源码级剖析（附文件路径与行号）

1. **双模态执行契约与 `@@JSON@@` 上下文压缩**（`shared/_bpyx.py#L1-L68`、`skills/blender-core/scripts/run_in_blender.py#L29-L88`）：
   - 每份技能脚本同时暴露 Python API `run(**kwargs) -> dict`（供 live MCP 会话直接 `import` 调用）与标准 CLI（`blender -b f.blend --factory-startup --python-exit-code 1 -P x.py -- --args`）。
   - `run_in_blender.py` 按 `$BLENDER_EXE` → `PATH` → 平台默认路径（取最高版本号）定位 Blender，执行后仅过滤并打印以 `@@JSON@@` 开头的单行输出；`_bpyx.cli` 捕获未处理异常并输出紧凑 `{"ok":false,"error":"..."}` 替代百行堆栈回溯污染 Agent 上下文（`shared/_bpyx.py#L35-L60`、`skills/blender-core/scripts/run_in_blender.py#L29-L88`）。

2. **Blender 5.2 / 5.3 强校验 API 规则与数据优先原则**（`skills/blender-core/SKILL.md#L60-L78`、`skills/blender-core/references/api-changes-5x.md#L5-L109`）：
   - **Data API > `bpy.ops`**：无头模式缺少 3D View 上下文，因此脚本优先使用 `bpy.data`、`bmesh`、`mesh.attributes` 和 `numpy` `foreach_get/set`；若必须用 operator 则包裹 `bpy.context.temp_override(...)` 并校验返回 `{'FINISHED'}`（`skills/blender-core/SKILL.md#L61-L62`）。
   - **5.x 关键破坏性迁移约束**：
     - 动画槽（Slotted Actions）：`action.fcurves` 已移除，必须通过 `anim_utils.action_ensure_channelbag_for_slot(action, slot)` 写入 `cb.fcurves`，且绑定 `animation_data.action` 时需检查 `action_slot`（`skills/blender-animation/SKILL.md#L14-L18`、`skills/blender-core/references/api-changes-5x.md#L65-L68`）。
     - 渲染与合成器：引擎名从 `BLENDER_EEVEE_NEXT` 回归 `BLENDER_EEVEE`；`scene.node_tree` 变为 `scene.compositing_node_group`（5.3 扩展为 `scene.compositor_effects` 效果栈）；输出视频须**先设 `image_settings.media_type` 再设 `file_format`**；后台使用 `gpu` 模块须先调用 `gpu.init`；5.3 天空节点 `sun_disc` 会真实照亮场景（配合 Sun 灯时须置 `False`）（`skills/blender-rendering/SKILL.md#L28-L59`、`skills/blender-core/references/api-changes-5x.md#L40-L109`）。
     - 节点与修改器：`material.use_nodes` 废弃；节点按 `n.type == "BSDF_PRINCIPLED"` 查找；Principled BSDF 接口改名为 `Specular IOR Level`、`Coat Weight`、`Transmission Weight` 等；Geometry Nodes 修改器输入须通过 `mod.properties.inputs.Socket_2.value` 访问（`shared/_bpyx.py#L99-L101`、`skills/blender-core/references/api-changes-5x.md#L38-L46`）。

3. **量化几何与材质质检闸门（`qa_check.py`）**（`skills/blender-asset-qa/SKILL.md#L10-L59`、`skills/blender-asset-qa/scripts/qa_check.py#L27-L424`）：
   - 按交付目标分 4 档策略矩阵 `PROFILES`（`game`、`render`、`print`、`roblox`，其中 `roblox` 强制单网格 ≤ 20,000 面与严格 `[0,1]` UV，见 `qa_check.py#L27-L34`）。
   - 核心几何检测算法：构建评估后世界空间三角形与 `BVHTree`/`KDTree`（`qa_check.py#L221-L334`），检测非流形边、零面积退化面、n-gon、重复顶点、局部基准点有符号体积为负的**内翻封闭岛（`inside_out_islands`）**（注：故意以岛内首顶点为参考点规避远离原点的 float32 浮点抵消误判，`qa_check.py#L236-L249`）、面间距 `< eps`（默认 1mm）的同向 **z-fighting** 与反向重叠隐藏面 `back_to_back`（`qa_check.py#L338-L372`）、以及结合 BVH 邻域 + 射线奇偶测试区分**真实悬空零件（`floating`）与合法内嵌零件（`enclosed`）**（`qa_check.py#L374-L413`）。
   - 材质与色彩空间自动审计：沿节点链反向追踪 `_feeds`，自动抓出驱动 `Roughness`/`Metallic`/`Normal` 却错误设为 `sRGB` 的贴图，以及反向用 `Non-Color` 驱动 `Base Color` 的错误（`qa_check.py#L37-L90`）。

4. **无头 Turnaround 与多视角接触表视觉验证闭环**（`skills/blender-asset-qa/scripts/review_shots.py#L23-L135`、`skills/blender-lighting-lookdev/scripts/turntable.py#L83-L166`、`skills/blender-workflow-recipes/SKILL.md#L65-L70`）：
   - **静态多视角 QA 接触表（`review_shots.py`）**：使用无需 GPU 光追且无头安全（headless-safe）的 `BLENDER_WORKBENCH` 引擎，自动计算目标包围球距离放置相机，支持 `solid`、`random`（按对象随机着色，一眼识别分离浮件）、`wire`（临时复制挂载 `WIREFRAME` 修改器叠加黑线框）和 `material` 四种模式，渲染 `front`/`right`/`top`/`three_quarter` 等视角并用 `numpy` 拼成单张 `review_sheet.png` 后在 `finally` 还原全部场景与显示设置（`review_shots.py#L35-L135`）。
   - **360° Look-Dev 转台（`turntable.py`）**：构建 `LD_Lookdev` 集合，按窄边视场角自动退距放置 85mm 镜头、三点面积光（Key/Fill/Rim）或 HDRI 与 18% 灰无缝背景幕，通过**父级空物体 `LD_Pivot` 带动相机、灯光和背景同步旋转，完全不改动资产自身变换**，并在第 `1` 帧与 `frames + 1` 帧插入线性 `2*pi` 关键帧实现 1..N 帧无缝循环渲染（`turntable.py#L83-L159`），随后由 `render_batch.py` 先出 preview 确认再出序列帧/MP4（`skills/blender-rendering/SKILL.md#L14-L49`、`skills/blender-workflow-recipes/SKILL.md#L66-L69`）。

5. **Skill 仓库工程化约束与自校验**（`AGENTS.md#L42-L46`、`tools/validate_skills.py#L14-L129`、`tools/sync_shared.py#L14-L30`）：
   - 规定单份 `SKILL.md` 正文 ≤ 500 行（推荐 ≤ 2.5k~3k tokens、硬顶 5k tokens）、`description` ≤ 400 字符、所有相对链接与脚本名真实存在、凡 `import bpy` 的脚本在 AST 顶层必须定义 `run` 且文档字符串含 `Usage`，并强制检查所有 `skills/*/scripts/_bpyx.py` 与 `shared/_bpyx.py` 字节级一致（`tools/validate_skills.py#L16-L119`）。

## 亮点设计 vs 局限/坑点

- **值得借鉴的设计**：
  - **渐进式披露 + 单一行 JSON 契约**：`AGENTS.md` 明确规定"直接按参数跑脚本、不要让 Agent 通读几百行脚本源码"，通过 `--help` 与 `@@JSON@@` 输出极致压缩上下文开销。
  - **幂等且隔离污染的场景脚手架**：`turntable.py` 每次运行先清理 `LD_` 前缀物体并采用旋转相机而非旋转资产，可安全反复迭代打光与构图。
  - **基于真机实测的防幻觉规则库**：将诸如"远离原点处 float32 体积计算误差导致误判内翻"、"图元级 5.x API 改动表"等血泪坑点固化进自动化脚本与参考文档。
- **局限、隐含假设与潜在坑点**：
  - **高版本强绑定**：脚本针对 Blender 5.2 LTS+ / 5.3 设计（如 Slotted Actions `action_ensure_channelbag_for_slot`、5.0+ `media_type` 顺序、`gpu.init`），无法直接兼容 Blender 3.x 或早期 4.x。
  - **无头环境 EEVEE 限制**：`blender-rendering` 明确提示 `BLENDER_EEVEE` 即使在 `-b` 后台模式仍依赖 GPU/EGL 上下文，无 GPU 的纯 CPU CI 容器必须回退至 `CYCLES` CPU 或 `BLENDER_WORKBENCH`（`skills/blender-rendering/SKILL.md#L26-L68`、`skills/blender-pipeline-automation/SKILL.md#L57`）。
  - **高面数网格跳过空间重叠检查**：`qa_check.py` 为防内存/耗时爆炸，超过 `--max-tris`（默认 `300000`）时会自动跳过 `z-fighting` 与 `floating` 检测，高模资产须拆件检查（`skills/blender-asset-qa/SKILL.md#L59`、`skills/blender-asset-qa/scripts/qa_check.py#L329-L331`）。
  - **脚本副本同步负担**：由于每个 Skill 目录需独立可分发，`shared/_bpyx.py` 必须手动运行 `tools/sync_shared.py` 复制到各目录并通过 CI 校验（`tools/sync_shared.py#L14-L30`）。

## 可复用的模块或设计模式

- **如何迁移到未来项目**：
  1. **Headless DCC Agent 标准化封装**：任何基于命令行驱动重型创意软件（Blender/Houdini/FFmpeg）的 Agent Skill 都可复刻 `_bpyx.py` + `run_in_blender.py` 的 `@@JSON@@` 协议，实现"既能在 MCP 内存会话导入 `run`，又能在 CLI 独立进程执行"。
  2. **先数值审计、再接触表目视的双重 QA Gate**：将 `qa_check.py`（BVH z-fighting/浮空件/法线/Non-Color 贴图检查）与 `review_shots.py`（Workbench 多角度接触表）设为所有自动生成或修改 3D 资产交付前的强制门禁。
  3. **多进程分片与序列帧先出后编码**：大批量资产处理复用 `batch_process.py --shard k/N` 突破 Blender Python 单核限制，长视频渲染坚持先出 PNG/EXR 序列再转码 MP4 防中途崩溃丢档。
- **关联 Pattern**：[automated-motion-and-loudness-qa](../patterns/automated-motion-and-loudness-qa.md) · [agentic-video-and-3d-toolchain-matrix](../patterns/agentic-video-and-3d-toolchain-matrix.md)

## Cross-Referenced Specimens

- [A-001 · The Fable 5.2 Motion Playbook：从单条提示词到成片的确定性动效工程手册](https://oumuatown.com/articles/2026-11-26-fable-5-2-motion-playbook.md) — 用纯帧函数与节拍主时钟根除代码动效渲染漂移
- [P-003 · 视频运动连续性、POST-AAC 响度真峰值与三维资产自动化质检门禁（Automated Motion, Loudness & 3D QA）](https://oumuatown.com/patterns/automated-motion-and-loudness-qa.md) — 冻帧曲线、POST-AAC 真峰值与盲审消灭静帧伪交付
- [P-001 · Agent 驱动视频剪辑、2D/3D 动画与跨宿主技能选型矩阵（Agentic Video, 3D & Skill Toolchain Matrix）](https://oumuatown.com/patterns/agentic-video-and-3d-toolchain-matrix.md) — 视频生成、三维自动化与跨宿主技能选型边界与避坑矩阵
- [P-005 · 程序化三维世界构建、浏览器导播台与光追热插拔成片管线（Procedural World, Camera Rig & Cycles Hot-Swap Pipeline）](https://oumuatown.com/patterns/procedural-world-and-camera-rig-pipeline.md) — 纯函数共享演出表与无锁弧长导播台贯通 Web 与光追双轨
- [P-012 · 游戏可用 3D 角色与道具工程化全链路管线（Game-Ready 3D Character & Prop Pipeline）](https://oumuatown.com/patterns/game-ready-3d-character-and-prop-pipeline.md) — 硬表面代码测绘、UVgami 合批与零渗透刷皮 3D 规范
- [P-031 · 视口锚定 Blender AI 资产管线与跨宿主事务回写模式（Viewport-Grounded Blender AI Asset Pipeline）](https://oumuatown.com/patterns/viewport-grounded-blender-ai-asset-pipeline.md) — 视口锚定多模态管线：主线程MCP、BVH可逆回写与防重扣
- [P-035 · OpenUSD 多求解器物理资产、契约化合规封装与 Agent 联邦检索目录模式（OpenUSD SimReady Physics Assets & Agent Catalog）](https://oumuatown.com/patterns/openusd-simready-physics-assets-and-agent-catalog.md) — 多求解器USD物理资产与联邦检索：收录非合规，无头须拆核
- [R-075 · ProfRino/Blender-MCP-Assembly-Skill](https://oumuatown.com/repos/ProfRino__Blender-MCP-Assembly-Skill.md) — 五条几何铁律加连通图预规划，根治AI代码建模悬空散架
- [R-182 · NVIDIA/simready-blender-add-on](https://oumuatown.com/repos/NVIDIA__simready-blender-add-on.md) — 重型Win GUI仿真资产插件，无头复用须拆解内核
- [A-002 · 15 个动效与视频工程开源仓库全景清单（附 Fable 5.2 实战管线）](https://oumuatown.com/articles/2026-11-26-flxrnc-15-animation-repos.md) — 十五个动效与视频工程开源仓串起代码出片全链路
- [A-003 · 4 天 4 夜零手写代码造出 2K 60fps 曼哈顿——Three.js 实时漫游与无头 Blender 光追成片七步管线](https://oumuatown.com/articles/2026-11-26-servasyy-manhattan-3d-city-film.md) — Three.js 城景与无头光追 2K60 七步管线
- [A-004 · Claude Code 驱动的 13 个 Blender 3D 角色开源仓库管线与 Hollow Warden 实战拆解](https://oumuatown.com/articles/2026-11-27-0xkense1-13-blender-character-repos.md) — 用十三款开源工具打通 AI 角色减面、弹簧骨与引擎导出
- [A-005 · Create 3D Game Models for Free: Opus 5.5 + Blender + Tripo（Kensei 15 步零成本/低成本游戏 3D 资产工程手册）](https://oumuatown.com/articles/2026-11-27-0xkense1-free-3d-game-models-15-steps.md) — 硬表面走代码、有机体走生成器的十五步零成本 3D 管线
- [A-007 · 12 个手绘与像素动效开源仓库管线 + @seeconvm Fable 5.2 20 章全流程实战课程](https://oumuatown.com/articles/2026-11-27-0xnicc0-12-hand-drawn-motion-repos.md) — 手绘像素动效七仓补位与二十章代码成片排障资产库
- [A-026 · 2026-11 视频制作、AI 电影、Blender MCP、角色绑骨与代码驱动 3D 世界工程全书](https://oumuatown.com/articles/2026-11-28-rewind02-video-3d-ai-film-workflows-compendium.md) — 四十五条 AI 影视全书：预演锁镜、去高光与预算纪律
- [A-034 · Scenario Labs：Scenario for Blender 视口锚定生成、可逆网格编辑与本地/云端双 MCP 架构拆解](https://oumuatown.com/articles/2026-12-01-scenario-labs-blender-plugin.md) — 视口锚定生成加本地MCP闭环精良，强绑付费云
