godot-gdscript-patterns — скилл для Claude Code
Скилл помогает писать игры на Godot 4.x с GDScript: проектировать сцены, сигналы и состояния. Пригодится для игровых систем и разбора архитектуры.
/plugin marketplace add wshobson/agents
/plugin install game-development@claude-code-workflowsЧто делает godot-gdscript-patterns
godot-gdscript-patterns подсказывает практики для разработки на Godot 4.x с GDScript. Он охватывает сцены, ресурсы, сигналы и группы узлов, а также показывает, как строить игровые системы и управлять состоянием игры.
Внутри есть примеры кода для CharacterBody2D, сигналов, экспортируемых свойств и обработки движения. Подробные разборы паттернов вынесены в references/details.md; файл стоит читать, когда краткой навигации недостаточно. Скилл рассчитан на Claude Code, Codex и Cursor.
Ставьте его, если работаете над игрой на Godot и хотите сверять архитектуру GDScript с готовыми паттернами. Для задач вне Godot он лишний.
Какие задачи решает
- спроектировать архитектуру сцены в Godot
- связать игровые узлы через сигналы
- организовать состояния игры
- написать движение и получение урона на GDScript
- найти способы оптимизации GDScript
Примеры запросов агенту
- Спроектируй сцену игрока в Godot 4.x и объясни, какие узлы использовать.
- Напиши для `CharacterBody2D` движение, сигналы здоровья и обработку смерти на GDScript.
- Проверь архитектуру игровых состояний и предложи подходящий паттерн.
Как установить godot-gdscript-patterns
1Через маркетплейс плагинов
/plugin marketplace add wshobson/agents/plugin install game-development@claude-code-workflows2Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill godot-gdscript-patterns -a claude-code3Вручную: положить файлы
~/.claude/skills/godot-gdscript-patterns/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/godot-gdscript-patterns/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill godot-gdscript-patterns -a codex2Вручную: положить файлы
.agents/skills/godot-gdscript-patterns/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add wshobson/agents --skill godot-gdscript-patterns -a cursor2Вручную: положить файлы
.cursor/skills/godot-gdscript-patterns/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install wshobson/agents godot-gdscript-patterns2Вручную: положить файлы
.github/skills/godot-gdscript-patterns/SKILL.mdКомандой платформы
gemini skills install https://github.com/wshobson/agents --path plugins/game-development/skills/godot-gdscript-patternsВручную: положить файлы
.devin/skills/godot-gdscript-patterns/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о godot-gdscript-patterns
Как установить godot-gdscript-patterns в Claude Code?
Выполните npx skills add wshobson/agents --skill godot-gdscript-patterns -a claude-code. После установки файл скилла находится в ~/.claude/skills/godot-gdscript-patterns/SKILL.md.
Что делает godot-gdscript-patterns?
Скилл помогает разрабатывать игры на Godot 4.x с GDScript. Он разбирает сцены, сигналы, игровые состояния и структуру игровых систем.
С какими платформами работает скилл?
Скилл рассчитан на Claude Code, Codex и Cursor. Для каждой платформы используется собственная команда установки и путь к файлу скилла.
Исходный текст
SKILL.md · MIT
---
name: godot-gdscript-patterns
description: Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization. Use when building Godot games, implementing game systems, or learning GDScript best practices.
---
# Godot GDScript Patterns
Production patterns for Godot 4.x game development with GDScript, covering architecture, signals, scenes, and optimization.
## When to Use This Skill
- Building games with Godot 4
- Implementing game systems in GDScript
- Designing scene architecture
- Managing game state
- Optimizing GDScript performance
- Learning Godot best practices
## Core Concepts
### 1. Godot Architecture
```
Node: Base building block
├── Scene: Reusable node tree (saved as .tscn)
├── Resource: Data container (saved as .tres)
├── Signal: Event communication
└── Group: Node categorization
```
### 2. GDScript Basics
```gdscript
class_name Player
extends CharacterBody2D
# Signals
signal health_changed(new_health: int)
signal died
# Exports (Inspector-editable)
@export var speed: float = 200.0
@export var max_health: int = 100
@export_range(0, 1) var damage_reduction: float = 0.0
@export_group("Combat")
@export var attack_damage: int = 10
@export var attack_cooldown: float = 0.5
# Onready (initialized when ready)
@onready var sprite: Sprite2D = $Sprite2D
@onready var animation: AnimationPlayer = $AnimationPlayer
@onready var hitbox: Area2D = $Hitbox
# Private variables (convention: underscore prefix)
var _health: int
var _can_attack: bool = true
func _ready() -> void:
_health = max_health
func _physics_process(delta: float) -> void:
var direction := Input.get_vector("left", "right", "up", "down")
velocity = direction * speed
move_and_slide()
func take_damage(amount: int) -> void:
var actual_damage := int(amount * (1.0 - damage_reduction))
_health = max(_health - actual_damage, 0)
health_changed.emit(_health)
if _health <= 0:
died.emit()
```
## Detailed patterns and worked examples
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
© Seth Hobson · MIT · wshobson/agents