I created a framework for cursor agents to follow with custom commands (e.g. plan - will create a a ticket for a task with description checklists and implementation steps). I added a comprehensive json file with the rules to follow for this framework in cursor rules, but seems like cursor does not really use my rules unless i add context to follow the framework commands from .context folder. Also I cannot get these commands to autocomplete (this would be a bonus). The main issue I have is that I don’t understand why cursor does not take into account anything I add in Cursor Settings / User Rules. I tried adding an assistants.json file with these commands and details as well but it did not help. Tried a lot of different things and still no success. Would deeply appreciate some help witht this.
I pasted them in json format in the Cursor Settings UI
BUT I also created a rule to always check for the actual commands and it does not do that
ok, so i found a solution to make sure this works and follows the commands:
I created a .cursor.json file that points to a couple of helpful folders and to the source of the commands.
Does anyone have any idea how I can make cursor to suggest auto-complete for the commands? This would be the final implementation step for this framework.
That seems a really bizarre way to implement rules! No idea why you’ve got json in the user rules.
Try the /GenerateCursorRules command on something simple and copy the structure it creates.
Yeah it felt weird to me too, but I actually used cursor to generate those rules in json format (suggested by cursor) . The goal for that JSON was to have a complex set of instructions ready to copy paste into your project/editor, BUT generating a set of rules using this command makes much more sense. I did not know about it, so thanks a lot @mwjt42 ! Any chance you know how to create aliases that cursor recognizes and autocompletes for custom commands?