Skip to content
godot-organize-files logo

Organize Project File Structure

godot-organize-files

Use when Godot project has scattered files with no clear organization. Detects assets, scripts, scenes, and resources in root or inconsistent locations. Automatically creates organized directory structure following Godot best practices, moves files preserving references, and updates all dependenc...

Asreonn/godot-superpowers0installs4stars

SKILL.md

Full skill instructions

Organize Project File Structure

Core Principle

Clear structure = easy navigation. Files should be where you expect them.

What This Skill Does

Finds projects like:

my_game/
├── project.godot
├── player.gd
├── enemy.gd
├── sprite1.png
├── sound.wav
├── level1.tscn
├── main_menu.tscn
├── utility.gd
└── ... (50 more files in root)

Transforms to:

my_game/
├── project.godot
├── assets/
│   ├── sprites/
│   │   └── sprite1.png
│   └── audio/
│       └── sound.wav
├── scenes/
│   ├── levels/
│   │   └── level1.tscn
│   └── ui/
│       └── main_menu.tscn
└── scripts/
    ├── player.gd
    ├── enemy.gd
    └── utility.gd

Detection Patterns

Identifies:

  • Files in root directory that should be organized
  • Inconsistent naming (CamelCase, snake_case mixed)
  • Assets mixed with code
  • No logical grouping by type or domain

When to Use

Starting New Project

Establish structure from the beginning.

Inheriting Legacy Project

Project has grown organically without structure.

Preparing for Collaboration

Team needs consistent file locations.

Before Major Refactoring

Clean structure makes refactoring easier.

Process

  1. Scan - Inventory all project files and current structure
  2. Analyze - Determine file types and relationships
  3. Plan - Create target directory structure
  4. Move - Relocate files preserving all references
  5. Update - Fix paths in .tscn, .gd, project.godot
  6. Validate - Ensure all references still work
  7. Commit - Git commit per logical grouping moved

Standard Structure

Recommended Organization

project_root/
├── project.godot
├── assets/
│   ├── sprites/
│   │   ├── characters/
│   │   ├── enemies/
│   │   ├── items/
│   │   └── environment/
│   ├── audio/
│   │   ├── music/
│   │   ├── sfx/
│   │   └── voice/
│   ├── fonts/
│   ├── materials/
│   ├── shaders/
│   └── models/       # For 3D projects
├── scenes/
│   ├── characters/
│   ├── enemies/
│   ├── levels/
│   ├── ui/
│   └── components/
├── scripts/
│   ├── characters/
│   ├── enemies/
│   ├── components/
│   ├── managers/
│   └── utility/
├── resources/
│   ├── items/
│   ├── enemies/
│   └── abilities/
├── addons/           # Third-party plugins
└── docs/             # Documentation (optional)

What Gets Created

  • Organized directory structure
  • Moved files with preserved references
  • Updated .tscn files with new paths
  • Updated script preload() paths
  • Updated project.godot autoloads
  • Git commits documenting organization

Smart Analysis

Detects file types:

  • Assets - .png, .jpg, .wav, .ogg, .ttf, .glb
  • Scenes - .tscn, .scn
  • Scripts - .gd, .cs
  • Resources - .tres, .res
  • Config - .cfg, .json, project.godot

Determines grouping:

  • By type (sprites, scripts, scenes)
  • By domain (characters, enemies, ui)
  • By function (components, managers, utilities)

Integration

Works with:

  • godot-organize-assets - Further organizes asset files
  • godot-organize-scripts - Further organizes script files
  • godot-organize-project (orchestrator) - Runs as part of full organization

Safety

  • All file references preserved during moves
  • Godot's .import files updated automatically
  • Rollback on validation failure
  • Original structure preserved in git history

When NOT to Use

Don't reorganize if:

  • Project already has clear structure
  • Mid-development sprint (bad timing)
  • Custom structure intentionally different
  • External tools rely on current paths

Path Updates

Script Updates

# Before
var scene = preload("res://player.tscn")

# After
var scene = preload("res://scenes/​characters/​player.tscn")

Scene Updates

# Before
[ext_resource path="res://player.gd" type="Script"]

# After
[ext_resource path="res://scripts/​characters/​player.gd" type="Script"]

Autoload Updates

# Before
[autoload]
GameManager="*res://game_manager.gd"

# After
[autoload]
GameManager="*res://scripts/​managers/​game_manager.gd"

Organization Strategies

By Type (Simple Projects)

Group all sprites together, all scripts together.

By Domain (Medium Projects)

Group by game concept (characters, enemies, levels).

By Feature (Large Projects)

Group by feature (combat system, inventory system).

Hybrid

Combine strategies (assets by type, scripts by domain).

