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/aliarghyani/vue-cursor-rulesWrote 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/aliarghyani/vue-cursor-rules/composables)<a href="https://agentmods.dev/rules/aliarghyani/vue-cursor-rules/composables"><img src="https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/composables/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/aliarghyani/vue-cursor-rules/composables"><img src="https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/composables.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.00000 | $0.01058 |
| Opus 5.5 | $0.00000 | $0.00423 |
| Sonnet 5.5 | $0.00000 | $0.00212 |
| Haiku 4.5 | $0.00000 | $0.00106 |
Grade A, and why
composables scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const response = await fetch(url) How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Composables
Role: You are a Vue 3 expert specializing in reusable composition functions and reactive logic.
Core Rules:
- Use
useprefix for composable functions - Return readonly reactive state when appropriate
- Expose methods for state manipulation
- Handle cleanup in
onUnmountedif needed - Keep composables focused and single-purpose
- Prefer well-tested utilities from
@vueuse/corefor common patterns (debounce, throttle, event helpers, etc.) before writing custom logic
Chain-of-Thought: Think step-by-step: 1. Plan reactivity needs 2. Define internal state 3. Create methods/computed 4. Design return interface
Workflow Chain: Build a Form Composable
Full Task: Create a reusable form composable with validation.
Step 1: Define form state and validation
// composables/useForm.ts
interface FormState<T> {
values: T
errors: Partial<Record<keyof T, string>>
isValid: boolean
}
Step 2: Implement reactive logic
export function useForm<T extends Record<string, any>>(
initialValues: T,
validate: (values: T) => Partial<Record<keyof T, string>>
) {
const values = ref(initialValues)
const errors = ref<Partial<Record<keyof T, string>>>({})
const isValid = computed(() => Object.keys(errors.value).length === 0)
const validateForm = () => {
errors.value = validate(values.value)
return isValid.value
}
return {
values,
errors: readonly(errors),
isValid,
validateForm,
reset: () => { values.value = { ...initialValues } }
}
}
Step 3: Use in component (see form-handling.mdc for integration):
<script setup lang="ts">
const { values, errors, isValid, validateForm } = useForm(
{ email: '', password: '' },
(vals) => ({
email: !vals.email ? 'Required' : undefined,
password: vals.password.length < 6 ? 'Too short' : undefined
})
)
</script>
Basic Composable Pattern
// composables/useCounter.ts
import { ref, computed } from 'vue'
export function useCounter(initialValue = 0) {
const count = ref(initialValue)
const increment = () => count.value++
const decrement = () => count.value--
const reset = () => count.value = initialValue
const isZero = computed(() => count.value === 0)
const isPositive = computed(() => count.value > 0)
return {
count: readonly(count),
increment,
decrement,
reset,
isZero,
isPositive
}
}
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.
- 1mo ago First seen · 162 lines · 0 tokens per session scan A 46aebacb6cfd
composables is a cursor rule published in the GitHub repository aliarghyani/vue-cursor-rules (11 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,058 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
vue-typescript-patterns
A set of coding rules for Vue 3 projects using TypeScript, a language that adds type checking to JavaScript. It covers component structure, file locations, TypeScript usage, and Pinia, a library for shared application state.
svelte-5-vs-svelte-4-cursorrules-prompt-file
Cursor rules for comparing Svelte 5 and Svelte 4 development.
sveltekit-typescript-guide-cursorrules-prompt-file
Cursor rules for SvelteKit development with TypeScript integration.
svelte-mcp-tools
Instructions for using the Svelte MCP server tools for documentation lookup, code analysis, and validation.
frontend-rules
A frontend development rule that points to existing Vue pages and components as examples. It refers to chat, notebook, and button files in the project.
frontend
You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Ant Design Vue, and UnoCSS, with a deep understanding of best practices and performance optimization techniques in these technologies.