Установка
SKILL.md
Godot Builder Skill
The godot-builder skill provides an expert-grade foundation for programmatic game development and headless automation using the Godot 4.7-stable CLI. Override paths via GODOT_PATH and GODOT_CONSOLE_PATH environment variables.
Expert Automation Mindset
- Headless Isolation via XDG: When running multiple concurrent Godot instances, always override
XDG_DATA_HOMEandXDG_CONFIG_HOMEto prevent cache corruption between instances. - Cache Invalidation (Force Import): Programmatically delete the
.godot/imported/directory to force the engine to re-evaluate modified global import settings. - Explicit Ownership: Scene nodes MUST have their
ownerproperty set to the scene root, or they will be discarded during serialization. - Latency-Sensitive Multi-threading: GPU interactions (textures, image data) must stay on the main thread to avoid pipeline stalls and deadlocks.
Hardened Anti-Patterns (NEVER List)
- NEVER save runtime-generated UIDs headlessly;
ResourceSaver.save()does NOT serialize UIDs in headless mode. Invokegodot -e --headless --importas a post-process. - NEVER use
Resource.duplicate(true)in Godot 4.4+; useduplicate_deep(Resource.DEEP_DUPLICATE_ALL)to prevent procedural state-bleed. - NEVER hardcode
.tscnor.tresextensions; always load viauid://or without extensions to avoid failures in exported binary builds. - NEVER execute GPU-bound calls on secondary threads. Use
RenderingServer.call_on_render_thread(). - NEVER enable the Shader Baker for Dedicated Server builds; the headless backend ignores it.
- NEVER call
ResourceUID.set_id()without callinghas_id()first; it causes a fatal CLI crash. - NEVER skip
RenderingServer.canvas_item_reset_physics_interpolation()when programmatically moving low-level CanvasItems on their first frame; failure causes visual desync between rendering and physics systems.
Expert Automation Workflows
Do NOT Load the full script catalog for a single task. Load only the MANDATORY scripts named in the active workflow. Thin process wrappers (
launch_editor.py,run_project.py,stop_project.py,get_*,list_projects.py) live in the appendix — do not preload them unless that exact CLI action is required.
Workflow #1: The Hardened 3D Asset Pipeline
Purpose: Automates the ingestion of raw 3D assets into production-ready scenes with accurate physics collisions.
- MANDATORY — read before improvising CLI flags: gltf_processor.py → collision_generator.py → save_scene.py. Then run
godot -e --headless --import(or import_automator.py) — do not invent alternate flag orders. - Sequence:
gltf_processor.py->collision_generator.py->save_scene.py-> headless--import. - Expert Defense: Sets explicit
ownerfor every node. Forces a final headless import to fix the missing UID serialization. - Failure modes / fallbacks:<!-- -->
- UID missing after headless save: Expected —
ResourceSaverdoes not serialize UIDs headless. Fallback: re-run--import; if UIDs still missing, run update_project_uids.py after import completes. - Import hangs / never exits: Script omitted
quit()or editor import is waiting on GPU. Fallback: ensure the post-process script callsget_tree().quit(); kill the PID via stop_project.py and retry withXDG_*isolation. - Collision mesh empty / wrong: Source glTF had no mesh arrays or wrong node paths. Fallback: inspect gltf_processor.py output scene before regenerating collisions.
- UID missing after headless save: Expected —
Workflow #2: Procedural Level Optimization & 4.4+ Scaling
Purpose: Generates optimized procedural level chunks without shared resource state corruption between instances.
- MANDATORY — read before improvising: csg_optimizer.py → navmesh_baker.py. Apply
duplicate_deep(Resource.DEEP_DUPLICATE_ALL)between bake steps — do not useduplicate(true). - Sequence:
csg_optimizer.py->duplicate_deep(ALL)->navmesh_baker.py. - Expert Defense: Uses
duplicate_deepto isolate materials/resources. Bakes CSG to static geometry before triggering NavMesh pathfinding. - Failure modes / fallbacks:<!-- -->
- NavMesh bake on live CSG: Pathfinding holes / empty regions. Fallback: confirm CSG→static mesh bake finished before navmesh_baker.py.
- Material/state bleed across chunks: Used shallow duplicate. Fallback: re-bake with
DEEP_DUPLICATE_ALLper instance. - Headless bake hang: Missing
quit()after bake. Fallback: add explicit quit; isolate viaXDG_DATA_HOME/XDG_CONFIG_HOME.
Workflow #3: Production CI/CD & Force-Import Validation
Purpose: Validates cross-platform builds and ensures global project settings (VRAM compression) are strictly applied.
- MANDATORY — read before improvising export flags: test_runner.py → profile_generator.py → ci_export_prepper.gd → ci_exporter.py.
- Sequence:
rm -rf .godot/imported->test_runner.py->profile_generator.py->ci_exporter.py. - Expert Defense: Forces full re-import to validate asset compression. Isolates CI runs via XDG variables. Injects secure keystore paths from environment variables.
- Failure modes / fallbacks:<!-- -->
- Export preset missing / wrong platform:
export_presets.cfgnot mutated for the target. Fallback: run ci_export_prepper.gd headlessly before--export-release; verify preset name matches CI matrix. - Hung headless CI (no exit): Script never called
quit(). Fallback: always end-sscripts withquit(); treat non-zero hang as kill + retry with XDG isolation. - UID / import validation fail after cache wipe: Re-import incomplete. Fallback: re-run
--import, then update_project_uids.py; do not export until import finishes cleanly.
- Export preset missing / wrong platform:
Automation & CI/CD Pipelines (Godot 4.7)
Professional Godot building requires a "Zero-Touch" philosophy for assets and binary exports.
1. Programmatic Asset Re-import
- NEVER manually select 500 textures to change their compression.
- Use
ConfigFileto mutate.importfiles andEditorFileSystem.reimport_files()to trigger a batch update on the main thread safely.
2. Orphan Asset Detection (Slop Scan)
- NEVER trust
res://is clean. Over time, deleted scenes leave behind orphaned textures and sounds that bloat the final build. - Use
ResourceLoader.get_dependencies()to recursively trace exactly which assets are linked to your "Main Scene" and flag anything else as slop.
3. Headless CI/CD Context
- Use
--headless --scriptfor versioning tasks (mutatingexport_presets.cfg) before running the final--export-release. - Tip: Always call
quit()at the end of a headless script, or your CI runner will hang indefinitely.
Expert Pipeline Scripts (load on demand)
Primary automation scripts — open only when the matching workflow requires them.
Scene & Asset Pipelines
- gltf_processor.py: Headlessly converts raw
.glb/.gltfassets into Godot Scenes. - collision_generator.py: Generates
ConcavePolygonShape3Dphysics from mesh data. - save_scene.py: Safely packs and persists the current node tree to disk (set
ownerfirst). - csg_optimizer.py: Bakes procedural CSG boolean operations into static meshes.
- navmesh_baker.py: Executes asynchronous headless NavMesh pathfinding baking.
- tilemap_generator.py: Procedurally builds TileMapLayer grids from JSON data.
- ui_assembler.py: Constructs complex GUI layouts from standardized JSON structures.
- create_scene.py / add_node.py / load_sprite.py: Programmatic scene tree builders.
- export_mesh_library.py: Converts 3D scenes into
.meshlibresources for GridMaps. - orphan_asset_scanner.gd: Recursive dependency tracer for identifying unused resources.
CI / Import / Export Pipelines
- ci_exporter.py: Orchestrates multi-platform release exports headlessly.
- ci_export_prepper.gd: Headless versioning script for
export_presets.cfg. - profile_generator.py: Generates feature profiles for module-stripping optimization.
- test_runner.py: Executes headless unit and integration tests (GUT/doctest).
- import_automator.py / asset_reimport_utility.gd: Batch import enforcement.
- update_project_uids.py / get_uid.py: UID sync after headless saves.
- config_compiler.py: Compiles JSON/CSV data into optimized
.cfgconfig files.
Appendix: Thin Process Wrappers (Do NOT preload)
Convenience CLI only — not expert pipeline prose. Load when you need that exact process action.
- launch_editor.py / run_project.py / stop_project.py: Editor/game process lifecycle.
- get_debug_output.py / get_godot_version.py / get_project_info.py / list_projects.py: Read-only project/process introspection.
Reference
Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.
Official Documentation
- Command line tutorial —
--headless,--path,-s/--script,--import, and--export-*flags that every builder wrapper invokes. - Exporting projects — Export presets, CLI release/debug export flow, and why CI must mutate
export_presets.cfgbefore--export-release. - Feature tags — Custom/feature-profile tags used when stripping modules or gating CI smoke paths with
OS.has_feature. - Exporting for dedicated servers — Headless/server export constraints (no GPU bake assumptions) that pair with CI isolation via XDG vars.
- Import process —
.import+.godot/importedlifecycle; why deleting imported cache forces project-wide revalidation. - Importing 3D scenes — glTF→scene pipeline entry before
GLTFDocument/ResourceSaverautomation. - Available 3D formats — glTF/GLB expectations for headless converters and collision generation.
- Using CSG tools — Why procedural CSG must bake to static meshes before shipping or NavMesh baking.
- Using NavigationMeshes — Headless NavMesh bake ownership and region setup after CSG/static geometry lands.
- ResourceUID — Safe
has_id/set_id/uid://sync after headless saves (UIDs are not serialized byResourceSaverheadless). - ResourceSaver — Pack/save API for programmatic
.tscnwrites; ownership must be set beforePackedScene.pack. - EditorFileSystem —
reimport_files()for batch import enforcement from@toolEditorScripts.
Related Skills
Prerequisites
- godot-project-foundations — Feature folders,
project.godotmetadata, and VCS ignores must exist before CLI launch/import/export automation. - godot-gdscript-mastery — Headless
SceneTreeworkers, typed Resources, andquit()lifecycle patterns used by every-sscript. - godot-resource-data-patterns —
PackedScene, UID paths, and deep-duplicate rules that prevent procedural state-bleed across builder runs.
Complements
- godot-export-builds — Platform templates, codesign/keystore, and filter rules that sit on top of
ci_exporter.pyorchestration. - godot-3d-world-building — CSG/GridMap/MeshLibrary authoring that this skill bakes and exports headlessly.
- godot-navigation-pathfinding — Runtime agents and layer costs that consume NavMeshes produced by
navmesh_baker.py. - godot-tilemap-mastery — TileSet/TileMapLayer conventions for scenes generated by
tilemap_generator.py. - godot-ui-containers — Container layout rules that
ui_assembler.pyshould emit instead of absolute Control positions. - godot-physics-3d — Collision layers/shapes for trimesh bodies created by
collision_generator.py.
Downstream / consumers
- godot-testing-patterns — GUT/integration suites launched through
test_runner.pyin CI after import/export steps. - godot-performance-optimization — Escalate when orphan scans, import compression, or export size still miss budgets.
- godot-monte-carlo-balancer — Headless
test_runnercalibration loops for balance sims after builder CI smoke passes. - godot-debugging-profiling — Consume
get_debug_output.pylogs when headless imports/exports fail without a GUI.
Master
- godot-master — Library router and mirrored module entry; open when discovering which Domain Skill owns a cross-cutting build/automation concern.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: godot-builder](https://darkplay.ru/ai/skills/thedivergentai-gd-agentic-skills-godot-builder)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
agentic-bundle-aas-agent-mcp-buildersickn33 · Установите набор редакционных навыков "AAS Agent & MCP Builder" для Claude Code.
agentic-bundle-aas-api-platform-buildersickn33 · Установите набор редакционных навыков «AAS API Platform Builder» для Claude Code.
agentic-bundle-aas-automation-buildersickn33 · Установите набор редакционных навыков "AAS Automation Builder" для Claude Code.
agentic-bundle-aas-mobile-app-buildersickn33 · Установите набор редакционных навыков "AAS Mobile App Builder" для Claude Code.
agentic-bundle-aas-python-api-buildersickn33 · Установите набор редакционных навыков "AAS Python API Builder" для Claude Code.
agentic-bundle-aas-secure-app-buildersickn33 · Установите набор редакционных навыков «AAS Secure App Builder» для Claude Code.
agentic-bundle-aas-web-app-buildersickn33 · Установите набор редакционных навыков «AAS Web App Builder» для Claude Code.
agentic-bundle-automation-buildersickn33 · Установите набор редакционных навыков "Automation Builder" для Claude Code.
agentic-bundle-makepad-buildersickn33 · Установите набор редакционных навыков "Makepad Builder" для Claude Code.
outputaianthropics · Набор инструментов для разработки рабочих процессов Output.ai в Claude Code. Добавляет 5…Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для автоматизации и ассистентов
Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк
Give Me Public
AITunnelAitunnel
STIVAStiva
Wikibot (Викибот)Wikibot
mymeet.aiMymeet
InsighterInsighter
TGHuntTghunt
LegiscanLegiscan
RouterAIRouterai
Wikibot 1.0 (Викибот)WikibotЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-maker