mcpField
V
vite-react-best-practices

vite-react-best-practices

github.com/claudiocebpazDevelopment16636 installsUpdated 40w ago
Repository

About vite-react-best-practices

vite-react-best-practices is a senior-level guide for building production-ready React single-page applications with Vite. It covers deployment, performance, project structure, and troubleshooting, with expanded rules in AGENTS.md.

Key features

  1. 01SPA rewrite and caching guidance
  2. 02Build validation and environment variable rules
  3. 03React route splitting and state guidance
  4. 04Component performance and image optimization
  5. 05Feature-based organization and troubleshooting

Use cases

  1. 01Set up a Vite and React project
  2. 02Configure SPA deployment and CI/CD
  3. 03Troubleshoot builds or caching
  4. 04Refactor components for performance

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/claudiocebpaz/vite-react-best-practices --skill vite-react-best-practices

After installing, type/vite-react-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
metadata.json
AGENTS.md
marketplace.json
rules/
react-image-optimization.md
react-colocation.md
anti-import-dist.md
react-memoization.md
react-route-splitting.md
react-server-state.md
vite-build-validation.md
vite-caching-strategy.md
vite-env-vars.md
vite-troubleshooting.md
vite-spa-rewrites.md

Details

From the project README

Vite React Best Practices

A senior-level guide for building production-ready React Single Page Applications (SPAs) with Vite.

When to Apply

Reference these guidelines when:

  • Setting up a new Vite + React project
  • Configuring build pipelines and CI/CD for SPAs
  • Troubleshooting production build or caching issues
  • Refactoring React components for performance

Rule Categories

1. Vite SPA Deployment (CRITICAL)
2. React Core Performance
3. Architecture & Cleanup

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Comments

Markdown supported