I find I often build many prompts deep into a single file initially and it can begin to get bloated. Cursor chat is pretty good at organizing functions by logical relationship and breaking big functions into smaller more readable code.
Would be nice to have a tool that could split your file into classes with inheritance or libraries/resources and and a build/run files if it recognized natural splits.