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.

referencescamera-systems-camera-expert-patterns.md

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

Camera Expert Patterns (load on demand)

MANDATORY when implementing multi-target framing, custom 3D occlusion rigs, or trauma decay tuning. Do not paste these into scenes from memory.

Multi-target framing (WHY)

Smash-style or local-coop cameras must fit an AABB of all targets — not chase a single global_position. Juice shake stays on offset only so follow math is not overwritten.

Use framing_box_camera_2d.gd — lerp center, clamp zoom to fit margin.

Occlusion without SpringArm

When SpringArm3D is insufficient, raycast between target and ideal camera position. Exclude the target RID; offset along hit normal to prevent wall clipping.

Use occlusion_aware_camera_3d.gd. For SpringArm-first rigs see spring_lerp_camera_3d.gd.

Trauma decay audit

CAUTION: Plot get_trauma() over time while tuning camera_shake_trauma_pro.gd. Raw randf offset demos hide whether decay feels intentional.

trauma_debugger.gd draws the last 200 samples via _draw().

2D follow recipes (beginner → expert)

Lerp follow

extends Camera2D
@export var target: Node2D
@export var follow_speed := 5.0

func _process(delta: float) -> void:
	if target:
		global_position = global_position.lerp(target.global_position, follow_speed * delta)

Prefer position_smoothing_enabled when built-in smoothing suffices.

Look-ahead

Offset camera by target.velocity.normalized() * look_ahead_distance — requires velocity from godot-characterbody-2d.

Deadzone / drag

Use deadzone_drag_margins.gd — enable drag_horizontal_enabled / margins instead of manual lerp every frame.

3D patterns

Third-person orbit

Orbit with sin/cos on horizontal angle + look_at(target, Vector3.UP). Guard vertical targets — see NEVER on look_at up-vector flip in SKILL.md.

First-person mouse look

Yaw on parent, pitch on camera child with clamped pitch. Use first_person_sway.gd for bob on offset.

Transitions & cinematics

Tween global_position with TRANS_CUBIC / EASE_IN_OUT. PathFollow2D progress_ratio for cutscenes — see cinematic_framing_logic.gd and camera_state_machine.gd.

Zoom

WHY exponential zoom: Linear zoom feels robotic. Use zoom_damping_controller.gd or wheel-driven exponential lerp.

Minimap / split-screen

SubViewport render_target_update_mode must not default to always-on updates — minimap_viewport_manager.gd, split_screen_setup.gd.

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