关于 building-router
面向游戏开发 Agent 的建筑机制路由技能,根据游戏模式、规模和功能需求,从专用技能中选择组合。包含优先级规则、常见组合与集成顺序。
主要功能
- 01按游戏需求分类并匹配技能
- 02提供九类技能的路由信号
- 03依据多人、规模等条件确定优先级
- 04列出常见技能组合
- 05说明系统集成顺序
- 06对信息不明的需求提出澄清问题
适用场景
- 01为生存建造游戏选择机制技能
- 02为多人建造游戏规划网络与性能能力
- 03根据地形和规模组合功能技能
- 04确定建筑系统各组件的接入顺序
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ bbeierle12/ skill-mcp-claude --skill building-router安装后在 Claude Code 中输入/building-router确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
_meta.jsonreferences/integration-guide.mdmultiplayer.mdperformance.mdphysics.mdterrain.md详细介绍
建造机制路由器
根据游戏需求路由至 9 个专用技能。
路由协议
- 分类 — 单人/多人 + 规模 + 核心功能
- 匹配 — 应用下方的信号匹配规则
- 组合 — 大多数游戏需要组合使用 3-5 个技能
- 加载 — 实施前阅读匹配到的 SKILL.md 文件
快速路由
第 1 层:核心机制
| 需求 | 技能 | 信号 |
|---|---|---|
| 空间查询、碰撞 | performance-at-scale | 卡顿、延迟、优化、空间、碰撞、数千 |
| 稳定性、伤害、坍塌 | structural-physics | 稳定性、坍塌、支撑、伤害、Fortnite、Rust、Valheim |
| 网络同步、预测 | multiplayer-building | 网络、多人、同步、服务端、延迟、权威 |
第 2 层:增强功能
| 需求 | 技能 | 信号 |
|---|---|---|
| 斜坡、地基、锚定 | terrain-integration | 斜坡、地形、地基、地面、支柱、高程图 |
| 定时衰败、工具柜 | decay-upkeep | 衰败、维护、保养、工具柜、废弃 |
| 蓝图、撤销/重做、预览 | builder-ux | 蓝图、预制件、撤销、重做、幽灵、预览、选择 |
第 3 层:平台与参考
| 需求 | 技能 | 信号 |
|---|---|---|
| 触控、VR、无障碍 | platform-building | 移动端、触控、VR、手部追踪、色盲 |
| 设计分析、权衡 | case-studies-reference | Fortnite/Rust 是如何实现的、比较游戏、权衡 |
信号优先级
存在多个信号时:
- 明确提及多人游戏 → 必须使用
multiplayer-building - 规模指标 → 超过 1000 个部件时启用
performance-at-scale - 持久化 → 长期运行的服务端启用
decay-upkeep - 平台限制 → 移动端/VR 启用
platform-building - 默认 →
structural-physics始终适用于建造类游戏
常见组合
完整生存玩法(Rust 风格,6 个技能)
performance-at-scale → spatial indexing
structural-physics → stability + damage
multiplayer-building → networking
terrain-integration → foundations on slopes
decay-upkeep → Tool Cupboard + upkeep
builder-ux → blueprints + undo
大逃杀建造(2 个技能)
performance-at-scale → fast collision
multiplayer-building → low-latency sync
单人建造游戏(3-4 个技能)
structural-physics → stability + damage
terrain-integration → natural terrain
builder-ux → blueprints + undo
performance-at-scale → if >1000 pieces
持久化服务端(4 个技能)
multiplayer-building → networking
structural-physics → stability
decay-upkeep → automatic cleanup
performance-at-scale → entity management
决策表
| 模式 | 规模 | 地形 | 技能 |
|---|---|---|---|
| 单人 | <1K | 网格 | physics + ux |
| 单人 | <1K | 自然地形 | physics + terrain + ux |
| 单人 | >1K | 任意 | performance + physics + ux |
| 多人 | 快节奏 | 任意 | performance + multiplayer |
| 多人 | 生存 | 任意 | performance + physics + multiplayer + decay |
| 多人 | 持久化 | 任意 | performance + physics + multiplayer + decay + ux |
集成顺序
组合技能时,按以下顺序接入:
- 空间索引 → 为所有其他系统提供查询基础
- 验证器 → 使用空间索引检测邻近部件/支撑
- 伤害 → 使用空间索引确定级联半径
- 网络 → 广播所有状态变更
- 客户端预测 → 使用本地空间索引 + 验证器
回退方案
- 未说明规模 → 询问:“预计有多少个部件?”
- 模式不明确 → 询问:“单人还是多人?”
- 泛指“建造游戏” → 从
structural-physics+builder-ux开始
参考
完整的接入模式和代码示例,请参阅 references/integration-guide.md。
评论
支持 Markdown