procgen-toolkit
Installation
SKILL.md
Procgen Toolkit
When to trigger
- "Generate a dungeon"
- "Procedural cave map"
- "WFC tilemap"
- "Terrain heightmap"
- "Procedural loot table"
Always seed
Use a PRNG you can re-seed — mulberry32 or sfc32. Print the seed in the artifact so results are reproducible.
function mulberry32(a){ return function(){ a |= 0; a = a + 0x6D2B79F5 | 0; let t = Math.imul(a ^ a >>> 15, 1 | a); t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t; return ((t ^ t >>> 14) >>> 0) / 4294967296; }; }