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.
npx agentmods add rules/aliarghyani/vue-cursor-rules/composablesgit 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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01058 |
| Opus 5 | $0.00000 | $0.00529 |
| Sonnet 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 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.
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.
- 3d 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 11mo 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
tailwind-v4
Standards for Tailwind CSS v4 usage in Svelte files.
vue-typescript-patterns
Cursor rule "vue-typescript-patterns" from soaring-xiongkulu/easyaiot, covering vue3 + typescript 开发规范, vue 组件规范, vue sfc 组件规范, typescript 规范 and 状态管理.
vue
Cursor rule "vue" from un-pany/v3-admin-vite, covering vue 开发规范, 代码风格, 命名, api and props.
index
你是一位高级前端工程师,精通前端架构,精通 Vue3、Vue Router、Pinia 等前端框架,精通 TS、JS 等前端语言,精通 Git 操作.
svelte-mcp-tools
Instructions for using the Svelte MCP server tools for documentation lookup, code analysis, and validation.
svelte
You are an expert in Svelte 5, SvelteKit, TypeScript, and modern web development.