by chenx5452321
Procedural Minecraft Yes Steve Model (YSM) 2.6.0 modeling, SSAO software rendering, WebGL2 3D viewer, and validation engine built for AI agents.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/chenx5452321/ysm-ai-engineGuides for using ai agents skills like ysm-ai-engine.
See how ysm-ai-engine compares with popular alternatives.
专为 AI Agent 打造的《我的世界》YSM 模型程序化建模、SSAO 软渲染、WebGL2 预览与合规校验引擎
效果展示 · 工作原理 · 核心特性 · 快速安装 · 3D 预览器 · AI 协作指南 · 贡献者
YSM AI Engine 是一套面向 AI 编程助手(Antigravity、Claude Code、Cursor、Codex 等)及程序化建模工作流的开源 Minecraft Yes Steve Model (YSM) 研发框架。
它让 AI 无需打开 Blockbench 图形界面,即可通过纯 Python 代码完成 「三视图精确量尺 → 程序化体素建模与 UV 自动装箱 → 离线 SSAO / 50-50 叠图自检 & WebGL2 实时预览 → YSM 2.6.0 零报错校验 → 一键打包 .zip 与 .bbmodel」 全链路生产。
[!TIP] AI 模型选型推荐:强烈推荐使用 Gemini 4 Neon 及以上 或 GPT 6.2 Sol 及以上;Claude 系列暂无实测参考;不推荐使用 DeepSeek v4.1 Flash(详见 推荐模型选型)。
以下效果图完全由本引擎从零程序化生成(内置完整示例 examples/skull_hoodie_girl),并使用内置 切平面修正 SSAO 软渲染器 离线出图对比验证:
ysm-render overlay)| 纯白模 SSAO(体块与层次检查) | 基础动作绑定实拍(idle / walk / run / sneaking / jump / sit) |
|---|---|
![]() |
![]() |
flowchart LR
A["🎨 角色三视图 / 设定图"] --> B["📏 ysm-analyze<br/>自动裁切 · 标尺 · 提色"]
B --> C["🧱 ysm_engine.builder<br/>Bedrock 1.12 体素 & 整数 UV 装箱"]
C --> D["🔍 ysm-render / ysm-viewer<br/>SSAO 三视图 · 50/50 叠图 · WebGL2 预览"]
D -- "视觉比对迭代精修" --> C
D --> E["✅ ysm-validate<br/>YSM 2.6.0 零报错合规校验"]
E --> F["📦 ysm-package<br/>一键交付 .zip & .bbmodel"]
| 模块 | 核心能力 |
|---|---|
🧱 程序化建模与自动 UVysm_engine.builder |
内置 Bedrock 1.12.0 骨骼树构建、X=0 自动对称镜像(add_mirrored_cube,自动翻转旋转符号与左右贴图)、纯色/渐变/像素绘制回调(face_painter);ShelfPacker 自动装箱生成零重叠非零整数 per-face UV,并为每个面保留私有 1px bleed gutter(边缘像素外扩,避免线性采样串色);一键提取第一人称手臂 models/arm.json。 |
🎥 零 GPU SSAO 软渲染器ysm_engine.renderer |
纯 NumPy + PIL 实现,无需启动游戏或显卡上下文即可高速出图:支持三点棚拍柔光 + 切平面修正 SSAO、自动包围盒定焦、50/50 叠图精准对齐、Molang 动画姿态批量渲染与骨骼枢轴可视化。 |
🌐 原生 WebGL2 3D 预览台ysm_engine.viewer |
零前端构建依赖、零第三方 JS 库,启动 ysm-viewer 即可在浏览器实时查看模型;支持 .zip / .bbmodel / 文件夹拖拽、逐骨骼调姿、动画播放、环境光与 360° 天空盒/HDR 光照检视。 |
📏 参考图定量分析器ysm_engine.analyze_ref |
自动切分 1/2/3 视图设定图、统一脚底到头顶像素标尺、提取主色调色板,导出 Bedrock 单位网格标尺图(ref_ruler.png)与轮廓宽高测量 JSON。 |
✅ 严格校验 & 双格式交付validate / export_bbmodel / package |
自动校验 UTF-8 无 BOM、ysm.json spec=2、文件路径大小写、整数非零 UV、18 项核心骨骼与 Locator 嵌套、arm.json 及 29 个基础动作;0 错误后一键输出游戏可用的 .zip 与可编辑的 .bbmodel。 |
🤖 AI Agent 协作规范prompts/ |
内置 prompts/AGENT_GUIDE.md 与 prompts/SKILL.md,让 AI 直接掌握 Bedrock 旋转正负号、独立眼部图层、分层片状发丝与 4 阶段视觉自检闭环。 |
环境要求:Python 3.9+(仅需轻量依赖 numpy 与 pillow)。
git clone https://github.com/chenx5452321/ysm-ai-engine.git
cd ysm-ai-engine
pip install -e .
安装后即可在任意项目目录下直接使用全部 6 个 CLI 命令:
| 命令 | 用途说明 |
|---|---|
ysm-analyze |
分析参考三视图并生成 Bedrock 单位标尺与色板数据 |
ysm-render |
渲染白模 SSAO、正交三视图对比、特写、50/50 叠图、动作与骨骼枢轴 |
ysm-viewer |
启动本地零依赖 WebGL2 3D 交互预览与逐骨骼调姿台 |
ysm-validate |
执行 YSM 2.5 / 2.6.0 全项合规校验(必须 0 errors) |
ysm-package |
校验并一键打包游戏安装包 .zip 与 Blockbench 工程 .bbmodel |
ysm-export-bbmodel |
单独将 main.json + 贴图 + 动画导出为 .bbmodel |
pip install -r requirements.txtysm_engine/ 目录直接复制到你的新模型项目根目录;from ysm_engine import YSMModel, ...,或通过 python -m ysm_engine.validate ... 直接调用。# 1. 一键复现 skull_hoodie_girl 全部渲染、校验与 .zip / .bbmodel 产物
python examples/skull_hoodie_girl/run_all.py
# 2. 启动 3D 预览器实时查看刚刚生成的模型
ysm-viewer examples/skull_hoodie_girl/out/skull_hoodie_girl
# 3. 运行全链路单元测试
python -m unittest discover -s tests -v
ysm-ai-engine/
├── README.md # 本文档
├── CONTRIBUTING.md # 贡献指南
├── LICENSE # Beerware 啤酒开源协议
├── pyproject.toml # 包配置与 6 个 CLI 入口
├── requirements.txt # 轻量依赖 (numpy, pillow)
│
├── .github/ # CI 自动化测试与 Issue 模板
│ ├── workflows/ci.yml
│ └── ISSUE_TEMPLATE/
│
├── assets/ # 仓库视觉资源(Banner 与贡献者头像)
│ ├── banner.png
│ └── contributors/gemini.png
│
├── ysm_engine/ # 核心引擎包(支持 pip 安装或直接拷贝复用)
│ ├── __init__.py
│ ├── builder.py # YSMModel, ShelfPacker, 像素绘图工具, arm.json 提取
│ ├── renderer.py # BedrockScene, 切平面 SSAO, 三视图/白模/50-50 叠图/动作/骨骼渲染
│ ├── analyze_ref.py # 参考三视图自动裁切、像素标尺与色板测量
│ ├── validate.py # YSM 2.5 / 2.6.0 合规校验器
│ ├── export_bbmodel.py # Blockbench .bbmodel 导出器
│ ├── package.py # 校验 + .zip / .bbmodel 打包器
│ ├── viewer.py # 零依赖本地 WebGL2 3D 模型预览器服务 (ysm-viewer)
│ └── viewer_static/ # 纯原生 WebGL2 展示与骨骼调姿前端资源
│
├── prompts/ # AI Agent 上下文规范与 Skill 模板
│ ├── AGENT_GUIDE.md # AI 建模 SOP、Bedrock 坐标系与 YSM 2.6.0 硬性规范
│ └── SKILL.md # 可直接导入 Antigravity / Claude Code / Cursor 的 Skill 文件
│
├── examples/ # 完整可复现示例工程
│ └── skull_hoodie_girl/
│ ├── reference/reference_3view.jpg
│ ├── build_model.py # 28 根骨骼、169 个体素、独立 3×2 眼部图层与片状长发建模源码
│ ├── build_animations.py # 29 个基础动作、arm 动画与 ysm.json 清单生成
│ └── run_all.py # 一键复现示例全部渲染、校验与打包产物
│
├── docs/showcase/ # README 展示效果图
└── tests/ # 自动化全链路与预览器回归测试
├── test_pipeline.py
└── test_viewer.py
ysm-analyze path/to/character_3view.jpg -o reference --height 34.0
自动输出 reference/crops/ref_front.png、ref_side.png、ref_back.png、reference/ref_ruler.png(带 Bedrock 单位刻度线)及 reference/ref_analysis.json。
from ysm_engine import YSMModel
m = YSMModel(identifier="geometry.model", texture_width=512, texture_height=512, texels_per_unit=3.0)
# 1. 建立 YSM 2.6.0 标准骨骼层级
m.add_bone("All", pivot=(0, 0, 0))
m.add_bone("Waist", parent="All", pivot=(0, 12, 0))
m.add_bone("Body", parent="Waist", pivot=(0, 12, 0))
m.add_bone("AllHead", parent="Body", pivot=(0, 24, 0))
m.add_bone("Head", parent="AllHead", pivot=(0, 24, 0))
m.add_bone("ViewLocator", parent="Head", pivot=(0, 28, 0))
# ... 补全 RightArm/LeftArm/Hand/Locator 与 RightLeg/LeftLeg 等 18 项必选骨骼
# 2. 构建体素与自动对称镜像,并自动装箱整数 UV
m.add_cube("Head", origin=(-3.5, 24.0, -3.5), size=(7.0, 7.0, 7.0), solid_color="#FCF1F2")
m.add_mirrored_cube(
"RightArm", "LeftArm",
origin=(-6.0, 13.0, -1.8), size=(3.2, 11.0, 3.6),
vgradient=("#F5F3FA", "#DCD8EA"),
)
# 3. 导出主几何、第一人称手臂与打包贴图
m.export_main_json("dist/my_girl/models/main.json")
m.export_arm_json("dist/my_girl/models/arm.json")
m.export_texture("dist/my_girl/textures/default.png")
更多高阶技巧(独立眼部图层
EyeRight/EyeLeft、定制face_painter像素画、片状多层头发与立体像素饰品)可参考examples/skull_hoodie_girl/build_model.py。
# 纯白模 SSAO 体块检查
ysm-render clay dist/my_girl/models/main.json dist/my_girl/textures/default.png -o renders/clay.png
# 正交三视图 + 3/4 透视对比
ysm-render turnaround dist/my_girl/models/main.json dist/my_girl/textures/default.png --crops reference/crops -o renders/turnaround.png
# 50/50 叠图精准对齐(分别检验正面、正侧、背面)
ysm-render overlay dist/my_girl/models/main.json dist/my_girl/textures/default.png reference/crops/ref_front.png -o renders/ov_front.png --yaw 0 --ymin 22 --ymax 34.6
ysm-render overlay dist/my_girl/models/main.json dist/my_girl/textures/default.png reference/crops/ref_side.png -o renders/ov_side.png --yaw 90 --ymin 10.5 --ymax 34.5
ysm-render overlay dist/my_girl/models/main.json dist/my_girl/textures/default.png reference/crops/ref_back.png -o renders/ov_back.png --yaw 180 --ymin 10.5 --ymax 34.5
# 5 视角细节特写 & 动作姿态 & 骨骼枢轴检查
ysm-render closeups dist/my_girl/models/main.json dist/my_girl/textures/default.png --crops reference/crops -o renders/closeups.png
ysm-render poses dist/my_girl/models/main.json dist/my_girl/textures/default.png dist/my_girl/animations/main.animation.json -o renders/poses.png
ysm-render skeleton dist/my_girl/models/main.json dist/my_girl/textures/default.png -o renders/skeleton.png
# 严格校验(必须 0 errors)
ysm-validate dist/my_girl
# 打包为可导入游戏的 .zip 与可编辑的 .bbmodel
ysm-package dist/my_girl
# 直接启动并预加载指定模型目录(也可直接运行 ysm-viewer 后拖拽 .zip / .bbmodel / 文件夹)
ysm-viewer dist/my_girl
ysm-ai-engine is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by chenx5452321. Procedural Minecraft Yes Steve Model (YSM) 2.6.0 modeling, SSAO software rendering, WebGL2 3D viewer, and validation engine built for AI agents. It has 50 GitHub stars.
ysm-ai-engine's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/chenx5452321/ysm-ai-engine" and add it to your Claude Code skills directory (see the Installation section above).
ysm-ai-engine is primarily written in Python. It is open-source under chenx5452321 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ysm-ai-engine against similar tools.
No comments yet. Be the first to share your thoughts!