/godot-agent-skills:godot-proceduralfrom godot-agent-skills
Procedural generation in Godot 4.7: seeded RNG, FastNoiseLite terrain/biomes, TileMapLayer generation (cellular automata caves, BSP/random-walk dungeons), wave function collapse, Poisson-disc scattering, weighted loot tables, SurfaceTool/ArrayMesh heightmaps, threaded chunk streaming.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
RandomNumberGenerator per generator with an explicit seed (rng.seed = hash("my seed") for text seeds). Pass it down; never call global randf() inside generation. Show the seed in a debug overlay and save it with the game.PackedInt32Array, Dictionary[Vector2i, int], PackedFloat32Array), validate, then write to TileMapLayer, GridMap or meshes in one pass.AStarGrid2D) that the start reaches the exit, enforce min/max room counts, then retry with seed + 1 on failure. Cap the retries.WorkerThreadPool.add_task() for noise and mesh arrays, then call_deferred to add nodes or set meshes. See godot-performance.godot-navigation-ai).RandomNumberGenerator: seed, state (save it to resume a sequence exactly), randi_range, randf_range, randfn(mean, deviation) (gaussian), rand_weighted(PackedFloat32Array) → index (weighted tables).Array.shuffle() and pick_random() use the global generator.hash(Vector3i(x, y, world_seed)), which is stable across runs and machines.| Property | Meaning |
|---|---|
noise_type | TYPE_SIMPLEX_SMOOTH (default, terrain), TYPE_PERLIN, TYPE_CELLULAR (Voronoi: biomes, cracks), TYPE_VALUE |
seed, frequency | lower frequency = larger features (0.005–0.02 for world maps in tile units) |
fractal_type, fractal_octaves, fractal_lacunarity, fractal_gain | detail layers (FBM, 3–6 octaves) |
domain_warp_enabled + domain_warp_* | organic, swirly coastlines |
get_noise_2d(x, y)/get_noise_3d return roughly −1..1. Remap with remap() or (n + 1) * 0.5. Batch with get_image(w, h) when you need a whole texture.seed for each noise.NoiseTexture2D (noise, seamless, as_normal_map, color_ramp). It generates on a thread, so await texture.changed before reading its image.| Technique | Good for |
|---|---|
| Noise thresholds | overworlds, islands, biomes |
| Cellular automata (4–5 smoothing passes, wall if ≥5 of 8 neighbors are walls) | caves |
| Random walk / drunkard's walk | organic tunnels, guaranteed connectivity |
| BSP split + rooms + L-shaped corridors | classic roguelike dungeons |
| Room templates (prefab scenes/patterns stitched on a grid) | Spelunky-style designed variety |
| Wave function collapse | tile-adjacency puzzles, towns. Use the "Wave Function Collapse (WFC)" addon by AlexeyBond (TileMapLayer and GridMap) |
set_cell(coords, source_id, atlas_coords). For autotiling, collect cells per terrain and call set_cells_terrain_connect(cells, terrain_set, terrain) once per terrain. It's slow for big maps, so generate per chunk or use direct atlas coords.TileMapLayer.set_pattern() stamps prefab rooms saved as TileMapPatterns.erase_cell.SurfaceTool (set_uv, add_vertex, index(), generate_normals(), generate_tangents() for normal maps) → commit(). Collision: HeightMapShape3D (map_width, map_depth, map_data), which is much cheaper than a trimesh. Scale the CollisionShape3D to match the grid spacing.PackedVector3Array/PackedInt32Array yourself and call ArrayMesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays). It's several times faster than SurfaceTool for large meshes.MeshDataTool. Debug lines and gizmos: ImmediateMesh.MultiMeshInstance3D (one draw call). Set instance_count after transform_format and mesh. Raycast down or sample the heightmap for Y.Vector3(x, 0, y) * cell_size (godot-3d-gameplay).godot-addons).Resource (entries: Array[LootEntry] with weight) so designers edit them in the inspector. Roll with rng.rand_weighted(weights).Seeded noise maps, caves, BSP dungeon, Poisson disc, loot table, heightmap terrain and threaded chunks (compiled by the tests): references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-3d-rendering3D look in Godot 4.7 - renderer choice (Forward+/Mobile/Compatibility matrix), Environment (AgX, glow, fog, SSAO/SSR/SDFGI), lights incl. AreaLight3D, GI (SDFGI, VoxelGI, LightmapGI), HDR output, materials, glTF/Blender import suffixes, LOD and occlusion culling. Use for 3D scenes, lighting, materials, model import or visual quality./godot-addonsFinding, vetting, installing and maintaining Godot 4.7 addons - the in-editor Asset Store, editor plugins vs GDExtensions vs C# addons, compatibility and platform-binary checks, enabling plugins, versioning addons in git, optional dependencies, and a curated 4.7 list (LimboAI, Beehave, Dialogue Manager, Phantom Camera, Terrain3D, GodotSteam, billing, Mod Loader). Use when adding or fixing plugins./godot-animationAnimation in Godot 4.7 - AnimationPlayer and libraries, AnimationTree (state machines, blend spaces with sync_mode, one-shots, conditions), root motion, method/audio tracks, Tween recipes incl. tween_await (4.7), skeletons, the 4.6 IK framework (TwoBoneIK3D, FABRIK3D, CCDIK3D, SplineIK3D), LookAt/bone constraints, procedural animation. Use for character animation, cutscenes, UI motion or IK./godot-architectureStructure Godot 4.7 projects that scale - feature-based folders, scene composition and components, when to use autoloads, event bus, custom Resources as data, state machines, scene switching and loading screens, save/load (safe formats), groups and dependency injection, mixed GDScript + C# projects. Use when starting a project, adding a system, or refactoring Godot code.Other plugins' skills for the same job