Official React Router Agent Skill for AI Coding Assistants #14750
OverviewAI coding assistants (Claude, Cursor, GitHub Copilot, Gemini Code Assist, etc.) are becoming standard tools in developers' workflows. These agents work best when they have access to framework-specific knowledge through "skills" - structured guidelines that help them generate correct, idiomatic code. I'm proposing that the React Router team create and maintain an official agent skill for React Router. What are Agent Skills?Agent skills are curated instructions that guide AI coding assistants to follow framework best practices. They include:
Skills are distributed through platforms like https://skills.sh and installed into AI tools with a single command. Why This Matters
What an Official Skill Could Cover
RequestWould the React Router team consider creating and maintaining an official agent skill? This would help ensure that AI-generated React Router code follows the patterns you recommend. |
Replies: 7 comments 3 replies
|
Thanks @jeniabrook for opening up the discussion! I actually spent a good bit of last week divining into Skills and different ways folks are using them. We definitely want to provide some for React Router sooner than later. Right now I anticipate us opening up a repo and creating a few to share with the community. This will allow us to start getting feedback, ideas, and contributions. We will likely start with framework mode, mostly because I think it would be the one that will benefit from it the most (lot more conventions). I also identified similar areas for the skill to cover. |
|
Would love official skills like Vercel's React/next |
|
Check it out! https://github.com/remix-run/agent-skills Please take them for a spin and offer up any improvements or additions you can think of. This skill for sure doesn't cover everything, but from my experimenting it's a pretty good start npx skills add remix-run/agent-skills --skill react-router-framework-mode |
|
Also, I just wanted to highlight @sergiodxa's skills. They're slightly more opinionated and leverage |
|
What about other options? Data mode и declarative mode? |
|
@brookslybrand wow, this is amazing! Thank you for the effort! |
|
The official React Router skills are a great foundation — the framework-level skill covers routing conventions, loader/action patterns, and RR7 migrations. One pattern worth considering on top: a project-level CLAUDE.md that sits alongside the React Router skill and covers team-specific conventions that the framework skill cannot know:
The skill gives the AI correct React Router syntax. The project CLAUDE.md gives it your teams opinions on top of that. Both layers together produce much more consistent output than either alone. For anyone who wants a starting point for the project-level TypeScript/React layer: https://gist.github.com/oliviacraft/6a202e11096d59c84767a7fda09b685e — free sample, same format as the agent skills. |
Check it out!
https://github.com/remix-run/agent-skills
Please take them for a spin and offer up any improvements or additions you can think of. This skill for sure doesn't cover everything, but from my experimenting it's a pretty good start