I wan to implement a project level rule that states
- When the user asks to edit a dependency injection related yaml file, use the instructions found in @prompts/dic.yaml to make sure the file includes a tag
When I add this rules directly to settings is ignored, if I add it to project root folder .cursorrules
it’s also ignored.
The only way it follows the rule is saying ending my chat request with " following @.cursorrules"
This proves, it actually understand the rule very well, but somehow it is not included if not mentioned explicitly
I have my doubts where this is only failing due to the fact that the rule includes a file with instructions.
I’m adding the .cursorrules file at the project’s root, I understand that’s the right location.
cursor version
Version: 0.46.11 (Universal)
VSCode Version: 1.96.2
how to reproduce
create some instructions in a markdown file.
create a rule that asks to follow those instructions when editing certain type of file.
Add the rule to project settings and try if it will follow it
Add the rule to .cursorrules and try it again.
It should fail to follow
Then from the chat update your request adding at the end " following @.cursorrules"
now it does follow according to the rule