vue3-typescript-auto

A set of coding rules for building Vue 3 interfaces with TypeScript, a language that adds type checking to JavaScript. It focuses on Vue’s Composition API and explicit types for component data and behavior.

In plain words
What is it for?
Use it when creating or reviewing Vue components, props, events, slots, two-way bindings, watchers, and reusable composables. It covers naming, dependency injection, computed values, and reactive state.
Why use it?
It catches unclear or mismatched data contracts earlier and encourages consistent component structure. It also guides choices that can reduce unnecessary updates and resource cleanup problems.

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/usrrname/cursorrules/vue3-typescript-auto
Clone the repo
git clone --depth 1 https://github.com/usrrname/cursorrules

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,292 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.02292
Opus 5 $0.00000 $0.01146
Sonnet 5 $0.00000 $0.00458
Haiku 4.5 $0.00000 $0.00229

Measured 2d ago against content hash 51323823a20e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vue3-typescript-auto 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 2d 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.

.cursor/rules/standards/vue3-typescript-auto.mdc · 359 lines

How it starts

The opening of the file, as written. The whole thing — 359 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vue 3 with TypeScript Standards

Modern Vue 3 development with TypeScript, emphasizing type safety, Composition API, and performance.

Critical Rules

  • Use Composition API with <script setup lang="ts"> syntax
  • Type all props, emits, reactive data, and composables explicitly
  • Use defineModel() for 2 way binding v-model and defineSlots() for slot typing
  • Follow PascalCase naming for components
  • Use proper provide/inject typing with injection keys
  • Type watchers explicitly and ensure proper cleanup
  • Optimize performance with computed properties and shallow reactivity
  ✅ Use Composition API with proper typing:
  <script setup lang="ts">
  interface Props {
    title: string
    count?: number
  }
  interface Emits {
    (e: 'update', value: number): void
  }
  interface Slots {
    default(props: { item: string }): any
    header(): any
  }
  
  const props = defineProps<Props>()
  const emit = defineEmits<Emits>()
  const slots = defineSlots<Slots>()
  const model = defineModel<string>()
  const count = ref<number>(0)
  const doubleCount = computed<number>(() => count.value * 2)
  </script>
  
  ❌ Avoid Options API and untyped refs:
  const props = defineProps(['title'])
  const count = ref(0)

examples:

  • input: | const props = defineProps(['title']) const model = defineModel() const count = ref(0) output: | interface Props { title: string } const props = defineProps() const model = defineModel() const count = ref(0) metadata: priority: high version: 1.0

Read the full file on GitHub · 359 lines

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. 2d ago First seen · 359 lines · 2,292 tokens per session scan A 51323823a20e

Subscribe to this mod's changes

vue3-typescript-auto is a cursor rule published in the GitHub repository usrrname/cursorrules (10 stars, last pushed 4mo ago), licensed ISC. It costs nothing until one of its globs matches a file; then it loads 2,292 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.