Borrowing it
Nothing to install: this file belongs to teekhub/teek-design-vue3. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/teekhub/teek-design-vue3/main/.cursorrulesgit clone --depth 1 https://github.com/teekhub/teek-design-vue3Wrote 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/cursorrules)<a href="https://agentmods.dev/rules/teekhub/teek-design-vue3/cursorrules"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/cursorrules/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/cursorrules"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/cursorrules.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.00977 | $0.00977 |
| Opus 5.5 | $0.00391 | $0.00391 |
| Sonnet 5.5 | $0.00195 | $0.00195 |
| Haiku 4.5 | $0.00098 | $0.00098 |
Grade A, and why
cursorrules 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:
- cursorrules — 100% identical, 0 lines differ
What it actually says
代码编写规范
组件格式
- 使用
<script setup lang="ts">语法 - 使用
defineOptions({ name: "Xxx" })定义组件名 - 使用
const ns = useNamespace("xx-xx")创建命名空间 - 样式文件使用
@use "./index"引入 - 使用
import { useNamespace } from "@/composables"创建命名空间
类型定义规范
- Props 和 Emits 使用 TypeScript interface 定义
- 所有函数参数都要加类型注解
- 类型文件放在组件同级目录的
types.ts中
导入规范
- 先引入所有 type 类型(按照导入规范顺序引入,不允许类型和函数的引入混杂在一起)
- 引入第三方依赖(Vue 相关生态优先,如 vue、vue-router、vuex、vue-i18n、vue-use,然后是组件库如 Element Plus,@element-plus/icons-vue,最后是第三方插件)
- 引入项目目录的其他依赖(@/路径,路径按照 src 目录结构顺序引入)
- 引入项目目录的其他组件(@/路径,路径按照 src 目录结构顺序引入)
- 引入相对路径的依赖(@/路径,路径按照 src 目录结构顺序引入)
- 引入相对路径的组件(@/路径,路径按照 src 目录结构顺序引入)
- 直接引入第三方库(如 import "vue-cropper/dist/index.css")
- 直接引入绝对路径(如 import "@/common/styles/common/var.scss")
- 直接引入相对路径(如 import "./index.scss")
组件内 Composables 使用
- 不推荐直接在组件中写响应式变量、computed、watch、function、生命周期
- 将关联性高的代码放到
function useXx里然后暴露出来使用 - 使用
defineModel代替props.modelValue
文件组织
- 通用组件放在
src/components/目录下,按功能分子文件夹 - 通用可复用逻辑放在
src/composables/ - 通用样式放在
src/common/styles/ - 通用 API 请求相关文件放在
src/common/api/ - 通用工具函数放在
src/common/utils/
命名规范
- 所有文件使用
kebab-case风格 - 引入组件的命名为
Camel-Case,如import ProTable from "pro-table.vue" - TypeScript 接口和类型用 PascalCase
- 每个组件目录下用
index.ts统一导出
UI 设计规范
- 使用
light.scss或dark.scss的 CSS 变量来统一颜色风格 - 使用
varCss或varCssEl函数引用 CSS 变量(cssVar 引入--tk-开头,cssVarEl 引入--el-开头) - 遵循 BEM 规范,优先使用 useNamespace 函数(如
ns.b()、ns.e()、ns.em()、ns.is()、ns.has()) - 组件的样式优先创建并使用
.scss文件,且在同级.vue文件下创建同名的.scss文件 - 使用
bem.scss的混合宏(如@include b(xx) { @include e(xx) { @include m(xx) { @include is(xx) { @include has(xx) { } } } } }),如果@include e(xx){}里使用@include e{}则第二个参数加上 true,即@include e(xx, true){},否则@include e(xx){}建议同级写 - 优先使用项目定义的原子类,在
atomic.scss中定义 - 请适配移动端,部分移动端宽度变量在
var.scss中定义
代码结构
- props、emits、composables 写在 script 顶部
- 适当换行,如变量与函数之间,script、template、style 标签之间必须换行
- 使用 ESLint 和 Prettier 保证代码风格统一
- composable 和函数用 JSDoc 或 TypeScript 注释说明用途
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 · 57 lines · 977 tokens per session scan A 8a0368c3e2bd
cursorrules is a cursor rule published in the GitHub repository teekhub/teek-design-vue3 (288 stars, last pushed 15d ago), licensed MIT. It adds 977 tokens to every session, about $0.0039 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.
cursorrules compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cursorrulesteekhub/teek-design-vue3 | Cursor rule | 288 | 15d ago | MIT | A | 977 | 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 |