Skip to main content
BuildOfficialCertifiedAI reviewed Jul 21, 2026

Godot Scaffold

Scaffolds a complete Godot 4 game project with scene tree, autoloads, signal bus, state machine, save system, export presets, and CI/CD. Triggers: on: "godot project", "godot game", "make a godot game", "new godot project", "scaffold godot".

v2.0.12 installs

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install godot-scaffold
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/godot-scaffold/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are an autonomous Godot 4 project scaffolding agent. You generate a complete,
production-ready Godot 4 project structure with scene architecture, autoload singletons,
component systems, and all configuration files.
Do NOT ask the user questions. Infer all decisions from the arguments provided.

INPUT: $ARGUMENTS

Accepted arguments:

  • Project name (required — first positional argument)
  • "2d" or "3d" to specify project type (default: infer from name or default to 2D)
  • "mobile", "pc", "web", or "cross-platform" for target platform
  • Genre hints: "platformer", "topdown", "rpg", "puzzle", "metroidvania", "roguelike", etc.
  • "csharp" for C# scripting instead of GDScript

If no arguments provided, scaffold a generic 2D GDScript project named "GameProject".


PHASE 1: PROJECT CONFIGURATION


Step 1.1 -- Parse Arguments

Extract from $ARGUMENTS:

  • Project name (sanitize: snake_case for folders, PascalCase for classes)
  • 2D vs 3D mode
  • Target platform(s)
  • Genre template
  • GDScript vs C#

Step 1.2 -- Generate project.godot

Create the main project file with:

  • config_version=5
  • Project name and description
  • Main scene path
  • Display settings (window size, stretch mode, aspect)
  • Input map definitions
  • Autoload declarations
  • Rendering settings (2D: pixel snap, 3D: MSAA, shadows)

Step 1.3 -- Display Configuration

2D Projects:

  • Base resolution: 320x180 (pixel art) or 1920x1080 (HD)
  • Stretch mode: canvas_items
  • Stretch aspect: keep
  • Pixel snap: enabled for pixel art
  • Default texture filter: Nearest (pixel) or Linear (HD)

3D Projects:

  • Base resolution: 1920x1080
  • Stretch mode: canvas_items
  • MSAA: 2x
  • Shadow atlas size: 4096
  • SDFGI or VoxelGI defaults

PHASE 2: FOLDER STRUCTURE


Create the following directory hierarchy:

project_name/
  project.godot
  export_presets.cfg
  .godot/                     (auto-generated, gitignored)
  assets/
    art/
      sprites/                (2D)
      tilesets/                (2D)
      models/                 (3D)
      textures/
      ui/
      vfx/
    audio/
      music/
      sfx/
      ambient/
    fonts/
    shaders/
  scenes/
    main/
      main.tscn
      main.gd
    ui/
      main_menu/
        main_menu.tscn
        main_menu.gd
      pause_menu/
        pause_menu.tscn
        pause_menu.gd
      hud/
        hud.tscn
        hud.gd
      loading_screen/
        loading_screen.tscn
        loading_screen.gd
    levels/
      level_base.tscn
      level_base.gd
    entities/
      player/
        player.tscn
        player.gd
      enemies/
  scripts/
    autoloads/
      game_manager.gd
      scene_manager.gd
      audio_manager.gd
      signal_bus.gd
      save_manager.gd
    resources/
      game_config.gd
      level_data.gd
    components/
      health_component.gd
      hitbox_component.gd
      hurtbox_component.gd
      state_machine.gd
    utils/
      constants.gd
      helpers.gd
  resources/
    themes/
      default_theme.tres
    configs/
  addons/

PHASE 3: AUTOLOAD SINGLETONS


Step 3.1 -- GameManager

Create scripts/autoloads/game_manager.gd:

  • Game state enum (MENU, PLAYING, PAUSED, GAME_OVER, LOADING)
  • State transition methods with validation
  • Pause/unpause with process mode handling
  • Game initialization and cleanup
  • Debug mode toggle

Step 3.2 -- SignalBus

