Procedural Generation
/procedural-gen
Procedural content with seeded RNG: Perlin and Simplex noise terrain, rooms-and-corridors dungeons and weighted loot tables.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Godot 4.7.2 上通过 34/34 项检查(2026-10-30):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Generate game content procedurally — seeded deterministic RNG, value/Perlin/ Simplex noise for terrain and heightmaps, grid dungeon generation (rooms + corridors, BSP, random walk, wave function collapse) …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 19d93f97c9c1,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 只用一个带种子的 RNG 实例,并把它传进每个做选择的函数 / One seeded RNG instance, passed into every function that makes a choice
- 生成代码里不调用全局随机 / Never call the global random in generation code
- 高度图和湿度用不同的种子,避免生物群系成条带 / Seed elevation and moisture differently so biomes don't line up in bands
- 加多个 octave 后按振幅总和归一化回 0..1 / Renormalize fBm by the summed amplitude back into 0..1
- 生成完先做连通性检查,不可达的区域丢弃或重连 / Flood-fill from spawn and discard or reconnect unreachable regions
中文指南
这个 skill 做什么
这个 skill 讲程序化生成的核心算法:带种子的确定性 RNG、value/Perlin/Simplex 噪声和 fBm 高度图、房间加走廊和 BSP 和随机游走洞穴和 WFC 的地牢布局、按权重抽取的战利品表。算法与引擎无关,生成结果先写进普通数据网格,再由别的代码去画。
什么时候用
- 要按种子生成地图、地牢、地形高度图或掉落表
- 结果必须能从种子复现(调试、每日挑战、分享世界)
- 按权重随机抽结果,比如稀有度和刷怪表
怎么装
下载本页的 ZIP,把 procedural-gen/ 整个文件夹放进 agent 的 skills 文件夹:Claude Code 用 .claude/skills/,Codex、Gemini CLI、OpenCode 用 .agents/skills/,Cursor 用 .cursor/skills/,Copilot 用 .github/skills/,Windsurf 用 .windsurf/skills/,然后重启 agent。也可以直接对 agent 说:Install the skill from https://gameskill.dev/skills/procedural-gen/install.md
最小示例
gameskill/examples/ 是一个 Godot 4.7 示例:gen.gd 放生成函数,main.gd 和 main.tscn 把结果画出来,tests/run_tests.gd 是检查,tests/screenshot.gd 渲染截图。
我们怎么测的
总分 34/34。在 Godot 4.7.2 无头模式下跑 22 项检查:高度图同种子结果一致、换种子结果不同;fBm 落在 0..1 内,在整数坐标上也有变化;生物群系有种类,并且能出现海洋、雪地、沙漠;洞穴同种子一致、连通、边界是实心;BSP 同种子一致、房间不重叠、能产出房间;Poisson disk 满足最小间距、有采样点、同种子一致;WFC 同种子一致、满足约束、填满整个网格、权重分布合理;RNG 保存 state 后能接着往下取。初稿的生成函数没有声明为 static,测试无法直接调用,已修正。结果在 gameskill/test-report.json。
和站内其他 skill 的区别
Hosted roguelike 只用一种地牢生成器;GodotPrompter 有一个 Godot 的程序化生成 skill。这个 skill 是与引擎无关的工具箱:噪声、元胞自动机、BSP、Poisson disk、WFC。
搭配
roguelike:地牢布局和掉落表供 roguelike 使用godot-tilemap:把生成的网格画进 TileMaplevel-design:程序生成和手工节奏互补
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/procedural-gen/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/procedural-gen.zip -o /tmp/gameskill-procedural-gen.zip
unzip -oq /tmp/gameskill-procedural-gen.zip -d .claude/skills
rm /tmp/gameskill-procedural-gen.zip包含内容
- Worked steps: Seeded, deterministic RNG; Fractal (fBm) noise for heightmaps; Weighted loot table; Rooms-and-corridors dungeon
- A pitfalls section with the mistakes to avoid
- Bundled 2 reference docs the agent reads when needed
适合
- Requests about procedural generation, perlin/simplex noise, random seed, dungeon generator or heightmap/terrain
试试这条提示词
Generate seeded dungeons with rooms and corridors, plus a weighted loot table.关于这个 Skill
Generate game content procedurally — seeded deterministic RNG, value/Perlin/ Simplex noise for terrain and heightmaps, grid dungeon generation (rooms + corridors, BSP, random walk), and weighted loot/drop tables. Engine-neutral algorithms. Use when the user mentions procedural generation, perlin/simplex noise, random seed, dungeon generator, heightmap/terrain, or loot tables.
From the procedural-gen SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Seeded, deterministic RNG (the foundation)
- Fractal (fBm) noise for heightmaps
- Weighted loot table (rarity-correct selection)
- Rooms-and-corridors dungeon (sketch)
常见问题
游戏打磨流程 Game Polish Workflow
让 AI 把游戏真正改好的可复用流程:10 步打磨循环、中英双语提示词、AI 做游戏常见问题排障清单,以及试玩和发布检查表。
- 10 步打磨循环,每步有完成标准
- 14 条中文 + 14 条英文提示词
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Godot TileMap
Tile-based 2D levels in Godot 4.7 with TileMapLayer: collision and navigation on tiles, terrain autotiling and editing cells from code.
Game AI: FSM, Behavior Trees & Pathfinding
NPC and enemy decision-making with state machines, behavior trees, steering and A* pathfinding, paired with your engine's navigation API.
Level Design
Design playable levels from blockout to final: player metrics, pacing and flow, gating, the critical path and encounter design.
Roguelike
Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view, and loot tables.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 43 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
ForgeSkills
28 gated game-development agent skills (concept, orchestration, verification, Blender headless, reference reconstruction, textures, animation, VFX, lighting, foliage, Godot pipeline) plus Python tools that measure the result. GameSkill hosts the 27 we ran, with the tools. Apache-2.0.
open-game-skills
An MIT pack of about 190 SKILL.md agent skills for game design: combat feel, camera, traversal, world, validation, 2D/Spine and art pipeline, with a dispatcher and adapters for Three.js, PixiJS, Phaser, Cocos, Godot, Unity and Unreal.
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.