Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mywand/cusrsor-do-itnpx agentmods add rules/mywand/cusrsor-do-it/wechat-mini-programWrote 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/mywand/cusrsor-do-it/wechat-mini-program)<a href="https://agentmods.dev/rules/mywand/cusrsor-do-it/wechat-mini-program"><img src="https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/wechat-mini-program/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/mywand/cusrsor-do-it/wechat-mini-program"><img src="https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/wechat-mini-program.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.00000 | $0.06985 |
| Opus 5.5 | $0.00000 | $0.02794 |
| Sonnet 5.5 | $0.00000 | $0.01397 |
| Haiku 4.5 | $0.00000 | $0.00698 |
Grade A, and why
wechat-mini-program 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 979 lines — stays where its author put it; the contents beside it link to each section on GitHub.
最近更新: 2025-09-18
微信小程序开发规范
1. 技术栈与项目基础
- 平台:微信小程序(基础库 2.32.0+)
- 语言:TypeScript 严格模式(
strict: true、noImplicitAny: true) - 样式:Less/Sass + 设计系统 Token
- 状态管理:轻量 store + 组合式逻辑(借鉴 Vue Composition API 思想)
- UI库:Vant Weapp + 自定义原子组件
- 构建:微信开发者工具 + 自定义构建脚本
- 数据请求:统一封装 + 错误处理 + 重试机制(参考 TanStack Query 模式)
2. 目录结构(优化版)
miniprogram/
├── app.json # 小程序全局配置
├── app.less # 全局样式 + Token 导入
├── app.ts # 小程序入口 + 全局状态初始化
├── sitemap.json # 搜索索引配置
├── pages/ # 页面目录(路由页面)
│ ├── home/ # 首页
│ └── profile/ # 个人中心
├── components/ # 可复用基础组件(无业务逻辑)
│ ├── base/ # 原子组件(Button/Input/Card)
│ └── business/ # 业务组件(UserCard/OrderItem)
├── features/ # 业务特性模块(聚合页面/组件/逻辑)
│ ├── auth/ # 认证模块
│ ├── order/ # 订单模块
│ └── user/ # 用户模块
├── composables/ # 复用逻辑(类似 Vue useXXX)
│ ├── useRequest.ts # 请求封装
│ ├── useAuth.ts # 认证逻辑
│ └── useStorage.ts # 存储管理
├── stores/ # 状态管理模块
│ ├── auth.ts # 认证状态
│ ├── user.ts # 用户状态
│ └── index.ts # 状态汇总
├── api/ # API 接口封装
│ ├── types.ts # API 类型定义
│ ├── client.ts # 统一请求客户端
│ ├── auth.ts # 认证相关接口
│ └── user.ts # 用户相关接口
├── utils/ # 纯函数工具(无框架耦合)
│ ├── format.ts # 格式化工具
│ ├── validate.ts # 校验工具
│ └── constants.ts # 常量定义
├── tokens/ # 设计系统 Token
│ ├── colors.ts # 颜色定义
│ ├── spacing.ts # 间距定义
│ ├── typography.ts # 字体定义
│ └── index.ts # Token 汇总
├── styles/ # 全局样式
│ ├── variables.less # Less 变量
│ ├── mixins.less # 样式混入
│ └── reset.less # 样式重置
├── assets/ # 静态资源
│ ├── images/ # 图片资源
│ └── icons/ # 图标资源
├── types/ # 全局类型定义
│ ├── global.d.ts # 全局类型扩展
│ └── api.d.ts # API 响应类型
└── custom-tab-bar/ # 自定义 TabBar
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.
- 3mo ago First seen · 979 lines · 0 tokens per session scan A 23253b382fff
wechat-mini-program is a cursor rule published in the GitHub repository mywand/cusrsor-do-it (2 stars, last pushed 10mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 6,985 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.
wechat-mini-program compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wechat-mini-programmywand/cusrsor-do-it | Cursor rule | 2 | 10mo ago | Apache-2.0 | A | 0 | Cursor |
| gradlesanjeed5/awesome-cursor-rules-mdc | Cursor rule | 3.6k | 9d ago | CC0-1.0 | A | 1,896 | Cursor |
| cursorruleskortix-ai/suna | Cursor rule | 21k | 3d ago | none | A | 4,277 | Cursor |
| nativescriptPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 711 | Cursor |
| project-structureHeeGyeong/ComposeSample | Cursor rule | 11 | today | MIT | A | 0 | Cursor |
| ios-ui-development-focusbeettlle/pi-spine | Cursor rule | 3 | yesterday | MIT | A | 0 | Cursor |
| android-viewmodelbaijum/ukulele-companion | Cursor rule | 14 | 27d ago | MIT | A | 0 | Cursor |