Skip to content

Instantly share code, notes, and snippets.

@pj4533
Created June 5, 2025 14:35
Show Gist options
  • Save pj4533/5973b9849043128083f70fa80e03dfcf to your computer and use it in GitHub Desktop.
Save pj4533/5973b9849043128083f70fa80e03dfcf to your computer and use it in GitHub Desktop.
Refactor Big Files Claude Code Slash Command

Look thru the whole code base for any files bigger than 300 lines. Refactor any file over 300 lines to be smaller. Consider separation of concerns and keep things organized and tidy.

DO NOT CHANGE ANY FUNCTIONALITY.

  • For classes, separate into extensions, named and grouped appropriately.
  • For views, split into subviews

Remember: only one object per file, so if some files have multiple objects thats an easy place to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment