Mr. Phil Games’ Blog

đź§  Refactoring with AI: Lessons in Trust, Testing, and Prompts

Today I focused on reviewing and improving the modularity of my Godot codebase using Claude. I experimented with deeper AI-assisted refactors, but noticed that some of the changes subtly altered functionality — a reminder that even “smart” tools need clear boundaries.

On the feature side, I added a proper loading screen for galaxy generation and restored key parity features:

  • Build buttons are now back in the planet and star detail panels

  • Ships no longer appear instantly when queued for construction

It’s steady progress toward visual polish and parity — but it’s also clear that Claude needs tighter prompt rules when it comes to refactoring logic. I’ll be updating my CLAUDE.md guidelines accordingly.