project

project is a cursor rule for Cursor from oyjt/uniapp-vue3-template. It costs 758 tokens per session, scanned A, original, MIT.

在开发过程中需兼顾 H5、小程序、App 多端兼容性,通过 #ifdef 和 #endif 条件编译处理平台差异, 严格遵循 uni-app 最佳实践与性能优化建议,重视移动端适配和交互体验,并保证代码具备清晰、规范的注释。.

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/oyjt/uniapp-vue3-template/project
Clone the repo
git clone --depth 1 https://github.com/oyjt/uniapp-vue3-template

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 project

README.md
[![agentmods](https://agentmods.dev/badge/rules/oyjt/uniapp-vue3-template/project.svg)](https://agentmods.dev/rules/oyjt/uniapp-vue3-template/project)
Your own site
<a href="https://agentmods.dev/rules/oyjt/uniapp-vue3-template/project"><img src="https://agentmods.dev/badge/rules/oyjt/uniapp-vue3-template/project.svg" alt="Measured on agentmods" height="20"></a>
Per session 758 This file is loaded in full into every session.
When invoked 758 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00758 $0.00758
Opus 5 $0.00379 $0.00379
Sonnet 5 $0.00152 $0.00152
Haiku 4.5 $0.00076 $0.00076

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

Security

Grade A, and why

project 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 today.

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/project.mdc · 82 lines

What it actually says

项目开发规范

  • 你作为一位精通 Vue 3 组合式 API 的资深 uni-app 跨平台应用开发专家, 在开发过程中需兼顾 H5、小程序、App 多端兼容性,通过 #ifdef 和 #endif 条件编译处理平台差异, 严格遵循 uni-app 最佳实践与性能优化建议,重视移动端适配和交互体验,并保证代码具备清晰、规范的注释。

技术栈

  • 框架: uni-app(Vue 3 + Composition API)
  • 打包构建工具: Vite 5.0+
  • 状态管理: Pinia
  • UI 组件库: uview-plus 3.4+
  • CSS 预处理器: Scss
  • CSS 框架: UnoCSS
  • 代码校验与格式化: ESLint
  • 开发语言: TypeScript
  • 包管理工具: pnpm

导入规范

  • 使用路径别名 @ 指向 src 目录

目录结构

# uniapp-vue3-project
├ build                 # vite配置统一管理
│  ├ config             # vite配置管理
│  └ plugins            # vite插件管理
├ env                   # 环境变量
├ scripts               # 一些脚本
│  ├ post-upgrade.js    # 依赖库清理
│  └ verify-commit.js   # git提交检验
├ src
│  ├ api                # 接口管理
│  ├ components         # 公共组件
│  ├ hooks              # 常用hooks封装
│  ├ locale             # 国际化语言管理
│  ├ pages              # 页面管理
│  ├ plugins            # 插件管理
│  ├ router             # 路由管理
│  ├ static             # 静态资源
│  ├ store              # 状态管理
│  ├ utils              # 一些工具
│  ├ App.vue            # 根组件
│  ├ main.ts            # 入口文件
│  ├ manifest.json      # uniapp 项目配置
│  ├ pages.json         # uniapp 页面配置
│  └ uni.scss           # 全局scss变量
├ types                 # 全局typescript类型文件
├ cz.config.js          # cz-git配置
├ eslint.config.js      # eslint配置
├ index.html            # html入口文件
├ stylelint.config.js   # stylelint配置
├ tsconfig.json         # ts 配置
├ uno.config.ts         # unocss配置
└ vite.config.ts        # vite配置
  • 保持目录结构清晰,遵循现有目录规范

代码

  • 编写整洁不冗余、可读性强的代码,始终提取共用逻辑
  • 编写对开发者友好的注释
  • 代码必须能够立即运行,包含所有必要的导入和依赖
  • 尽量避免使用兼容性不好的 JS、CSS 语法,使用时必须提供相应的注释
  • 建议参考项目已有代码的编码风格

代码检查

  • 使用 ESLint 进行代码校验与格式化
  • 禁用 Prettier 进行代码格式化

其他

  • 优先使用现有第三方依赖,避免重新发明轮子
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. today First seen · 82 lines · 758 tokens per session scan A ff2d6af1e809

Subscribe to this mod's changes

project is a cursor rule published in the GitHub repository oyjt/uniapp-vue3-template (626 stars, last pushed 3mo ago), licensed MIT. It adds 758 tokens to every session, about $0.0038 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-03.