Vite

From pproenca/dot-skills · View interactive version

Vite is an AI agent skill from the GitHub repository pproenca/dot-skills. Vite performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring Vite configuration and projects to ensure optimal performance patterns. Triggers on tasks involving Vite config, build optimization, dependency pre-bundling, plugin development, bundle analysi

How to use this skill

Skill file

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:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Dependency Pre-bundling | CRITICAL | deps- |

| 2 | Plugin Performance | CRITICAL | plugin- |

| 3 | Bundle Optimization | CRITICAL | bundle- |

| 4 | Import Resolution | HIGH | import- |

| 5 | Build Configuration | HIGH | build- |

| 6 | Development Server | MEDIUM-HIGH | dev- |

| 7 | CSS Optimization | MEDIUM | css- |

| 8 | Advanced Patterns | LOW-MEDIUM | advanced- |

Quick Reference

1. Dependency Pre-bundling (CRITICAL)

2. Plugin Performance (CRITICAL)

3. Bundle Optimization (CRITICAL)

4. Import Resolution (HIGH)

5. Build Configuration (HIGH)

6. Development Server (MEDIUM-HIGH)

7. CSS Optimization (MEDIUM)

8. Advanced Patterns (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| AGENTS.md | Complete compiled guide with all rules |

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.