front-vue-page-conventions

front-vue-page-conventions is a cursor rule for Cursor from Siborne/YiSmart-Cloud. It costs 0 tokens per session (285 once invoked), scanned A, original, MIT.

A set of coding rules for building pages with Vue 3, a JavaScript user-interface framework, in the YiSmartCloud project's style. It defines common page layouts, names, form handling, permission checks, and Chinese comments.

In plain words
What is it for?
Use it when creating or updating Vue 3 list pages with searches, tables, pagination, pop-up forms, permission-controlled buttons, and exports.
Why use it?
It keeps pages consistent and makes their controls work in the same way across the project. Developers do not have to decide these conventions separately for each page.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating or updating Vue 3 list pages with searches, tables, pagination, pop-up forms, permission-controlled buttons, and exports.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/siborne/yismart-cloud/front-vue-page-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/Siborne/YiSmart-Cloud

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 front-vue-page-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/siborne/yismart-cloud/front-vue-page-conventions/github.svg)](https://agentmods.dev/rules/siborne/yismart-cloud/front-vue-page-conventions)
Your own site
<a href="https://agentmods.dev/rules/siborne/yismart-cloud/front-vue-page-conventions"><img src="https://agentmods.dev/badge/rules/siborne/yismart-cloud/front-vue-page-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 front-vue-page-conventions

Your own site · 80×15
<a href="https://agentmods.dev/rules/siborne/yismart-cloud/front-vue-page-conventions"><img src="https://agentmods.dev/badge/rules/siborne/yismart-cloud/front-vue-page-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 285 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.00285
Opus 5 $0.00000 $0.00143
Sonnet 5 $0.00000 $0.00057
Haiku 4.5 $0.00000 $0.00028

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

Security

Grade A, and why

front-vue-page-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/front-vue-page-conventions.mdc · 14 lines

What it actually says

Vue 页面开发约定(YiSmartCloud)

  • 使用 Vue3 script setup,页面保持 RuoYi 风格:查询区、工具栏、表格、分页、弹窗表单。
  • 页面状态统一用 ref + reactivequeryParamsformrules 放在 reactive 内,再用 toRefs 解构。
  • 列表页默认保留并复用函数命名:getListhandleQueryresetQueryhandleAddhandleUpdatehandleDeletehandleExport
  • 权限按钮必须加 v-hasPermi,权限标识与后端 @PreAuthorize("@ss.hasPermi('module:entity:action')") 对齐。
  • 交互统一走 proxy 能力:表单重置用 proxy.resetForm,提示/确认用 proxy.$modal,导出用 proxy.download
  • 保持中文业务注释风格(如“查询xx列表”“删除按钮操作”),仅在业务约束复杂时补充 1-2 行说明。
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 · 14 lines · 0 tokens per session scan A 3203959cd499

Subscribe to this mod's changes

front-vue-page-conventions is a cursor rule published in the GitHub repository Siborne/YiSmart-Cloud (4 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 285 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.