Readonly files with reasoning

Feature request for product/service

Cursor IDE

Describe the request

I have a lot of generated files in my project which the agent continuously wants to edit directly, even if I give it instructions about them. It would be very helpfull, if I could set these up directly in cursor via rules, so if the agent tried to edit a file matching a certain glob it would get a matching response aka “do not edit this file directly, you need to modify code generation here: …”