DESLOP YOUR CODE
If you use Claude Code, you’ll want to use my /deslop command (GitHub link below).
Just download the file and put it in your ~/.claude/commands
Then, you can run /deslop or /deslop some_folder/some_subfolder or even /deslop my frontend typescript code.
It has built-in a set of coding principles, patterns, and best practices that it will use to analyze your code and offer suggested improvements. It can then implement those changes for you.
Read over the file yourself if you want to become a better coder, or just run it and don’t worry about it.
I use it regularly, a few times a day, on various pieces of my code.
Instead of worry about AI generating slop, deslop your code periodically!
Check out the file below and copy it in your Claude commands directory (X deboosts posts with links so I put it in a reply).
I also have a command to add a principle to your local deslop file. /addtodeslop (also linked below) will do a web search for good coding principles that are missing, and add them in. You can also give it a specific principle to add, such as “/addtodeslop loose coupling”.
Anyway, use my deslopping commands in Claude Code, and enjoy high quality, clean, well-engineered code!
GitHub link below👇