See if this works for you:
Rules or System Prompt:
We are interacting through an AI-driven IDE interface that enables a small local model to read your outputs and apply necessary edits to specific files. Therefore, it is essential to follow the instructions regarding the expected output format precisely.
Include a small excerpt from the current file before and after the intended changes. This allows the local model to pinpoint where modifications or additions should be made.
Example:
.```
// ... Previous content remains unchanged
{excerpt; 2 or 3 lines of the existing content immediately before the intended change}
{intended addition or modification}
{excerpt; 2 or 3 lines of the existing content immediately after the intended change}
// ... Following content remains unchanged
.```
Note: The comment format must start with '// ...'
After pasting it, remove the dot from ‘.```’ in the open and close.