Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/teekhub/teek-design-vue3npx agentmods add rules/teekhub/teek-design-vue3/codeWrote 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/teekhub/teek-design-vue3/code)<a href="https://agentmods.dev/rules/teekhub/teek-design-vue3/code"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/code/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/teekhub/teek-design-vue3/code"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/code.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.00902 | $0.00902 |
| Opus 5.5 | $0.00361 | $0.00361 |
| Sonnet 5.5 | $0.00180 | $0.00180 |
| Haiku 4.5 | $0.00090 | $0.00090 |
Grade A, and why
code 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 16d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- code — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
组件格式
<script setup lang="ts">
import xxx from "xx";
defineOptions({ name: "Xxx" });
const ns = useNamespace("xx-xx");
</script>
<template>
<div :class="ns.b()"></div>
</template>
<style scoped lang="scss">
@use "./index";
</style>
@use "@styles/mixins/bem" as *;
@include b(xx-xx) {
}
带有 props、emits 的写法
<script setup lang="ts">
defineOptions({ name: "Demo" });
// 按照这种写法
interface DemoProps {
modelValue: string;
}
// 按照这种写法
interface DemoEmits {
submit: [value: string];
}
const props = defineProps<DemoProps>();
const emit = defineEmits<DemoEmits>();
const ns = useNamespace("login");
</script>
<template>
<div></div>
</template>
<style scoped lang="scss">
@use "./index";
</style>
组件里使用 composables
不推荐 props、emits、响应式变量、computed、watch、function、生命周期 的结构写法。
请使用可复用逻辑(composables)写法,即将关联性高的代码放到 function useXx 里然后暴露出来使用。
<script setup lang="ts">
import http from "xx";
defineOptions({ name: "Demo" });
interface DemoProps {
params: string;
}
interface DemoEmits {
submit: [value: string];
}
const props = defineProps<DemoProps>();
const emit = defineEmits<DemoEmits>();
const ns = useNamespace("login");
const username = ref("");
const password = ref("");
const { data } = useInitData();
// 核心请看这个 composables
function useInitData() {
const data = ref<Recore<string, any>[]>([]);
const request = async () => {
// 请求数据复制给 data
const result = await http.get(url, props.params);
data.value = result.data;
};
return { data };
}
</script>
<template>
<div :class="ns.b()">
<input v-model="username" />
<input v-model="password" />
</div>
</template>
<style scoped lang="scss">
@use "./index";
</style>
类型引入规范
- 先引入所有
type类型(按照导入规范顺序引入,不允许类型和函数的引入混杂在一起) - 引入第三方依赖(
Vue相关生态优先,如vue、vue-router、pinia、vue-i18n、@vueuse,然后是组件库如ElementPlus,@element-plus/icons-vue,最后是第三方插件) - 引入项目目录的其他依赖(如
@/composables,路径按照目录结构顺序引入) - 引入项目目录的其他组件(如
@/components/index.vue,路径按照目录结构顺序引入) - 引入相对路径的依赖(如
./types) - 引入相对路径的组件(如
./Demo.vue) - 直接引入第三方库(如
import "vue-cropper/dist/index.css") - 直接引入绝对路径(如
import "@/common/styles/common/var.scss") - 直接引入相对路径(如
import "./index.scss")
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.
- 16d ago First seen · 150 lines · 902 tokens per session scan A 18b4fc350418
code is a cursor rule published in the GitHub repository teekhub/teek-design-vue3 (288 stars, last pushed 15d ago), licensed MIT. It adds 902 tokens to every session, about $0.0036 per session on Opus 5.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-11-14.
code compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codeteekhub/teek-design-vue3 | Cursor rule | 288 | 15d ago | MIT | A | 902 | Cursor |
| vue-typescript-patternssoaring-xiongkulu/easyaiot | Cursor rule | 767 | 3d ago | MIT | A | 381 | Cursor |
| project-overviewsoaring-xiongkulu/easyaiot | Cursor rule | 767 | 3d ago | MIT | A | 416 | Cursor |
| frontend0xJacky/nginx-ui | Cursor rule | 12k | today | AGPL-3.0 | A | 0 | Cursor |
| sveltekit-tailwindcss-typescript-cursorrules-prompPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,077 | Cursor |
| vue-rulesyu-iskw/llmops-demo-ts | Cursor rule | 6 | 29d ago | Apache-2.0 | A | 2,071 | Cursor |
| 30-tauri-frontend-workflowryoha000/launcherg | Cursor rule | 36 | 1mo ago | Unlicense | A | 0 | Cursor |