Building projects / Task idea
Refactor one module and check each step
How can I improve a small piece of code?
Improve a selected part of a codebase in small increments while preserving behavior and running relevant tests.
Documented capability · Not tested by the Shed · Source checked
What you get
A code diff and test results ready for a developer to review.
Keep in mind
Test results depend on the project's coverage. Review the diff and behavior before merging or deploying.
Try this prompt
Original starter prompt by Use Case Shed. Adapt it to your task.
Review [module] for a small behavior-preserving refactor. Explain the proposed change first, then work in small increments and run the relevant tests. Report changed files, results and remaining uncertainties. Do not merge or deploy.
Source and evidence
The explanation and starter prompt are original Shed work. The source below documents the capability; this workflow has not been tested by the Shed.