mcpField
B
building-router

building-router

github.com/bbeierle12开发956 次安装今天更新
代码仓库

关于 building-router

面向游戏开发 Agent 的建筑机制路由技能,根据游戏模式、规模和功能需求,从专用技能中选择组合。包含优先级规则、常见组合与集成顺序。

主要功能

  1. 01按游戏需求分类并匹配技能
  2. 02提供九类技能的路由信号
  3. 03依据多人、规模等条件确定优先级
  4. 04列出常见技能组合
  5. 05说明系统集成顺序
  6. 06对信息不明的需求提出澄清问题

适用场景

  1. 01为生存建造游戏选择机制技能
  2. 02为多人建造游戏规划网络与性能能力
  3. 03根据地形和规模组合功能技能
  4. 04确定建筑系统各组件的接入顺序

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill building-router

安装后在 Claude Code 中输入/building-router确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

_meta.json
references/
integration-guide.md
multiplayer.md
performance.md
physics.md
terrain.md

详细介绍

建造机制路由器

根据游戏需求路由至 9 个专用技能。

路由协议

  1. 分类 — 单人/多人 + 规模 + 核心功能
  2. 匹配 — 应用下方的信号匹配规则
  3. 组合 — 大多数游戏需要组合使用 3-5 个技能
  4. 加载 — 实施前阅读匹配到的 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-referenceFortnite/Rust 是如何实现的、比较游戏、权衡

信号优先级

存在多个信号时:

  1. 明确提及多人游戏 → 必须使用 multiplayer-building
  2. 规模指标 → 超过 1000 个部件时启用 performance-at-scale
  3. 持久化 → 长期运行的服务端启用 decay-upkeep
  4. 平台限制 → 移动端/VR 启用 platform-building
  5. 默认 → 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

集成顺序

组合技能时,按以下顺序接入:

  1. 空间索引 → 为所有其他系统提供查询基础
  2. 验证器 → 使用空间索引检测邻近部件/支撑
  3. 伤害 → 使用空间索引确定级联半径
  4. 网络 → 广播所有状态变更
  5. 客户端预测 → 使用本地空间索引 + 验证器

回退方案

  • 未说明规模 → 询问:“预计有多少个部件?”
  • 模式不明确 → 询问:“单人还是多人?”
  • 泛指“建造游戏” → 从 structural-physics + builder-ux 开始

参考

完整的接入模式和代码示例,请参阅 references/integration-guide.md。

评论

支持 Markdown