godot-refactor

Refactor Godot projects into reusable components with scene-first, signal-driven architecture.

3|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Asreonn/godot-superpowers --skill godot-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-refactor
Source: https://github.com/Asreonn/godot-superpowers/tree/main/orchestrators/godot-refactor
Command: npx skills add https://github.com/Asreonn/godot-superpowers --skill godot-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill analyzes a Godot project to detect anti-patterns such as code-created objects, tight coupling via get_node/has_method, and inline data, then refactors them into modular components using a scene-first, signal-based architecture while preserving exact behavior.

Core Features & Use Cases

  • Automatic anti-pattern detection and prioritization.
  • Phase-based refactoring: Analysis, Refactoring, Commits, Verification.
  • Four operations: Scenes, Scripts, Signals, Data (plus Conflict resolution).
  • Git-backed safe changes with per-operation commits and auto-rollback.
  • Generates a growing component library (base components + presets) under components/.

Quick Start

Use on a Godot 4.x project in Claude Code to automatically analyze and refactor with a single approval.

Frequently Asked Questions about godot-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor Godot scripts to remove tight coupling and code-created objects?

Refactoring Godot scripts involves detecting code-created objects and tight coupling, then converting them into modular components using a scene-first, signal-driven architecture. This process preserves exact behavior while building a reusable component library.

What is scene-first architecture in Godot and when do I need it?

Scene-first architecture in Godot prioritizes base scenes and reusable components over code-created objects. You need it when your project suffers from tight coupling via get_node or has inline data that should be extracted into resource presets and modular components.

How do I extract inline data into resource presets in Godot?

Extracting inline data into resource presets is part of the Data operation in automated Godot refactoring. The process identifies inline data structures and converts them into reusable resource presets stored under a growing component library directory.

Does automated Godot refactoring preserve existing project behavior without breaking changes?

Yes, automated Godot refactoring preserves exact behavior by using a four-phase process with automatic validation and optional rollback. Per-operation commits ensure git-backed safe changes, allowing auto-rollback if any behavior changes are detected during verification.

Can I use this refactoring process with a Godot 4.x project?

Yes, this refactoring process is designed for Godot 4.x projects. You can run it directly in Claude Code to automatically analyze and refactor anti-patterns like tight coupling and code-created objects with a single approval.

How do I decouple Godot scripts using signals instead of get_node calls?

Decoupling Godot scripts with signals is handled through the Signals operation, which replaces tight coupling via get_node or has_method with signal-driven communication. This creates modular components that interact through signals rather than direct node references.