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/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/structure)<a href="https://agentmods.dev/rules/teekhub/teek-design-vue3/structure"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/structure/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/structure"><img src="https://agentmods.dev/badge/rules/teekhub/teek-design-vue3/structure.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.00780 | $0.00780 |
| Opus 5.5 | $0.00312 | $0.00312 |
| Sonnet 5.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 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:
- structure — 100% identical, 0 lines differ
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.
- 16d ago First seen · 58 lines · 780 tokens per session scan A 6e542c3109e6
structure is a cursor rule published in the GitHub repository teekhub/teek-design-vue3 (288 stars, last pushed 15d ago), licensed MIT. It adds 780 tokens to every session, about $0.0031 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.
structure compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| structureteekhub/teek-design-vue3 | Cursor rule | 288 | 15d ago | MIT | A | 780 | 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 |