AGENT SKILL

operate-godot

Use when the user asks to build, inspect, import assets into, or export a Godot 4 project headlessly (realtime 3D delivery, game scenes, interactive world execution). Uses godot --headless --script CLI; no GUI. Free/MIT engine.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 0
Forks
1

01 前言 Front Matter

name
operate-godot
description
Use when the user asks to build, inspect, import assets into, or export a Godot 4 project headlessly (realtime 3D delivery, game scenes, interactive world execution). Uses godot --headless --script CLI; no GUI. Free/MIT engine.

03 SKILL.md 正文

Operate Godot (headless)

Drive Godot 4 (MIT) from the CLI. Godot's own binary is the operator; no bridge server needed. Use it for realtime delivery, interactive scenes, physics, and game logic, where Blender's strength is content authoring.

Detection

godot --version            # PATH
where godot                # Windows search

If absent: winget install GodotEngine.GodotEngine (user step, free). Use the standard build (not .NET) unless C# is required.

Headless commands

godot --headless --editor --quit --path proj/   # import assets, build caches
godot --headless --path proj/ --script tool.gd  # run SceneTree script
godot --headless --path proj/ --export-release "Preset" out.exe
godot --headless --path proj/ --export-pack "Preset" out.pck
godot --headless --path proj/ --check-only --script tool.gd   # parse check

--script runs a GDScript extending SceneTree (or MainLoop); use quit() to exit. Stdout captures print() output, so scripts can emit JSON for agent consumption.

Script template (query/edit a scene)

extends SceneTree
func _init():
    var scene = load("res://scenes/main.tscn").instantiate()
    print(JSON.stringify({"nodes": scene.get_child_count()}))
    quit()

Write tool.gd under the project (or a scratch dir passed with --path), run headless, parse JSON from stdout.

Blender -> Godot pipeline

  • Export glTF from Blender (bpy.ops.export_scene.gltf), drop into Godot res://, run godot --headless --editor --quit to import.
  • Godot's importer also reads .blend files directly (requires Blender installed on the same machine; it shells to blender -b internally).
  • USDZ/usd import is supported via plugins; prefer glTF for reliability.

Boundaries

  • Godot not on PATH -> report install hint, don't silently download.
  • --script runs GDScript; for pure scene queries, use --check-only or an export preset for validation.
  • Game builds/signing are user-managed; the agent manipulates projects, not publishable artifacts, unless asked.

04 同仓库更多 Skills

Leostruka
Leostruka/devin-bundle

montador-de-ideias

Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening/optimization, and high-impact contact surfaces.

★ 0
Leostruka
Leostruka/devin-bundle

git-github-adaptive-engineering

Use when any task touches git history, GitHub issues/PRs/releases/CI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit/PR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug/finish skills.

★ 0
Leostruka
Leostruka/devin-bundle

adaptive-agenda-calendar-routine-engine

Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions/gcal/wrapper.py.

★ 0
Leostruka
Leostruka/devin-bundle

demo

Use when demonstrating a skill in a fixture project.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0
Leostruka
Leostruka/devin-bundle

duplicate-skill

Use when testing duplicate skill name detection.

★ 0