10-vue-ts-conventions

10-vue-ts-conventions is a cursor rule for Cursor from sowee121/frontend-interview-vue. It costs 0 tokens per session (293 once invoked), scanned A, original, MIT.

A rule set for writing Vue 3 components with TypeScript, including naming, imports, styling, and accessibility conventions.

In plain words
What is it for?
Use it when creating Vue components, composable functions, CSS classes, external links, interactive controls, and site-wide configuration.
Why use it?
It keeps components consistent and helps prevent common maintainability and accessibility problems.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating Vue components, composable functions, CSS classes, external links, interactive controls, and site-wide configuration.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/sowee121/frontend-interview-vue/10-vue-ts-conventions
Install

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.

Clone the repo
git clone --depth 1 https://github.com/sowee121/frontend-interview-vue

Made for: Cursor.

Wrote 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.

agentmods badge for 10-vue-ts-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions/github.svg)](https://agentmods.dev/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions)
Your own site
<a href="https://agentmods.dev/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions"><img src="https://agentmods.dev/badge/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions/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.

agentmods 80×15 button for 10-vue-ts-conventions

Your own site · 80×15
<a href="https://agentmods.dev/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions"><img src="https://agentmods.dev/badge/rules/sowee121/frontend-interview-vue/10-vue-ts-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 293 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00293
Opus 5 $0.00000 $0.00147
Sonnet 5 $0.00000 $0.00059
Haiku 4.5 $0.00000 $0.00029

Measured 10d ago against content hash 0609635c759a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

10-vue-ts-conventions 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 10d 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.

.cursor/rules/10-vue-ts-conventions.mdc · 19 lines

What it actually says

Vue/TS 约定

  • Vue 组件:统一使用 <script setup lang="ts">defineProps/defineEmits 使用类型参数声明。
  • 导入与别名:站内导入优先用 @/ 别名;类型优先 import type
  • 可维护性:能抽到 src/composables/ 的逻辑就抽,避免在页面/组件里堆大段滚动监听与 DOM 逻辑。
  • 站点文案:顶栏标题等来自 SITE_NAMEsrc/config/site.ts),勿在组件里硬编码站点名。
  • 命名
    • 组件/文件:PascalCase(如 ChapterSidebar.vue
    • 组合式函数:useXxx(如 useChapterFromRoute
    • CSS 类:kebab-case + BEM(见样式规则)
  • 模板与可访问性:外链必须带 rel="noopener noreferrer";交互元素避免纯 div 充当按钮(必要时加 button/aria-*)。
Changes

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.

  1. 10d ago First seen · 19 lines · 0 tokens per session scan A 0609635c759a

Subscribe to this mod's changes

10-vue-ts-conventions is a cursor rule published in the GitHub repository sowee121/frontend-interview-vue (4 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 293 tokens. 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-31.