Refactors, tests and docs
Point the agent at the module everyone avoids and get cleaner code, missing tests and a README that finally matches.
- CoreCat Code
The situation
The module everyone avoids has no tests and an out-of-date README. Cleaning it up is worth doing, but it never beats the feature work that is due this week.
How it works in CoreCat
- CoreCat Code
- Open CoreCat Code in the repo and ask it to read the module and explain what it does before touching it.
- Ask for a small, behaviour-preserving refactor in one commit-sized step.
- Ask it to write tests for the current behaviour, then run them and fix what fails.
- Ask it to update the README and inline comments to match, and read the whole diff yourself.
What you get
- A module with tests where there were none
- Docs that match the code
- Small diffs that are easy to review
Example prompt
Read the billing module, explain how invoices are calculated, then add unit tests for the proration cases. Do not change behaviour yet.
Questions
Before you start
Plain answers, no promises about results.
Can I trust the tests it writes?
They describe what the code does today, which may include bugs. Read them and check they test what you actually intend.
Can it work on a large repo?
It works best when you point it at a specific module or task. Keep requests focused and review each step.
Try it now
Make it in CoreCat.
Paste the example prompt into the app and change it to fit your own work.