A comprehensive performance optimization guide for Vite with 42 rules across 8 priority-ranked categories, from dependency pre-bundling to advanced SSR patterns. Use this when configuring new Vite projects, debugging slow dev server startup, or optimizing production bundles. Each rule lives in its own reference file with detailed examples, and the priorities are clear: critical issues like deps configuration and plugin performance come first, then bundle optimization and imports, down to medium-priority concerns like CSS tooling. The categorization is genuinely useful because it tells you what to fix first when your Vite build feels slow, rather than throwing a wall of best practices at you.

skills.sh installs
367
GitHub stars
222
last updated
Aug 21, 2026

Install

$ npx -y skills add pproenca/dot-skills --skill vite --agent claude-code

Installs into .claude/skills of the current project.

Files

Vite Best Practices

Comprehensive performance optimization guide for Vite applications. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Configuring Vite for a new project
  • Troubleshooting slow dev server startup
  • Optimizing production bundle size
  • Debugging HMR issues
  • Writing or evaluating Vite plugins
  • Migrating from Webpack or other bundlers

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Dependency Pre-bundlingCRITICALdeps-
2Plugin PerformanceCRITICALplugin-
3Bundle OptimizationCRITICALbundle-
4Import ResolutionHIGHimport-
5Build ConfigurationHIGHbuild-
6Development ServerMEDIUM-HIGHdev-
7CSS OptimizationMEDIUMcss-
8Advanced PatternsLOW-MEDIUMadvanced-

Quick Reference

1. Dependency Pre-bundling (CRITICAL)

Sponsors

Details

Repository
github.com/pproenca/dot-skills
Categories
DevOps & CI/CD, Documentation, Code Review & Quality, Debugging
First seen
Jun 3, 2026

More from pproenca/dot-skills

All 100
1cloudwego avatareino-agentcloudwego/eino-extEino ADK agent construction, middleware, and runner. Use when a user needs to build an AI Agent, configure ChatModelAgent with ReAct pattern, use middleware (fi366skills.sh installs
2onewave-ai avatarconversation-archaeologistonewave-ai/claude-skillsMine ALL past Claude conversations to build a living 'User Manual About You'. Extract writing style, business context, goals, preferences, and patterns. Make al366skills.sh installs
3cinience avataralicloud-ai-image-qwen-imagecinience/alicloud-skillsGenerate images with Model Studio DashScope SDK using Qwen Image generation models (qwen-image, qwen-image-plus, qwen-image-max, qwen-image-2.0 series and snaps365skills.sh installs
4mims-harvard avatartooluniverse-phylogeneticsmims-harvard/tooluniversePhylogenetic analysis — de novo multiple sequence alignment (Clustal Omega/MUSCLE/MAFFT via EBI_msa_align) and neighbour-joining/UPGMA tree building (EBI_build_365skills.sh installs
5oldwinter avatarpersonal-productivityoldwinter/skillsBuild a Personal Productivity System Pack (weekly timebox plan, capture+to-do system, daily/weekly review rituals, and a 7-day rollout). Use for timeboxing, cal365skills.sh installs
6jezweb avatarfirebase-authjezweb/claude-skillsBuild with Firebase Authentication - email/password, OAuth providers, phone auth, and custom tokens. Use when: setting up auth flows, implementing sign-in/sign-363skills.sh installs