vue

A set of rules for building Vue 2 and Vue 3 single-file components, which combine a component's markup, code, and styles.

In plain words
What is it for?
Use it when editing Vue components to choose the correct API style, preserve existing props and events, and follow the project's conventions.
Why use it?
It helps keep changes consistent with the Vue version, coding style, reactivity approach, state management, and styling already used in a project.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/inboxpraveen/minimize-cursor-cost/vue
Clone the repo
git clone --depth 1 https://github.com/inboxpraveen/Minimize-Cursor-Cost

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 390 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00390
Opus 5 $0.00000 $0.00195
Sonnet 5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

Measured yesterday against content hash 1a1968504e74, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vue 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 yesterday.

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.

lean-cursor/.cursor/rules/vue.mdc · 42 lines

What it actually says

Vue Rules

Detect the version & API style

  • Vue 3 Composition API (<script setup>), Vue 3 Options API, or Vue 2 Options API.
  • Don't mix APIs in the same component.
  • Don't migrate Options → Composition (or vice versa) unless asked.

Output Format

  • Single change → show only the affected <template>, <script>, or <style> block.
  • Use <!-- ... rest of template unchanged --> to skip.
  • Don't reprint imports unless adding new ones.

Reactivity

  • Match existing pattern: ref / reactive / computed / watch. Don't switch.
  • Don't unwrap .value everywhere if the codebase uses toRefs.
  • Don't add watchEffect if a computed is sufficient.

Props & Emits

  • Don't rename props or emit events.
  • Match existing prop-validation style (object form vs array form, with/without TypeScript).
  • Don't add default values to props that don't have them.

Styling

  • Match existing scoped/unscoped styles. Don't switch.
  • Match preprocessor: SCSS / Less / plain CSS / Tailwind. Don't introduce a new one.

State Management

  • Match existing store: Pinia / Vuex / provide-inject. Don't switch.
  • Don't add a new store module unless the data is tree-wide.

Never

  • Don't add <script setup> to a component already using Options API.
  • Don't add Composition API helpers (computed, watch) into Options-API components.
  • Don't change definePropsprops: {...} styles.
  • Don't add new Vue plugins to main.ts/main.js while doing a component task.
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. yesterday First seen · 42 lines · 0 tokens per session scan A 1a1968504e74

Subscribe to this mod's changes

vue is a cursor rule published in the GitHub repository inboxpraveen/Minimize-Cursor-Cost (6 stars, last pushed 16d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 390 tokens. 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.