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.

referencesagent-vision-editor-bridge-lifecycle.md

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

Editor bridge lifecycle

TEMP Godot EditorPlugin for viewport grabs Python cannot see cleanly. NEVER Autoload. NEVER export. NEVER leave the staged addon committed.

Paths

Path Role
.gdskills/vision/bridge/ Copied templates (scratch)
addons/_gdskills_agent_vision/ Staged TEMP addon (delete after)
.gdskills/vision/request Mode line: 2d / 3d / main
.gdskills/vision/raw/*.png Bridge output
.gdskills/vision/done Written after PNG flush

Steps

  1. ensure_gitignore → .gdskills/
  2. Copy templates → stage addons/_gdskills_agent_vision/
  3. Append res://addons/_gdskills_agent_vision/plugin.cfg to project.godot [editor_plugins] enabled=
  4. Open/focus Godot editor on the project (plugin _process polls request)
  5. Python waits for done + stable PNG → encode WebP → delete handshake files
  6. Teardown: remove plugin from enabled=, delete addons/_gdskills_agent_vision/

CLI:

python scripts/capture.py editor --project-root . --editor-mode 3d
python scripts/capture.py editor --project-root . --godot "C:/Path/Godot_v4.7.exe" --editor-mode 2d
# debug only — MUST teardown afterward:
python scripts/capture.py editor --keep-bridge

When --godot is set, the CLI Popens godot -e --path <project> after staging so the plugin can see request.

Capture WHY (empty / wrong pixels)

  • Always await RenderingServer.frame_post_draw (twice is safer) before Viewport.get_texture().get_image() — otherwise the Image can be empty or one frame stale.
  • HDR / float viewports may need conversion before PNG; if save_png fails or Image is empty, switch main screen (2D/3D) and retry.
  • DPI mis-crop on Windows OS capture: process not Per-Monitor V2 aware → window rect in wrong space → black bars or wrong panel. Sympton for OS modes, not editor SubViewport grabs.
  • Control crop WHEN: need a dock/inspector slice rather than the 2D/3D scene SubViewport. HOW: capture editor main viewport Image, then Image.get_region(Rect2i(control.get_global_rect())) (see agent_vision_editor_bridge_capture_viewport.gd). Clamp to image bounds — global rects can extend off-screen.

Recovery

Symptom Fix
Timeout waiting for done Editor not open; plugin disabled; .gdskills not under project root; pass --godot
Empty PNG / plugin error Wrong main screen; await frames; try --editor-mode main
Leftover addon after kill Manually delete addons/_gdskills_agent_vision/ and strip enabled= entry
--keep-bridge left on Run teardown: disable plugin, delete addon, restore project.godot

Invariants

  • Underscore addon name signals private/temp.
  • Do not register docks, export plugins, or autoloads.
  • Prefer EditorInterface.get_editor_viewport_2d/3d + await RenderingServer.frame_post_draw.
  • If timeout: confirm editor is open, plugin enabled, and .gdskills/vision/request is visible to the editor (res://.gdskills/...).

Docs

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