AgentSkillsCN

generate-level

利用AI Dungeon Master生成地牢关卡参数——包括房间数量、房间类型、房间连接方式、难度曲线、战利品表以及遭遇点分布。

SKILL.md
--- frontmatter
name: generate-level
description: Generate dungeon level parameters using the AI Dungeon Master — room count, types, connections, difficulty curve, loot tables, and encounter placement.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep
argument-hint: <level spec, e.g. "floor 3, medium difficulty, fire theme">

Generate a dungeon level via the AI Dungeon Master: $ARGUMENTS

Process

  1. Parse level parameters — floor number, difficulty, theme, player state
  2. Generate level layout:
    • Room count based on difficulty and floor
    • Room types (combat, treasure, trap, boss, rest)
    • Connection topology (linear, branching, loop, hub-and-spoke)
    • Difficulty curve (ramp up to boss, with rest points)
  3. Generate loot tables:
    • Per-room loot based on room type and difficulty
    • Boss loot (guaranteed rares)
    • Hidden loot (secret rooms, destructible props)
  4. Generate encounter data:
    • Enemy types and counts per combat room
    • Boss encounter configuration
    • Trap types and placement
  5. Output structured JSON that the scene builder can consume
  6. Narrative hooks — story beats, NPC dialogue triggers, lore items

Output Format

json
{
  "floor": 3,
  "theme": "fire",
  "rooms": [
    {
      "id": "room_1",
      "type": "combat",
      "size": "medium",
      "enemies": [...],
      "loot": [...],
      "connections": ["room_2"]
    }
  ],
  "boss": { ... },
  "narrative": { ... }
}