원클릭으로
godot-patterns
GDScript patterns and conventions for this Godot 4.6 project. Use when writing or reviewing GDScript code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
GDScript patterns and conventions for this Godot 4.6 project. Use when writing or reviewing GDScript code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | godot-patterns |
| description | GDScript patterns and conventions for this Godot 4.6 project. Use when writing or reviewing GDScript code. |
| user-invocable | false |
When creating a new game entity (player, NPC, interactable):
class_name with PascalCase@export for external node references (Health, Controller, etc.)_enter_tree(), not _ready()_on_<source>_<signal_name>()R.player_actions, never raw stringstree_exiting signalAll controllable entities use the Controller pattern:
@export var controller: Controller
func _enter_tree() -> void:
controller.attacked.connect(_on_controller_attacked)
controller.moved.connect(_on_controller_moved)
controller.dash.connect(_on_controller_dash)
Entities that deal damage: add a HitBox child with collision on layer 3.
Entities that take damage: add a HurtBox child with @export var health: Health, collision on layer 4.
Always respect: Dash > Attack > Movement. Check dash_controller.is_dashing before allowing attack. Check _current_melee_attack != null before allowing movement direction changes.
Dynamic scenes (like MeleeAttack) are instantiated, added as children, and cleaned up on tree_exiting:
var instance = _scene.instantiate()
add_child(instance)
instance.connect("tree_exiting", func(): instance_ref = null)