Rule Frontmatter Format

Hey folks, for far too long I have been trying to automating update the *.mdc/RULE.md and I keep facing the same problem: Rule Frontmatter Format.
I still do not understand what format suppose to be, it feels like YAML but it is not YAML since things like globs: […] brackets would cause issue or globs: “…” double quotes also. Unless it is actually YAML and the issue is just a display issue in the IDE

Let alone with the fact that I do not have a union type representing the discrimination union between AlwaysApplySchema ApplyIntelligentlySchema ApplyToSpecificFilesSchema ApplyManuallySchema … having to check the combination of values to figure out the “valid” values …

I don’t get it.

I don’t have the specification format, and the discrimination union is way too complex for LLMs to do the basic modifications.

I would appreciate if Cursor decides to be YAML based and add a type or kind or whatever to the frontmatter that decides the validity of the rest of the values.

I am gonna lose my sanity on this topic!

Generated

Manually change to the proper type

The proper type is broken still

Final version fixed MANUALLY

I seriously do not understand why this can not be full YAML and glob compliance!

Hi @yordis thank you for your feedback.

The format is frontmatter with globs being comma separated values, no brackets or quotes.

I get that, but I do not think avoiding to be YAML compatible isn’t helping at all. I have been trying to make the situation to work for almost 2 years by now …