bgrenat/godot-game-dev-studio/gamedev-procedural-gen
Claude Code and agent skill by bgrenat/godot-game-dev-studio
- community
Checking that the SKILL.md file is still in the repository.
Imported awesome-gamedev-agent-skills guidance for procedural-gen workflows in game development projects. Use when generating seeded, deterministic levels, terrain, or loot with noise, cellular automata, BSP, or WFC.
Install
npx vskill@latest install bgrenat/godot-game-dev-studio/gamedev-procedural-genSKILL.md
The same SKILL.md was published earlier as bgrenat/godot-game-dev-studio/gamedev-procedural-gen.
Procedural generation
Generate levels, terrain, and loot from compact rules and a seed. The throughline of good procgen is determinism: a single seed reproduces the same world, so bugs are repeatable and players can share seeds. This skill owns the core algorithms — noise, seeded RNG, dungeon layout, weighted tables; genres like roguelike and survival-crafting consume it.
When to use
- Use to generate maps, dungeons, terrain heightmaps, item drops, or any content
you do not want to author by hand.
- Use when results must be reproducible from a seed (debugging, daily
challenges, shareable worlds).
- Use to pick weighted random outcomes (loot rarity, spawn tables).
When *not* to use: for the engine's tile API to paint the result, use godot-tilemap or unity-tilemap-2d. For routing AI through the generated map, use game-ai. For carefully hand-paced levels, use level-design — procgen and authored design are complementary, not interchangeable.
Core workflow
- Own your randomness. Create one seeded RNG instance and pass it
everywhere. Never call the global/static random in generation code — it makes results irreproducible and order-dependent.
- Pick the technique for the content. Continuous terrain/heightmaps → noise.
Discrete rooms/corridors → space partitioning or agent-based carving. Outcomes with rarities → weighted tables.
- Generate into a plain data grid/array first, decoupled from rendering.
Generation fills int[][] or a dict; a separate pass draws it.
- Validate before shipping the result to the player. Is every room
reachable? Is the spawn safe? Is there a path to the exit? Reject or repair layouts that fail; do not hand the player a broken map.
- Tune with the seed fixed so each parameter change is visible in isolation,
then sweep seeds to check the distribution, not just one lucky map.
Patterns
1. Seeded, deterministic RNG (the foundation)
Engine equivalents: Godot var rng = RandomNumberGenerator.new(); rng.seed = s; Unity var rng = new System.Random(seed) (or UnityEngine.Random.InitState). Store the seed in the save file so a world can be regenerated.
2. Fractal (fBm) noise for heightmaps
Use a real noise library (FastNoiseLite, opensimplex, Unity.Mathematics.noise, or Mathf.PerlinNoise) — do not implement gradient noise yourself. Seed elevation and moisture with different seeds so a biome lookup over both fields isn't perfectly correlated. Full biome lookup and island shaping are in references/noise.md.
3. Weighted loot table (rarity-correct selection)
Weights need not sum to 100 — they are relative. To prevent bad streaks, use a "pity"/bag system (see references/dungeon-generation.md notes on distributions).
4. Rooms-and-corridors dungeon (sketch)
The complete generator (BSP partitioning, L-corridors, reachability check, and random-walk caves) is in references/dungeon-generation.md.
Pitfalls
- Using the global RNG inside generation makes worlds unreproducible and
breaks the moment call order changes. Always pass a seeded instance.
- Correlated noise fields: sampling elevation and moisture from the same
seed/offset produces biomes that line up in bands. Offset or reseed each field.
- Octave artifacts: adding octaves without renormalizing pushes values out of
0..1; divide by the summed amplitude (and beware library output ranges — some return -1..1, some 0..1).
- No connectivity check: rooms or caves can end up isolated. Flood-fill from
the spawn and discard/reconnect unreachable regions before play.
- Unbounded placement loops: "keep trying until N rooms fit" can spin forever
on a small grid. Cap attempts and accept fewer rooms.
- Seeding once globally, then relying on frame timing: any non-deterministic
input (time, physics, hash randomization) leaking into generation destroys reproducibility.
References
references/noise.md— octaves/lacunarity/gain, redistribution, island
shaping, two-axis biome lookup, blue-noise object scatter.
references/dungeon-generation.md— BSP, rooms+corridors, random-walk caves,
cellular-automata smoothing, connectivity validation, distribution/pity tables.
Related skills
godot-tilemap,unity-tilemap-2d— paint the generated grid into the engine.game-ai— pathfinding over the generated graph.level-design— pacing and hand-authored structure that procgen complements.roguelike,survival-crafting— genres that compose this skill.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gamedev-procedural-gen/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bgrenat/godot-game-dev-studio/gamedev-procedural-gen)