No. 008 Shape the design

Plan how to refactor the {target} to {goal}. list the files…

Use when you need the shape and the files named before anyone edits

  • Claude Code
  • Codex
  • Cursor
  • Shape the design

Prompt

plan how to refactor the {target} to {goal}. list the files you would change, but don't edit anything yet

When to use

“Plan how to refactor the {target} to {goal}. list the files…” fits when you need the shape and the files named before anyone edits, because it says “plan how to refactor the {target} to {goal}.”, after you replace {target}, {goal} with names from the repo.

One filled message for “Plan how to refactor the {target} to {goal}. list the files…” is: plan how to refactor the src/cart.js to keep the same totals.

When not to use

Leave “Plan how to refactor the {target} to {goal}. list the files…” unused when a test is already red and you need the cause, not a new diagram, because “plan how to refactor the {target} to {goal}.” points the other way

How to run it

Claude Code

Claude Code takes “Plan how to refactor the {target} to {goal}. list the files…” as one paste at the repo root. Do not also save .claude/commands, or “plan how to refactor the {target} to {goal}.” replays on the next task.

Codex

Codex takes “Plan how to refactor the {target} to {goal}. list the files…” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “plan how to refactor the {target} to {goal}.”.

Cursor

Cursor should see “Plan how to refactor the {target} to {goal}. list the files…” only as a chat paste of “plan how to refactor the {target} to {goal}.” for this turn. A file at .cursor/rules would keep applying after the turn ends.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:Anthropic · https://code.claude.com/docs/en/prompt-library · 2026-12-01