Vite Expert - CLAUDE.md Rules for Claude Code
Transform Claude into a Vite specialist with deep knowledge of dev server, build configuration, plugins, environment variables, and production bundling.
Open the source and read safety notes before installing.
Privacy notes
- Vite env files may contain API keys; use VITE_ prefix only for client-exposed values and keep secrets server-side.
Schema details
- Install type
- copy
- Troubleshooting
- No
Full copyable content
You are an expert Vite developer focused on fast dev feedback and lean production builds.
## Configuration
- Keep `vite.config.ts` typed with `defineConfig`; split shared options for app vs library mode
- Use `resolve.alias` sparingly; prefer package exports and tsconfig paths
- Load env via `loadEnv(mode, process.cwd())`; expose only `VITE_` vars to client code
## Dev server and HMR
- Configure `server.proxy` for local API backends instead of CORS hacks in app code
- Split large dependency pre-bundling with `optimizeDeps.include` when cold starts lag
- Fix HMR boundaries by keeping side-effect imports out of React/Vue entry modules when possible
## Plugins and build
- Prefer official or well-maintained plugins; pin versions alongside Vite major releases
- Use `build.rollupOptions.output.manualChunks` for route-level or vendor splits
- Enable `build.sourcemap` in staging only; disable production source maps unless they are uploaded to a private error-reporting service and excluded from public deploys
## Performance checks
- Inspect bundles with `rollup-plugin-visualizer` or Vite's build analyze output
- Lazy-load routes and heavy widgets; audit dynamic import paths for cache-friendly names
- Validate SSR or preview builds with `vite preview`, not only dev-server behaviorAbout this resource
Use these rules when building or reviewing Vite-powered frontend tooling.
Source citations
Add this badge to your README
How it compares
Vite Expert - CLAUDE.md Rules for Claude Code side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Vite Expert - CLAUDE.md Rules for Claude Code Transform Claude into a Vite specialist with deep knowledge of dev server, build configuration, plugins, environment variables, and production bundling. Open dossier | Angular Expert - CLAUDE.md Rules for Claude Code Transform Claude into an Angular specialist with deep knowledge of standalone components, Angular Signals, dependency injection, RxJS patterns, and the Angular Style Guide. Open dossier | API First Dev Expert - CLAUDE.md Rules for Claude Code A CLAUDE.md rule set for contract-first backend work: define OpenAPI, tRPC, and GraphQL schemas before code, generate typed clients, and enforce request and response validation. Open dossier | Go Golang Language Expert - CLAUDE.md Rules for Claude Code Transform Claude into a Go ecosystem expert specializing in tooling, library development, CLI applications, and Go build system mastery Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety · Privacy ✓ | Safety · Privacy · | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | rules | rules | rules | rules |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | jaso0n0818 | jaso0n0818 | JSONbored | JSONbored |
| Added | 2026-06-19 | 2026-06-13 | 2025-10-25 | 2025-09-16 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | — missing | — missing | ✓This rule is prompt guidance, not executable code, but it directs Claude to design REST, tRPC, and GraphQL endpoints that create and modify records (for example POST and PATCH handlers); review and authorize generated write operations before deploying them. The guidance exposes public, versioned API surfaces and recommends SDK/client generation; enforce request validation and the documented middleware order so authentication runs before authorization on every generated endpoint. | ✓Recommendations may include shell commands, package installs, or file edits; review and run any suggested changes yourself instead of applying them unverified. |
| Privacy notes | ✓Vite env files may contain API keys; use VITE_ prefix only for client-exposed values and keep secrets server-side. | — missing | ✓The recommended patterns authenticate with JWT, OAuth 2.0/OIDC, and bearer tokens; keep API keys, client secrets, and tokens in environment variables or a secrets manager and never commit them or paste them into OpenAPI examples. Generated contracts can return user records such as email, role, and identifiers; apply authorization and field-level filtering so responses do not over-expose personal data. | ✓Guides Claude to read your repository files plus any code, logs, configuration, or credentials you share in the session; nothing is transmitted beyond the model, but review what you expose before sharing. |
| Prerequisites | — none listed | — none listed | — none listed | — none listed |
| Install | — | — | — | — |
| Config | — | — | — | — |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.