How to train cursor to use certain npm library's i use?

Im building a remix application.

I would like to train cursor on the remix docs.
On conform ( form library )
Shadcn ( component library )

Is it possible to somehow train cursor so every new prompt i start will “feed” this documentation in the cursor ai session, so i get less errors? since only when i pasted some example code from shadcn it understand how to implement it correctly.

Same goes for remix it would really help if would learn how remix works with action and loaders to decrease a lot of debugging issues.

You can add this to User Rules or Project Rules, see docu Cursor – Rules for AI

It does not need training, it already knows how to use those but you have to let it know what you need.

Also “Cursor” is in general not an AI, its the editor program that uses various AI models like Claude or GPT or others.

Use Docs for documentation of the libraries you need

I don’t think Cursor has a built-in way to “train” on specific docs permanently, but you can try a few workarounds. One option is to keep a markdown file with key examples and docs, then paste it into your session when you start.

Locate the websites/githubs that contain the docs…

“Ctrl + P” “>” “newdocs”

You also find this under Settings > Features > Docs