I am a software architect that works for a company that has 15ish developers. We have a “macroservice” architecture (many repos) and I would love to share the new .mdc rules files between all of the solutions.
What I’m doing today is that I have a centralized repo where I’ve stored some .cursor/rules mdc files and upon merge I’m copying them to all applicable repos.
The issue I’m having is that the rules aren’t being applied when I do it this way. I have to open up the file in Cursor, copy and paste the description/glob into the textboxes and then save.
Is there anything I should be doing to format the centralized files in a way that cursor will pick them up?
Here is an example of one that does not work:
---
description: C# Coding Rules
globs: **/*.cs
---
# C# Coding Rules
Use the following C# features and patterns:
- Primary constructor syntax
- Record syntax
- File scoped namespaces
- Interrogate global usings to see if a namespace is already importedS
When I click on it, the textboxes are blank and it shows the description/glob in the contents. The only way for it to stop doing this for me is to copy/paste into the textboxes, delete the — section and then save.