All skills
thedivergentai avatar

/godot-master

@4c4d0ff

Consolidated expert library for professional Godot 4.7+ game and application development. Orchestrates 92 Domain Skills through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app architecture, (3) building entity/component systems, (4) debugging performance or physics issues, (5) choosing between 2D/3D approaches, (6) implementing multiplayer, (7) optimizing draw calls or script time, (8) porting between platforms, (9) migrating from 4.6 to 4.7. Primary entry point for ALL Godot development tasks. Keywords: Godot 4.7, AreaLight3D, HDR, Asset Store, godot-master.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-master

This session only. Nothing lands on disk.

referencesgenre-sandbox-elite-technical-patterns.md

≈730 tokens on demand. Your agent reads this file only when SKILL.md points to it.

🚀 Elite Technical Implementations (Batch 09)

1. Greedy-Meshing Pattern (Quad Optimization)

Rendering individual voxels is a bottleneck. Greedy meshing combines adjacent identical faces into single large quads. For maximum performance, bypass the SceneTree and submit generated arrays directly to the RenderingServer.

class_name VoxelChunkMesher extends RefCounted

---

# Generates optimized mesh data and pushes it to the RenderingServer.

static func build_greedy_mesh(chunk_transform: Transform3D, scenario_rid: RID) -> RID:
    var vertices := PackedVector3Array()
    var normals := PackedVector3Array()
    var indices := PackedInt32Array()
    
    # ... algorithm calculates optimized quads ...
    
    var surface_array := []
    surface_array.resize(Mesh.ARRAY_MAX)
    surface_array[Mesh.ARRAY_VERTEX] = vertices
    surface_array[Mesh.ARRAY_NORMAL] = normals
    surface_array[Mesh.ARRAY_INDEX] = indices
    
    var mesh_rid := RenderingServer.mesh_create()
    RenderingServer.mesh_add_surface_from_arrays(mesh_rid, Mesh.PRIMITIVE_TRIANGLES, surface_array)
    
    var instance_rid := RenderingServer.instance_create()
    RenderingServer.instance_set_base(instance_rid, mesh_rid)
    RenderingServer.instance_set_transform(instance_rid, chunk_transform)
    RenderingServer.instance_set_scenario(instance_rid, scenario_rid)
    
    return instance_rid

2. Voxel-GI-Server (Dynamic Global Illumination)

For procedural sandbox worlds, use VoxelGI to provide real-time indirect lighting. Interface with the RenderingServer to allocate GI data for chunks dynamically as they are generated.

class_name VoxelGIServerManager extends Node

var _gi_instance_rid: RID

func _ready() -> void:
    RenderingServer.voxel_gi_set_quality(RenderingServer.VOXEL_GI_QUALITY_LOW)
    _gi_instance_rid = RenderingServer.voxel_gi_create()
    RenderingServer.instance_set_scenario(_gi_instance_rid, get_world_3d().scenario)

func allocate_chunk_gi(chunk_aabb: AABB) -> void:
    # Allocation requires to_cell_xform and level_counts buffers
    RenderingServer.voxel_gi_allocate_data(_gi_instance_rid, Transform3D(), chunk_aabb, Vector3i(64,64,64), PackedByteArray(), PackedByteArray(), PackedByteArray(), PackedInt32Array())
    RenderingServer.voxel_gi_set_dynamic_range(_gi_instance_rid, 2.0)

3. Blueprint-Sharing (Base64/JSON Serialization)

Allow players to share creations via simple strings. Use JSON for readable serialization and DisplayServer for clipboard integration.

class_name BlueprintManager extends Node

---

# Imports blueprint from clipboard.

static func import_blueprint_from_clipboard() -> Dictionary:
    var json_string: String = DisplayServer.clipboard_get()
    var parsed_data = JSON.parse_string(json_string)
    return parsed_data if parsed_data is Dictionary else {}

Source: SKILL.md on GitHub

1 alert16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The godot-master skill is a comprehensive expert library for Godot 4.7+ development. it provides architectural frameworks, anti-pattern catalogs, and automation scripts for build orchestration, project auditing, and visual QA. The skill demonstrates high security awareness by instructing agents on the safe use of risky engine APIs and recommending the use of boundary markers when processing untrusted scene data. No malicious patterns or unauthorized exfiltration vectors were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer6mo

    35/277 files flagged

Signed by skilld at 4c4d0ff. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 weeks ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-master