This is a prompt I use often to improve readability of a module. With something like Claude custom slash commands you can map these to an alias for easy use.
Prompt:
Analyze this code in the context of the following rules and apply appropriate refactoring.
Summary:
The goal of these rules is to improve readability within a file.
It is highly valuable to start at the top of the abstraction hierarchy