Identify the Pattern
When asking Claude to extract shared logic, explicitly describe the repeated pattern you see. Don't just say 'refactor these files' -- tell Claude what the common pattern is so it knows exactly what to extract and what to leave behind.
Where you'll practice this
One Promptles scenario teaches this principle directly.
The Custom Hook
You have three React components -- `UserList.tsx`, `ProductGrid.tsx`, and `OrderHistory.tsx` -- that all implement the same pattern: fetch data from an API on mount, track loading state, handle errors, and render accordingly. Each component has its own duplicated…
Other principles in Multi-Step
Architect Before You Ask
Ask for a Plan First
Request a plan before any multi-file change — approve the approach, then let it code.
Break the Workflow into Steps
Number each step so Claude builds pieces, not monoliths.
Combine Context with Action
Coordinate Across Files
Delegate to a Subagent
Spawn a subagent for research-heavy subtasks; brief it on scope, limits, and report shape.