Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-project-foundations

БесплатноЗапускает вложенные скриптыНе проверен

Expert blueprint for Godot 4 project organization (feature-based folders, naming conventions, version control). Enforces snake_case files, PascalCase nodes…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

Project Foundations

Feature-based organization, consistent naming, and version control hygiene define professional Godot projects.

Available Scripts

Core Scaffolding (Stateful / Persistent)

Runtime Utilities (Stateless / Lightweight)

Do NOT Load dependency_auditor.gd unless troubleshooting loading errors.

NEVER Do (Expert Anti-Patterns)

Global Architecture

  • NEVER group by file type — /scripts, /sprites folders. Nightmare maintainability. Use feature-based: /player, /ui.
  • NEVER mix snake_case and PascalCase in files — Standard: snake_case for files, PascalCase for nodes.
  • NEVER use hardcoded get_node() paths — Brittle on reparenting. Use %SceneUniqueNames for stable references.
  • NEVER use monolithic Autoloads — Avoid managers that hold visual node references; keep singletons focused on pure data or RefCounted delegation.

Resource Management

  • NEVER forget .gitignore — Committing .godot/ folder = 100MB+ bloat + conflicts.
  • NEVER skip .gdignore for raw assets — Design source files (.psd, .blend) in root will be imported unless ignored.
  • NEVER modify globally shared Resources directly — Strictly call duplicate(true) for unique instances with independent state.

Performance & Threading

  • NEVER block the main thread with load() — Strictly use ResourceLoader.load_threaded_request() for async scene transitions.
  • NEVER modify the SceneTree from a background thread — Strictly use call_deferred() for thread-to-main-thread synchronization.
  • NEVER skip Mutex locking during pooled access — Strictly ensure thread-safety when using a shared WorkerThreadPool or Object Pool.
  • NEVER use _process() for precise input — Tied to visual framerate. Strictly use _unhandled_input() to capture exact, frame-independent events.

Ownership decision tree

Need Prefer Avoid
Everything for one feature (player, HUD panel) Feature folder scene module Type folders (/scripts, /sprites)
Cross-scene service with lifecycle (save, audio bus) Autoload via managed_autoload.gd Stuffing UI nodes into singletons
Many publishers/subscribers, no ownership EventBus → MANDATORY global_event_bus.gd Autoload that imports half the game
One scene's private wiring Scene-local node + %UniqueName Global bus for parent→child calls

1. Naming Conventions

  • Files & Folders: snake_case (C# exception: PascalCase class-match).
  • Node Names: PascalCase.
  • Exports: snake_case; Inspector Title-Cases them.
  • Private: leading _ on members and virtuals (_ready, _process).
  • Signals: past-tense snake_case (health_changed).
  • Unique Names: %SceneUniqueNames over brittle get_node() paths.

2. Feature-Based Organization

Group by feature (/entities/player, /ui/main_menu), not by file type. Keep /common, /levels, /addons.

3. Version Control

Godot-aware .gitignore (ignore .godot/) + .gdignore on raw design sources.

Workflow: Scaffolding a New Project

  1. Ensure project.godot exists → run project_bootstrapper.gd / create entities/, ui/, levels/, common/.
  2. Setup Git .gitignore + document feature-based layout in README.md.
  3. Register lean Autoloads only after the ownership decision tree says so.

Typed GDScript strictness (foundations-only)

Full typed-GDScript migration l

Полный SKILL.md на GitHub

Установить godot-project-foundations в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

godot.gitignorereferences/foundations-deep.mdreferences/migration-notes.mdscripts/action_buffer_input.gdscripts/advanced_telemetry_logger.gdscripts/async_resource_loader.gdscripts/base_data_resource.gdscripts/build_metadata_provider.gdscripts/dependency_auditor.gdscripts/feature_scaffolder.gdscripts/global_event_bus.gdscripts/managed_autoload.gdscripts/node_pooling_system.gdscripts/project_bootstrapper.gdscripts/runtime_configurator.gdscripts/scene_naming_validator.gdscripts/threaded_task_worker.gd

FAQ

Что делает скилл godot-project-foundations?

Expert blueprint for Godot 4 project organization (feature-based folders, naming conventions, version control). Enforces snake_case files, PascalCase nodes, %SceneUniqueNames, and .gitignore best practices. Use when starting new projects or refactoring structure. Keywords project organization, naming conventions, snake_case, PascalCase, feature-based, .gitignore, .gdignore.

Как установить скилл godot-project-foundations?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-project-foundations запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-project-foundations с