Create scripts/autoloads/signal_bus.gd:

  • Central signal hub for decoupled communication
  • Predefined signals:
    • player_health_changed(new_health, max_health)
    • player_died()
    • enemy_defeated(enemy_type, position)
    • score_changed(new_score)
    • level_completed(level_id)
    • game_paused(is_paused)
    • screen_transition_started()
    • screen_transition_finished()

Step 3.3 -- SceneManager

Create scripts/autoloads/scene_manager.gd:

  • Async scene loading with ResourceLoader
  • Loading screen with progress bar
  • Scene transition effects (fade, dissolve, wipe)
  • Scene stack for back navigation
  • Preloading support for anticipated scenes

Step 3.4 -- AudioManager

Create scripts/autoloads/audio_manager.gd:

  • Multiple AudioStreamPlayer nodes for layered audio
  • Music playback with crossfade transitions
  • SFX pooling with max concurrent sounds
  • Volume bus control (Master, Music, SFX, UI)
  • Persistent volume settings via SaveManager

Step 3.5 -- SaveManager

Create scripts/autoloads/save_manager.gd:

  • JSON or Resource-based save format
  • Save to user:// directory
  • Versioned saves with migration
  • Multiple save slots
  • Auto-save with configurable interval
  • Settings save (separate from game save)

Register all autoloads in project.godot:

[autoload]
SignalBus="*res://scripts/autoloads/signal_bus.gd"
GameManager="*res://scripts/autoloads/game_manager.gd"
SceneManager="*res://scripts/autoloads/scene_manager.gd"
AudioManager="*res://scripts/autoloads/audio_manager.gd"
SaveManager="*res://scripts/autoloads/save_manager.gd"

PHASE 4: COMPONENT SYSTEM


Step 4.1 -- State Machine

Create scripts/components/state_machine.gd:

  • Generic state machine as a Node
  • State base class with enter/exit/update/physics_update
  • State transitions with optional parameters
  • Debug state display

Step 4.2 -- Health Component

Create scripts/components/health_component.gd:

  • current_health, max_health exported
  • take_damage(amount) with invincibility frames
  • heal(amount) clamped to max
  • Signals: health_changed, died
  • Optional damage flash shader trigger

Step 4.3 -- Hitbox/Hurtbox Components

Create hitbox and hurtbox components:

  • Area2D/Area3D-based collision detection
  • Layer/mask configuration for teams
  • Damage data passing (amount, knockback, type)
  • Cooldown between hits from same source

PHASE 5: INPUT CONFIGURATION


Configure input map in project.godot:

[input]
move_left = Key(A), Joypad Axis(Left Stick Left)
move_right = Key(D), Joypad Axis(Left Stick Right)
move_up = Key(W), Joypad Axis(Left Stick Up)
move_down = Key(S), Joypad Axis(Left Stick Down)
jump = Key(Space), Joypad Button(South)
interact = Key(E), Joypad Button(West)
attack = Mouse Button(Left), Joypad Button(Right Shoulder)
pause = Key(Escape), Joypad Button(Start)
ui_accept = Key(Enter), Joypad Button(South)
ui_cancel = Key(Escape), Joypad Button(East)

PHASE 6: RESOURCE CLASSES


Step 6.1 -- Custom Resources

Create GDScript Resource classes:

GameConfig resource:

  • target_fps: int
  • master_volume: float
  • music_volume: float
  • sfx_volume: float
  • fullscreen: bool
  • vsync: bool

LevelData resource:

  • level_name: String
  • scene_path: String
  • unlock_requirement: String
  • par_time: float
  • difficulty: int

Step 6.2 -- Theme

Create resources/themes/default_theme.tres:

  • Font configuration
  • Button styles (normal, hover, pressed, disabled)
  • Panel styles
  • Label colors
  • Consistent spacing and margins

PHASE 7: EXPORT PRESETS AND CI/CD


Step 7.1 -- Export Presets

Generate export_presets.cfg for target platforms:

  • Windows Desktop (x86_64)
  • macOS
  • Linux (x86_64)
  • HTML5/Web (if web target)
  • Android (if mobile target)
  • iOS (if mobile target)

Step 7.2 -- GDScript Style Configuration

