Tag

#refactoring

9 prompts
Add Types Incrementally

Type one file with runtime behavior frozen, and make the type-checker output the proof.

Break a God Function Apart

Split an oversized function into well-named pieces without changing external behavior.

Convert Code Between Languages

An idiomatic port, not a transliteration — with anything that doesn't translate flagged rather than faked.

Fix a Bug Without Breaking Things

Find every affected code path and the same bug elsewhere before landing the minimal fix.

Map the Blast Radius of a Change

Find every caller a signature change would break, and the safe order to migrate them.

Modernize an API Call Incrementally

Migrate off a deprecated dependency one file at a time, stopping the moment tests fail.

Refactor to Match a Pattern

Point at a file you already like and have the agent bring another one in line with it.

Remove Dead Code Defensively

Require proof of zero callers before anything is deleted, and approval before it happens.

Refactor for Readability

Clean up code for clarity and maintainability without changing behavior.