AgentSkillsCN

assemble-dungeon

将房间预制件模块组合成完整的地下城关卡,配备连通的门、一致的光照,以及恰当的NavMesh。

SKILL.md
--- frontmatter
name: assemble-dungeon
description: Combine room prefab modules into a complete dungeon level with connected doors, consistent lighting, and proper NavMesh.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep
argument-hint: <dungeon spec, e.g. "3-room linear dungeon with combat, treasure, boss">

Assemble a complete dungeon from room modules based on: $ARGUMENTS

Process

  1. Parse dungeon spec — room count, types, connection topology (linear, branching, loop)
  2. Find room prefabs in the asset database matching the requested types
  3. Plan layout — calculate positions so rooms connect at door points without overlap
  4. Instantiate rooms via MCP batch operations, positioning each at calculated coordinates
  5. Connect doors — align door frames between adjacent rooms
  6. Apply global lighting — ensure consistent ambient and directional lighting
  7. Bake NavMesh (if NavMesh tool available) for AI pathfinding
  8. Save scene and take screenshot for verification