Despite giving the composer agent the exact place where to look for the documentation, it kept answering with deprecated code and instructions, like instead of answering with the new:
Hey, you can include this in your rules so it knows the correct command from the start. You’re using the @web function incorrectly, you just need to paste the link in the chat without @web. Then your link should be like this:
I also have had alot of problems recently with shadcn in cursor.
I added this to my .cursorrules files and it solved the problem
Always use “pnpm dlx shadcn@canary” instead of “npx shadcn-ui@latest”
But in general I think adding docs doesn’t work well at all. I even copy pasted the exact instructions on how to use shadcn + Vite and it didn’t follow them.