Modern tools like Vite + React make starting a frontend project incredibly fast. What’s harder is maintaining a consistent, scalable structure as the codebase grows — especially when AI coding assistants become part of the workflow.
Inspired by Vercel’s React Best Practices, I built an AI-ready skill that encodes a production-oriented set of conventions for Vite + React projects, designed to be shared, installed, and applied consistently.
👉 https://github.com/claudiocebpaz/vite-react-best-practices
Why an AI Skill?
Best practices break down when they live only in documentation or tribal knowledge.
This project treats best practices as a skill:
• Explicit, machine-readable conventions
• Predictable project structure
• Easy to apply during code generation and refactors
• Consistent for humans and AI agents
As AI tools take a more active role in writing and modifying code, having a shared baseline becomes essential.
What problem does this solve?
Many Vite + React projects run into the same issues:
• Inconsistent structure across teams
• Implicit rules that are hard to enforce
• Early decisions that don’t scale
• AI-generated code that doesn’t match project conventions
This skill provides a single source of truth for how a project should be structured and extended.
What’s included
The repository defines a high-leverage baseline, including:
• 📁 A Vercel-inspired folder structure
• 🧩 Clear separation of concerns (UI, hooks, domain logic)
• 🧠 High-impact conventions applied early
• ⚙️ Patterns designed for long-term scalability
• ✨ Minimal rules with real payoff
The focus is on preventing structural problems before they appear.
Installing the skill
The skill can be installed directly into your AI coding environment using the skills CLI:
npx skills add claudiocebpaz/vite-react-best-practices
This installs the skill for all supported AI agents detected on your system, such as:
• Gemini CLI
• Claude Code
• OpenCode
• Other compatible AI coding assistants
Once installed, AI agents can follow the same conventions when generating or refactoring code in Vite + React projects.
How to use it
You can adopt the skill in multiple ways:
1. As a baseline for new projects
2. As a reference during code reviews
3. As a constraint for AI-assisted coding workflows
The goal is not automation — it’s alignment.
Feedback & contributions
Best practices evolve with ecosystems and tooling.
Feedback, ideas, and contributions are welcome.
⭐ If this skill is useful, a star helps others discover it.
Thanks for reading 🚀
Top comments (1)
This seems like it will be useful. Thanks!