vite

vite is a cursor rule for Cursor from kleosr/kleosrules. It costs 357 tokens per session, scanned A, original, MIT.

Project rules for using Vite, a frontend build tool and development server, when the repository is configured for it. They describe the expected entry points, environment variables, aliases, rendering model, and tests.

In plain words
What is it for?
Use them when editing a Vite project’s frontend, configuration, environment variables, routes, aliases, server rendering setup, or tests.
Why use it?
They prevent code from importing conventions belonging to other frameworks, such as Next.js, and keep changes aligned with the actual Vite setup.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when editing a Vite project’s frontend, configuration, environment variables, routes, aliases, server rendering setup, or tests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kleosr/kleosrules/vite
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kleosr/kleosrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vite

README.md
[![agentmods](https://agentmods.dev/badge/rules/kleosr/kleosrules/vite/github.svg)](https://agentmods.dev/rules/kleosr/kleosrules/vite)
Your own site
<a href="https://agentmods.dev/rules/kleosr/kleosrules/vite"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/vite/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vite

Your own site · 80×15
<a href="https://agentmods.dev/rules/kleosr/kleosrules/vite"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/vite.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 357 This file is loaded in full into every session.
When invoked 357 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00357 $0.00357
Opus 5.5 $0.00143 $0.00143
Sonnet 5.5 $0.00071 $0.00071
Haiku 4.5 $0.00036 $0.00036

Measured 2mo ago against content hash d578cf8e2a66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vite scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shared/rules/vite.mdc · 19 lines

What it actually says

Vite

Per owning package: apply only if its package.json has vite and not next. If both, Next wins for that package. If the owning package has no vite, this file is inert. Confirm before applying; globs are candidates. Do not import next/navigation, next/image, or getServerSideProps.

Read vite.config.*, the owning package.json (type/exports), and neighbors. Entry is index.html + src/main.* for apps; libraries and custom setups follow this config (lib mode, custom entry). Shared React packages get no app-specific assumptions.

Hard

  • Env: import.meta.env (VITE_ prefix unless envPrefix says otherwise). Do not invent Next NEXT_PUBLIC_* here.
  • Client SPA by default; library/custom modes per this config. No RSC, no app/ router conventions, no Server Components.
  • SSR only per this config's plugin/docs (e.g. vike); frameworks may wrap Vite with their own conventions — match them. Do not invent Next loading.tsx.
  • Aliases and base come from this Vite config, not from Next basePath.
  • Tests: Vitest when vitest is a dependency. Repo manager.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -1 lines · +357 tokens per session d578cf8e2a66
  2. 2mo ago Changed · -2 lines 5a1f62720676
  3. 2mo ago Changed 6447a8feeac3
  4. 2mo ago Changed e75fd46b1ef1
  5. 3mo ago First seen · 22 lines · 0 tokens per session scan A 27a804a0d7ce

Subscribe to this mod's changes

vite is a cursor rule published in the GitHub repository kleosr/kleosrules (0 stars, last pushed 2mo ago), licensed MIT. It adds 357 tokens to every session, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

vite compared with cursor rules from other repositories

vite next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vitekleosr/kleosrulesCursor rule02mo agoMITA357Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
ultraworkJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
autopilotJkudjo/oh-my-cursorCursor rule117d agoMITA12Cursor
ask-firstjaansokk/cursor_toolsCursor rule110d agoMITA42Cursor