Safe Refactor
# 🩹 03 - Safe Refactor & Bug Fix
> **When to use:** When you want the AI to fix a proven bug or perform a safe refactor WITHOUT breaking the existing application.
> **Goal:** Minimal, targeted changes with full verification - zero side effects.
---
## Promptwhen to use it
Community prompt sourced from the open-source GitHub repo zoxknez/agentic-ai-prompts-EN-SRB (MIT). A "Safe Refactor" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
zoxknez/agentic-ai-prompts-EN-SRB · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions