jwynia avatar

Godot Best Practices

This is a solid reference for keeping your GDScript code clean and maintainable in Godot 4.x projects. It covers the stuff that actually matters: proper type hints everywhere, using @onready with unique node names instead of fragile paths, signal-driven architecture with the "signal up, call down" pattern, and consistent naming conventions. The quick reference table is genuinely useful for code reviews. It won't teach you game design, but if you're writing GDScript and want to avoid common pitfalls like deep node paths or autoload abuse, this gives you the patterns that scale. The script structure template alone saves time when starting new classes.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
2.1K
GitHub stars
182
last updated
Aug 21, 2026

Install

$ npx -y skills add jwynia/agent-skills --skill godot-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Godot 4.x GDScript Best Practices

Guide AI agents in writing high-quality GDScript code for Godot 4.x. This skill provides coding standards, architecture patterns, and templates for game development.

When to Use This Skill

Use this skill when:

  • Generating new GDScript code
  • Creating or organizing Godot scenes
  • Designing game architecture and node hierarchies
  • Implementing state machines, object pools, or save systems
  • Answering questions about GDScript patterns or Godot conventions
  • Reviewing GDScript code for quality issues

Do NOT use this skill when:

  • Working with C# in Godot (use C# patterns)
  • Working with Godot 3.x (syntax differs significantly)
  • Using GDExtension/C++ (different paradigm)
  • Working with Godot's visual scripting

Core Principles

1. Naming Conventions

Follow GDScript naming standards consistently:

# Classes: PascalCase
class_name PlayerController
extends CharacterBody2D

# Signals: past_tense_snake_case (describe what happened)
signal health_changed(new_health: int)
signal player_died
signal item_collected(item: Item)

# Constants: SCREAMING_SNAKE_CASE
const MAX_SPEED: float = 200.0
const JUMP_FORCE: int = -400

Sponsors

Details

Repository
github.com/jwynia/agent-skills
Categories
Documentation, Code Review & Quality, AI & Agent Building, Debugging, Game Development

More from jwynia/agent-skills

All 118
1calm-north avatarbuild-clusterscalm-north/seojuice-skillsBuild a topical authority cluster from a seed keyword or topic. Use when the user asks about topic clusters, content silos, pillar pages, topical authority, con2.1Kskills.sh installs
2k-dense-ai avatarstable-baselines3k-dense-ai/scientific-agent-skillsProduction-ready reinforcement learning algorithms (PPO, SAC, DQN, TD3, DDPG, A2C) with scikit-learn-like API. Use for standard RL experiments, quick prototypin2.1Kskills.sh installs
3koreal6803 avatarfinlabkoreal6803/finlab-aiComprehensive guide for FinLab quantitative trading package across global stock markets (TW, US, KR, JP, HK; both single-name equities and ETFs/funds). Use when2Kskills.sh installs
4github avatarmicrosoft-agent-frameworkgithub/awesome-copilotCreate, update, refactor, explain, or review Microsoft Agent Framework solutions using shared guidance plus language-specific references for .NET and Python.2Kskills.sh installs
5nvidia avatarnemo-automodel-model-onboardingnvidia/skillsGuide for onboarding new model architectures into NeMo AutoModel, including architecture discovery, implementation patterns, registration, and validation.1.9Kskills.sh installs
6daymade avatartranscript-fixerdaymade/claude-code-skillsCorrects speech-to-text transcription errors using dictionary rules and Claude's built-in AI (no external API key required — Native AI Correction is the DEFAULT1.9Kskills.sh installs