React Best Practices in Cursor
Source: Dev.to

Goal
Use React Best Practices quickly out of the box in Cursor. While many blogs cover this for Claude Code, this guide focuses on getting it to work in Cursor.
What is React Best Practices?
10+ years of React and Next.js optimization knowledge collected by Vercel.
Introducing React Best Practices – Vercel Blog
Setting these practices as skills or rules in AI agents allows the agents to reference the documents during processing.
Procedure
-
Install the
agent-skillspackage in your project:npx add-skill vercel-labs/agent-skills -
Select Cursor and follow the on‑screen instructions.

-
The command creates the files automatically under:
.cursor/skills/react-best-practices/ -
Cursor does not detect these files automatically because the markdown format differs from what Cursor expects.
-
Open Cursor → Settings… → Cursor Settings → Rules, Skills, Subagents. You’ll see “No Skills are set”.
-
Convert the files using the
/migrate-to-skillscommand. Example prompt (screenshot):
-
The conversion command is officially provided by Cursor. See the documentation for details:
-
In the Agent chat, type:
/migrate-to-skills
Takeaway
Run /migrate-to-skills so that Cursor can read and apply the React Best Practices skill set.