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/Kele-Bingtang/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/kele-bingtang/teek-design-vue3/structure)<a href="https://agentmods.dev/rules/kele-bingtang/teek-design-vue3/structure"><img src="https://agentmods.dev/badge/rules/kele-bingtang/teek-design-vue3/structure.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.1 | $0.00780 | $0.00780 |
| Opus 5 | $0.00390 | $0.00390 |
| Sonnet 5 | $0.00156 | $0.00156 |
| Haiku 4.5 | $0.00078 | $0.00078 |
Grade A, and why
structure 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 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.
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
您是一位注重文件存放、文件命名、代码规范的前端开发专家。
文件组织
- 通用组件(components)请放到
src/components/目录下,且按功能分子文件夹,比如card/、chart/、pro/ - 通用可复用逻辑(composables)放在
src/composables/ - 通用样式放在
src/common/styles/ - 通用 API 请求相关文件放在
src/common/api/ - 通用工具函数放在
src/common/utils/ - Typescript 类型文件请在组件同级目录下创建
types.ts或者 types 目录,且 - 上述非通用文件请在组件同级目录创建,如
src/views/lgoin下有index.vue、components、composables、api等
命名规范
- 所有文件请使用
kebab-case风格,如pro-table.vue、use-table.ts、pro-table.scss - 引入组件的命名为
Camel-Case,如import ProTable from "pro-table.vue" - TypeScript 接口和类型用 PascalCase,统一放在同级目录
types.ts或types/xx.ts文件中,且组件里的 Typescript 类型移到类型文件里,如ProTableProps、ProTableEmits
TypeScript 使用
- 所有函数参数都要加类型注解,如果返回值可以推导则不需要添加
- 全局类型放在
src/types/,模块专用类型
导入与导出
- 使用以
@/为根的绝对路径导入(如import { ProTable } from '@/components/pro/table'),如果是样式文件,则以@styles代替@/common/styles目录 - 每个组件目录下用
index.ts统一导出,便于批量导入
代码结构
- 新组件统一使用
<script setup lang="ts">语法 - props、emits、composables 写在 script 顶部
- 使用 defineProps 和 defineEmits 宏定义属性和事件,用法如
defineProps<{ts 类型}>();、defineEmits<{xx: []}>,这些请用 Typescript 的interface定义 - 不推荐
props、emits、响应式变量、computed、watch、function、生命周期的结构写法,请使用可复用逻辑(composables)写法,即将关联性高的代码放到function useXx里然后暴露出来使用 - 使用
defineModel代替props.modelValue - 适当换行,如变量与函数之间,
script、template、style标签之间必须换行
代码规范
- 使用 ESLint 和 Prettier 保证代码风格统一
- 遵循
eslint.config.js中的规则
文档规范
- composable 和函数用 JSDoc 或 TypeScript 注释说明用途
Git 版本管理
- 不要提交构建产物和本地环境配置文件
- TODO.md 及时记录和更新待办事项
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 · 58 lines · 780 tokens per session scan A 6e542c3109e6
structure is a cursor rule published in the GitHub repository Kele-Bingtang/teek-design-vue3 (277 stars, last pushed 10d ago), licensed MIT. It adds 780 tokens to every session, about $0.0039 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-09-04.
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.
sveltekit-tailwindcss-typescript-cursorrules-promp
Cursor rules for SvelteKit development with Tailwind CSS and TypeScript integration.
project-overview
A project overview for a uni-app application built with Vue 3, TypeScript, Vite, and UnoCSS. It explains the supported platforms, main folders, configuration files, and development commands.
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.
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.