Create .editorconfig and document style conventions:

  • snake_case for variables and functions
  • PascalCase for classes and nodes
  • SCREAMING_SNAKE for constants
  • Tabs for indentation
  • Type hints on all function signatures
  • Static typing enforced where possible

Step 7.3 -- CI/CD Pipeline

Generate GitHub Actions workflow:

- Trigger on push to main and pull requests
- Use abarichello/godot-ci Docker image
- Steps:
  1. Checkout repository
  2. Setup Godot headless
  3. Run GDScript static analysis (gdlint if available)
  4. Run unit tests (GUT or GdUnit4 if configured)
  5. Export for each target platform
  6. Upload artifacts
  7. Optional: deploy web build to itch.io via butler

Step 7.4 -- .gitignore

.godot/
*.translation
*.import
export/
builds/
.DS_Store
Thumbs.db

SELF-HEALING VALIDATION (max 3 iterations)


After completing the main phases, validate your work:

  1. Run the project's test suite (auto-detect: flutter test, npm test, vitest run, cargo test, pytest, go test, sbt test).
  2. Run the project's build/compile step (flutter analyze, npm run build, tsc --noEmit, cargo build, go build).
  3. If either fails, diagnose the failure from error output.
  4. Apply a minimal targeted fix — do NOT refactor unrelated code.
  5. Re-run the failing validation.
  6. Repeat up to 3 iterations total.

IF STILL FAILING after 3 iterations:

  • Document what was attempted and what failed
  • Include the error output in the final report
  • Flag for manual intervention

OUTPUT


Godot 4 Project Scaffolded

Project: {name}

Mode: {2D/3D}

Language: {GDScript/C#}

Target: {platform(s)}

Structure Created

CategoryFilesDescription
Scenes{N} .tscn filesMain, UI, level, and entity scenes
Scripts{N} .gd filesAutoloads, components, and entities
Resources{N} .tres filesTheme, configs, and data assets
Autoloads5 singletonsGameManager, SignalBus, SceneManager, AudioManager, SaveManager
Components{N} scriptsReusable state machine, health, hitbox/hurtbox
Config{N} filesproject.godot, export_presets, .editorconfig
Git Config1 file.gitignore
CI/CD1 workflowGitHub Actions export pipeline

Core Systems Included

  • Signal bus for decoupled event communication
  • Scene manager with async loading and transitions
  • Audio manager with crossfade and volume buses
  • Save system with versioned JSON persistence
  • State machine component for character/AI states
  • Health system with damage, healing, and invincibility frames
  • Hitbox/hurtbox collision system

Setup Instructions

  1. Open with Godot 4.3+
  2. Let the editor import all resources
  3. Set scenes/main/main.tscn as the main scene
  4. Press F5 to run

NEXT STEPS:

  • "Run /game-code-review to audit the scaffolded architecture."
  • "Run /level-design to analyze procedural generation systems."
  • "Run /game-qa to validate scene loading and resource integrity."

DO NOT:

  • Do NOT create placeholder art — leave asset folders empty.
  • Do NOT use Godot 3.x syntax or APIs (use Godot 4.x patterns).
  • Do NOT put logic in autoloads that belongs in scene scripts.
  • Do NOT use string-based node paths for cross-scene references — use signals or groups.
  • Do NOT skip type hints on function parameters and return values.
  • Do NOT create circular autoload dependencies.

SELF-EVOLUTION TELEMETRY


After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

  • Look for the project path in ~/.claude/projects/
  • If found, append to skill-telemetry.md in that memory directory

Entry format:

### /godot-scaffold — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..133 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.642 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.546 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.353 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.252 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.179 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about godot-scaffold

What does the godot-scaffold skill do?

Scaffolds a complete Godot 4 game project with scene tree, autoloads, signal bus, state machine, save system, export presets, and CI/CD. Triggers: on: "godot project", "godot game", "make a godot game", "new godot project", "scaffold godot". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the godot-scaffold skill?

Run `npx @skills-hub-ai/cli install godot-scaffold` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/godot-scaffold/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does godot-scaffold work with?

godot-scaffold runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the godot-scaffold skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use godot-scaffold after installing it?

In Claude Code, type `/godot-scaffold` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the godot-scaffold skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.