Prompt library · free with an account
Refactoring prompts
Prompts for tidying code without changing what it does: splitting files, renaming, removing duplication.
Every refactoring prompt
- RefactoringAdd TypeScript to Legacy JavaScriptIncrementally migrate a JavaScript codebase to TypeScript without breaking changes, starting with the most critical files.
- RefactoringOptimize Database QueriesIdentify N+1 queries, add missing indexes, rewrite slow queries, and add performance monitoring to an existing application.
- RefactoringRefactor with Zero RegressionsStructured refactoring prompt that ensures existing behavior is preserved while improving code quality.
- RefactoringTranslate Code Between LanguagesConvert code from one programming language to another while preserving logic, idioms, and error handling.

