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.
git clone --depth 1 https://github.com/kleosr/kleosrulesWrote 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.
[](https://agentmods.dev/rules/kleosr/kleosrules/vite)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 unlessenvPrefixsays otherwise). Do not invent NextNEXT_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
basecome from this Vite config, not from NextbasePath. - Tests: Vitest when
vitestis a dependency. Repo manager.
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.
- 2mo ago Changed · -1 lines · +357 tokens per session d578cf8e2a66
- 2mo ago Changed · -2 lines 5a1f62720676
- 2mo ago Changed 6447a8feeac3
- 2mo ago Changed e75fd46b1ef1
- 3mo ago First seen · 22 lines · 0 tokens per session scan A 27a804a0d7ce
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.
vite compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vitekleosr/kleosrules | Cursor rule | 0 | 2mo ago | MIT | A | 357 | Cursor |
| teamJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 13 | Cursor |
| git-masterJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 14 | Cursor |
| pipelineJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 16 | Cursor |
| ultraworkJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 13 | Cursor |
| autopilotJkudjo/oh-my-cursor | Cursor rule | 1 | 17d ago | MIT | A | 12 | Cursor |
| ask-firstjaansokk/cursor_tools | Cursor rule | 1 | 10d ago | MIT | A | 42 | Cursor |