uvue

uvue is a cursor rule for Cursor from dcloudio/uni-app-x-ai-rules. It costs 0 tokens per session (285 once invoked), scanned A, original, Apache-2.0.

A set of rules for building uni-app x mobile interfaces with Vue 3. It covers component usage, platform compatibility, and project restrictions such as not using Pinia, Vuex, or i18n.

In plain words
What is it for?
Use it when developing or reviewing Vue-based uni-app x screens and components, including platform-specific code and easycom components.
Why use it?
It gives an agent concrete limits for making changes that work in this project’s Vue-based mobile environment. It also keeps component usage consistent with the project’s conventions.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/dcloudio/uni-app-x-ai-rules/uvue
Clone the repo
git clone --depth 1 https://github.com/dcloudio/uni-app-x-ai-rules

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 uvue

README.md
[![agentmods](https://agentmods.dev/badge/rules/dcloudio/uni-app-x-ai-rules/uvue.svg)](https://agentmods.dev/rules/dcloudio/uni-app-x-ai-rules/uvue)
Your own site
<a href="https://agentmods.dev/rules/dcloudio/uni-app-x-ai-rules/uvue"><img src="https://agentmods.dev/badge/rules/dcloudio/uni-app-x-ai-rules/uvue.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00000 $0.00285
Opus 5 $0.00000 $0.00143
Sonnet 5 $0.00000 $0.00057
Haiku 4.5 $0.00000 $0.00028

Measured 3d ago against content hash c7cf69ee10d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

.cursor/rules/uvue.mdc · 19 lines

What it actually says

uvue rules

vue support

  • 仅使用vue3语法,避免使用vue2。
  • 新页面尽量使用组合式API。
  • 组件尽量使用easycom规范。
  • 非easycom的自定义vue组件,调用组件方法时需使用组件实例的$callMethod方式调用。
  • 不使用 pinia、vuex、i18n 等uni-app x不支持的vue插件。
  • 使用vue语法时需注意uni-app x官网的平台和版本兼容性,平台特殊代码需包裹在条件编译中。

component

  • 组件可使用uni-app x内置组件,以及项目下的自定义组件。通过mcp工具查询项目下可用的easycom插件。
  • 项目可使用vuejs组件规范,对应的文件扩展名为uvue。
  • 符合easycom规范的组件无需import和注册,可直接在template中使用。
  • 使用内置组件时需注意uni-app x官网的平台和版本兼容性,平台特殊代码需包裹在条件编译中。
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. 3d ago First seen · 19 lines · 285 tokens per session scan A c7cf69ee10d8

Subscribe to this mod's changes

uvue is a cursor rule published in the GitHub repository dcloudio/uni-app-x-ai-rules (30 stars, last pushed 3mo ago), licensed Apache-2.0. 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-09-01.