42 prompts matching "refactor"
Act as a senior software engineer doing archaeology on legacy code. I need to do...
You are a senior engineer leading a refactor. I will describe a module that need...
Help me refactor a slow SQL query so it runs faster without changing the busines...
Below is a function that's grown to ~200 lines and does too much. Refactor it. R...
Refactor the following legacy JavaScript code to modern ES2024 standards: [PAST...
I need help refactoring a legacy API handler without breaking behavior. Here is ...
Act as a financial analyst. Help me build a pivot table from [DATA RANGE] (colum...
Act as a senior software engineer reviewing duplicated business logic across mul...
Refactor the React component below by extracting state and side effects into cus...
Help me write a pull request description for [CHANGE I MADE]. Context: [WHAT BUG...
I'm looking at a workaround in our codebase that was added [N months/years ago] ...
You are a senior engineer guiding a safe refactor. Help me decompose a long, tan...
Act as a senior engineer. I will paste a legacy function in [LANGUAGE]. Step 1: ...
You are a test design coach. Here is a function: [PASTE_FUNCTION]. The existing ...
Act as a senior engineer. I'll paste a function that does too much — parses inpu...
You are an Excel formula refactorer. Here is a nested IF formula that works but ...
Act as a code reviewer focused on readability. Below is a function that has grow...
I have a function that's grown too long and hard to test. Help me refactor it st...
I'll paste a function. Identify every responsibility it currently has (parsing, ...
I have a function where the tests pass but production reports it's behaving wron...
I have a nested IF formula that's grown unmaintainable. Rewrite it using SWITCH,...
I have a function that's grown into a god-function. Refactor it without changing...
I want to improve [CODE/MODULE — paste it or describe its shape]. The problems a...
Act as a staff engineer reviewing a refactor-or-ship decision. I need to add a f...