Promptles
Constraints

Specify the Scope

When requesting a rename or refactor, explicitly list every file or area that needs to change. Without a clear scope, Claude may only update the definition and miss imports, or it may search too broadly and make unwanted changes elsewhere.

Where you'll practice this

One Promptles scenario teaches this principle directly.

  • The Global Rename

    Your project has a function `getUserData` defined in `services/user.ts`. It's imported and used in four other files: `pages/dashboard.tsx`, `pages/settings.tsx`, `hooks/useProfile.ts`, and `middleware/auth.ts`. The team wants to rename it to `fetchUserProfile` to better reflect…

Other principles in Constraints