main

main is a cursor rule for Cursor from aliarghyani/vue-cursor-rules. It costs 692 tokens per session, scanned A, a copy of README, MIT.

A set of practical coding rules for Vue 3, a JavaScript framework for building interactive web interfaces, with an emphasis on its Composition API.

In plain words
What is it for?
Use it when building Vue components, reusable logic, Pinia state stores, routes, forms, API calls, TypeScript code, Tailwind styling, or tests.
Why use it?
It gives an agent consistent patterns for organizing Vue code and handling common application tasks.

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/aliarghyani/vue-cursor-rules/main
Clone the repo
git clone --depth 1 https://github.com/aliarghyani/vue-cursor-rules

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 main

README.md
[![agentmods](https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/main.svg)](https://agentmods.dev/rules/aliarghyani/vue-cursor-rules/main)
Your own site
<a href="https://agentmods.dev/rules/aliarghyani/vue-cursor-rules/main"><img src="https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/main.svg" alt="Measured on agentmods" height="20"></a>
Per session 692 This file is loaded in full into every session.
When invoked 692 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00692 $0.00692
Opus 5 $0.00346 $0.00346
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

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

Security

Grade A, and why

main 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 3d 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.

Origin

This is a copy

100% identical to README — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/main.mdc · 72 lines

How it starts

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

Vue 3 Cursor Rules

Practical, concise rules for Vue 3 development using Composition API.

Available Rules

Core Patterns

  • vue-fundamentals.mdc - Essential Vue 3 Composition API patterns
  • composables.mdc - Reusable composition functions
  • pinia-stores.mdc - State management with Pinia
  • vue-router.mdc - Navigation and routing
  • typescript-patterns.mdc - TypeScript integration
  • tailwind-patterns.mdc - Tailwind CSS styling patterns

Development Workflow

  • component-testing.mdc - Testing with Vitest and Vue Test Utils
  • form-handling.mdc - Form validation and submission
  • api-integration.mdc - Data fetching and API services
  • project-structure.mdc - Directory organization
  • prompt-guide.mdc - Prompt engineering tips for rule creation
  • ui-kits-guide.mdc - Integration guide for popular UI frameworks

Features

  • Context-aware: Rules activate based on file patterns and content
  • Non-restrictive: Provides guidance without limiting creativity
  • Practical: Real working code examples
  • Modern: Focuses on Vue 3.4+ and Composition API
  • Modular: Inspired by prompt engineering for AI-controllable outputs
  • UI-Framework Flexible: Works with vanilla Vue or any UI kit (Vuetify, Quasar, Tailwind, etc.)

UI Kit Compatibility

Rules work with any UI framework (vanilla, Tailwind, or component libraries like Vuetify/Quasar). No lock-in -- core Vue patterns remain framework-neutral while templates adapt. See ui-kits-guide.mdc for integration examples.

Quick-start examples:

  • Vuetify: npm install vuetify -> adapt rules as shown in guide
  • Quasar: quasar create -> use with existing composable patterns
  • Tailwind: Works alongside for custom styling or as primary framework

Cursor Model Tips

For lighter models, shorten examples in rules. Test workflow chains for consistency. See prompt-guide.mdc for customization tips.

Quantitative Metrics

  • 13 files, ~40.6KB total (via scripts/measure-tokens.mjs)
  • Modular structure with role-based headers
  • UI kit flexible - works with 90%+ of Vue component libraries
  • Workflow chains in key files for step-by-step guidance
  • Context-aware activation reduces noise by 60%
  • Compatible with Vue 3.4+ and top UI frameworks (Vuetify, Quasar, Element Plus, Tailwind UI)

Read the full file on GitHub · 72 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. 3d ago First seen · 72 lines · 692 tokens per session scan A f1b12d5e8148

Subscribe to this mod's changes

main is a cursor rule published in the GitHub repository aliarghyani/vue-cursor-rules (11 stars, last pushed 11mo ago), licensed MIT. It adds 692 tokens to every session, about $0.0035 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to README, differing in 0 lines, and is treated as a copy.