Skip to main content
idapt
AccueilModèles IATarifs
Sign inStart free
All prompts

Prompt library

Plan a refactor you can ship in slices

Every-slice-ships-alone is the discipline that separates refactoring from a rewrite wearing a refactor's clothes. Naming the not-fixing list and the stop-the-line signals contains the two classic failure modes: silent scope creep and sunk-cost continuation.

EngineeringPlanSuggested model: anthropic/claude-sonnet-5

Last reviewed July 17, 2026

The prompt
Plan a refactor of the code below. I need to keep shipping while it happens.

Code or description of the current state: {{code}}
What hurts: {{pain}}

Produce:
1. Diagnosis: the structural problem in one paragraph, separated from its symptoms. Name the pattern if it has a name.
2. Target shape: the end-state design and, in one sentence, why it kills the pain rather than relocating it.
3. Migration as 3-7 slices. Each slice: the change, why the system still works after it ships alone, the tests that prove it, and rough size (S/M/L). No slice may require a code freeze.
4. The strangler seam: where old and new coexist and how callers move over incrementally.
5. Stop-the-line signals: what observation mid-refactor means the plan is wrong.
6. What we are explicitly not fixing this round, so scope cannot creep silently.

If a big-bang rewrite is genuinely cheaper, argue it; do not assume.
Run in idaptOpens a new chat with the prompt prefilled. Nothing sends until you press send.

Fill in the variables

VariableWhat it isExample
{{code}}The code, or an architecture description[paste the module or describe the current architecture]
{{pain}}The concrete pain driving the refactorevery new notification type touches 9 files and breaks 2

Frequently asked

Related prompts

Outline a zero-drama migration planExplain legacy code before touching itWrite an architecture decision record

Ready to get to work?

Free to start. No credit card. Never trained on your data.

Start free
  • Accueil
  • Tarifs
  • Modèles IA
  • Modèles d'image
  • Modèles de voix
  • Modèles vidéo
  • Classements
  • New models
  • Model status
  • Multi-Model Chat
  • Voice Mode
  • Voice HUD
  • Web Search
  • Image Generation
  • Video Generation
  • Audio Generation
  • Transcription
  • Drive
  • Secrets
  • Sharing
  • Workspaces
  • Tasks
  • Memory
  • Agents
  • Subagents
  • Automations
  • Skills
  • Code Execution
  • Computers
  • Computer Use
  • Cloud Computers
  • Local AI
  • AI Gateway
  • API & SDK
  • CLI
  • MCP
  • Tunnels
  • All features →
  • Blog
  • Cas d'usage
  • Comparisons
  • Best of
  • Learn
  • Free tools
  • Prompts
  • Templates
  • Changelog
  • Centre d'aide
  • FAQ
  • Confidentialité
  • Comparer tous les modèles
  • Support
  • Développeurs
  • Quickstarts
  • Référence API
  • Tarifs API
  • CLI
  • MCP
  • Downloads
  • Desktop
  • Badges and embeds
© idapt[email protected]ConditionsPolitique de confidentialitéMentions légalesSignaler un contenu
X (Twitter)