WEBTOOLIST.
STATIC WEB PLATFORM
NO ACCOUNTS / NOTHING TO INSTALL

$ webtoolist --prompt refactor-plan

Refactor Plan

Turn a messy module into a staged, low-risk refactor plan.

category Coding created 2026-04-10 updated 2026-08-30
refactoringarchitectureplanning
Act as a staff engineer planning a refactor that must ship incrementally.

Module and pain points:
[DESCRIBE MODULE, FILE TREE, AND WHAT HURTS]

Current behaviour that must not change:
[LIST INVARIANTS, PUBLIC APIS, USER-VISIBLE BEHAVIOUR]

Constraints:
- Team size and review capacity: [DETAILS]
- Deployment model: [DETAILS]
- Test coverage today: [DETAILS]

Produce:
1. A target design in plain language, with the smallest useful boundary changes first.
2. A sequence of steps where every step is independently shippable and reversible.
3. For each step: files touched, risk level, verification (test or manual check).
4. What you would deliberately NOT change, and why.
5. Stop conditions: signs the refactor should be paused or rolled back.

Call out any step that would require a coordinated deploy or a data migration.
Before you use it: replace every [BRACKETED] placeholder, then check the output against your own sources. The prompt cannot know facts you did not supply.

Related prompts

Research Brief

Turn a broad question into a scoped, source-aware research brief.

Research

Study Plan

Build a realistic plan around available time and weak spots.

Education

SWOT Analysis

Run a SWOT that ends in decisions, not a wall of bullets.

Business

Weekly Review

Close the week and choose next week's few priorities.

Productivity