File-Targeted Prompt

A Bolt prompt that explicitly names the file to be modified. Prevents Bolt from making unexpected changes in unrelated files and makes the scope of the change explicit and auditable.

Syntax

bolt-new
In [filepath], [change description].

Only modify this file.
Do not refactor other files or add new dependencies.

Example

bolt-new
In src/components/TaskCard.tsx, add a priority badge
to the top-right corner of the card.

Color mapping:
- low: bg-green-100 text-green-700
- medium: bg-yellow-100 text-yellow-700
- high: bg-red-100 text-red-700

Use a span with rounded-full px-2 py-0.5 text-xs font-medium.

Only modify TaskCard.tsx. Do not change any other files.