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/soaring-xiongkulu/easyaiotWrote 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/soaring-xiongkulu/easyaiot/vue-typescript-patterns)<a href="https://agentmods.dev/rules/soaring-xiongkulu/easyaiot/vue-typescript-patterns"><img src="https://agentmods.dev/badge/rules/soaring-xiongkulu/easyaiot/vue-typescript-patterns/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/soaring-xiongkulu/easyaiot/vue-typescript-patterns"><img src="https://agentmods.dev/badge/rules/soaring-xiongkulu/easyaiot/vue-typescript-patterns.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.00381 | $0.00381 |
| Opus 5 | $0.00191 | $0.00191 |
| Sonnet 5 | $0.00076 | $0.00076 |
| Haiku 4.5 | $0.00038 | $0.00038 |
Grade A, and why
vue-typescript-patterns 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 9d 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.
What it actually says
Vue3 + TypeScript 开发规范
Vue 组件规范
- 使用 Composition API 和
<script setup>语法 - 组件文件使用 PascalCase 命名
- 页面文件放在
src/pages/目录下 - 全局组件文件放在
src/components/目录下 - 局部组件文件放在页面的
/components/目录下
Vue SFC 组件规范
<script setup lang="ts">标签必须是第一个子元素<template>标签必须是第二个子元素<style scoped>标签必须是最后一个子元素(因为推荐使用原子化类名,所以很可能没有)
TypeScript 规范
- 严格使用 TypeScript,避免使用
any类型 - 为 API 响应数据定义接口类型
- 使用
interface定义对象类型,type定义联合类型 - 导入类型时使用
import type语法
状态管理
- 使用 Pinia 进行状态管理
- Store 文件放在
src/store/目录下 - 使用
defineStore定义 store - 支持持久化存储
示例代码结构
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import type { UserInfo } from '@/types/user'
const userInfo = ref<UserInfo | null>(null)
onMounted(() => {
// 初始化逻辑
})
</script>
<template>
<view class="container">
<!-- 模板内容 -->
</view>
</template>
<style lang="scss" scoped>
.container {
// 样式
}
</style>
---
globs: *.vue,*.ts,*.tsx
---
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.
- 9d ago First seen · 54 lines · 381 tokens per session scan A 3011d493ea2f
vue-typescript-patterns is a cursor rule published in the GitHub repository soaring-xiongkulu/easyaiot (709 stars, last pushed 5d ago), licensed MIT. It adds 381 tokens to every session, about $0.0019 per session on Opus 5. 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-30.
Other cursor rules, from other repositories
sveltekit-tailwindcss-typescript-cursorrules-promp
Cursor rules for SvelteKit development with Tailwind CSS and TypeScript integration.
code
A set of coding rules for Vue 3 components written with TypeScript. It covers component structure, typed properties and events, reusable composables, and stylesheet conventions.
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.
structure
A set of frontend project rules for organizing files, naming code, using TypeScript, and structuring Vue components. It specifies locations and conventions for components, styles, API code, utilities, types, imports, and exports.
vue-rules
You are an expert in JavaScript, TypeScript, and the Vue.js framework for scalable web development.
vue3-typescript-auto
Vue 3 with TypeScript Standards.