Benefits

  • Discoverability - Find files where you expect them
  • Scalability - Structure supports growth
  • Onboarding - New team members navigate easily
  • Consistency - Same structure across projects
  • Tooling - Tools work better with organized projects

Common Patterns

BeforeAfter
player.gd in rootscripts/​characters/​player.gd
sprite.png in rootassets/​sprites/​characters/​sprite.png
level.tscn in rootscenes/​levels/​level.tscn
item_data.tres in rootresources/​items/​item_data.tres

Configuration

Can be customized for:

  • Different naming conventions
  • Alternative structures (src/ instead of scripts/)
  • Project-specific requirements
  • Team preferences

Default follows Godot best practices and community standards.

More skills from Asreonn

godot-sync-camera-positions logo
Asreonn/godot-superpowers

godot-sync-camera-positions

Use when Godot background layers or elements follow the camera at runtime but show incorrect position in editor. Detects camera-following patterns and syncs editor position to match typical runtime state. Makes editor preview accurately show what players will see during gameplay.

4 0
View
godot-refactor logo
Asreonn/godot-superpowers

godot-refactor

Use when Godot project has code-created objects, tight coupling via direct references, monolithic scripts over 150 lines, or needs scene-first architecture with signals and composition. Orchestrates all 5 code quality mini-skills: extract-to-scenes, split-scripts, add-signals, extract-resources, ...

4 0
View
godot-split-scripts logo
Asreonn/godot-superpowers

godot-split-scripts

Use when Godot scripts exceed 150 lines or have multiple responsibilities. Detects scripts doing too many things (player movement + combat + inventory + UI). Automatically splits into focused scripts following Single Responsibility Principle, preserves behavior exactly, and creates git commits pe...

4 0
View
godot-convert-shaders logo
Asreonn/godot-superpowers

godot-convert-shaders

Converts Godot 3.x shader code to Godot 4.x shader syntax. Updates SCREEN_TEXTURE to screen_texture uniform, DEPTH_TEXTURE to depth_texture uniform, texture() function changes, built-in varyings updates, and light function signature changes. Essential for rendering and visual effect migrations.

4 0
View
godot-migrate-tilemap logo
Asreonn/godot-superpowers

godot-migrate-tilemap

Migrates legacy TileMap (Godot 4.0-4.2) to new TileMapLayer system (Godot 4.3+). Handles TileMap node conversion, API migration (set_cell to set_cells_terrain_connect), TileSet resource updates, physics layer mapping, navigation layer conversion, and custom data preservation. Essential for upgrad...

4 0
View
godot-setup-animationtree logo
Asreonn/godot-superpowers

godot-setup-animationtree

Use when setting up AnimationTree nodes for state machine-driven animation, creating AnimationNodeStateMachine graphs, configuring BlendSpace2D/3D for locomotion blending, implementing state transition conditions, or creating animation blend trees for complex animation mixing. Supports player cha...

4 0
View
godot-extract-resources logo
Asreonn/godot-superpowers

godot-extract-resources

Use when Godot code has hardcoded game data in const arrays, dictionaries, or embedded values. Detects inline data like enemy stats, item definitions, level configurations. Automatically extracts to .tres resource files, making data visible in editor, easily modifiable, and supports data-driven d...

4 0
View
godot-modernize-input logo
Asreonn/godot-superpowers

godot-modernize-input

Use when handling input in Godot 4.x projects and need to modernize patterns. Generates Input Map configurations from hardcoded key checks, sets up joypad rumble (Godot 4.x feature), implements gyroscope/accelerometer input on mobile, creates context-sensitive input handling for different game st...

4 0
View
godot-sync-parallax logo
Asreonn/godot-superpowers

godot-sync-parallax

Use when Godot ParallaxBackground/ParallaxLayer nodes show incorrect positions in editor due to parallax multipliers. Calculates correct editor positions based on camera start position and parallax motion scale. Makes parallax layers preview realistically in editor, matching gameplay appearance.

4 0
View
godot-generate-tests logo
Asreonn/godot-superpowers

godot-generate-tests

Use when developing Godot games and need comprehensive test coverage for GDScript classes, signals, scene initialization, and integration flows. Generates GUT framework unit tests, integration tests, mock/stub helpers, and CI/CD test runner configuration.

4 0
View
godot-setup-export logo
Asreonn/godot-superpowers

godot-setup-export

Use when setting up multi-platform exports for Godot projects, configuring export presets, icons, feature tags, build scripts, or CI/CD pipelines

4 0
View
godot-fix-positions logo
Asreonn/godot-superpowers

godot-fix-positions

Use when Godot project has position conflicts between editor (.tscn) and code (.gd), camera-following backgrounds, or runtime positions don't match editor preview. Orchestrates all 3 position sync mini-skills: sync-static-positions, sync-camera-positions, and sync-parallax. Each operation targets...

4 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View