CLAUDE.md@by-scenario/wechat-miniprogram claudeA
CLAUDE.md@by-scenario/wechat-miniprogram is agent-read markdown (claude) from overseastelegramaliterateperson865/awesome-claude-md.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# 微信小程序项目规范 ## 项目结构 - `app.js` / `app.json` / `app.wxss` - 全局入口与配置 - `pages/` - 每个页面含 `.wxml` `.wxss` `.js` `.json` 四件套 - `components/` - 自定义组件(同四件套);`utils/` - 工具函数 - `cloud/` - 云函数;`miniprogram_npm/` - npm 产物,禁止手动修改 ## WXML 模板规范 - 使用 `wx:if` / `wx:for` 时必须添加 `wx:key`,禁止使用 `*this` 作为 key(除非是简单值数组) - 列表渲染中 `wx:for-item` 和 `wx:for-index` 显式命名,避免嵌套时混淆 - 事件绑定优先使用 `bind:tap` 而非 `bindtap`(冒号语法更清晰) - 条件渲染频繁切换用 `hidden`,不频繁切换用 `wx:if`(减少渲染开销) - 模板复用使用 `<template>` + `import`,跨页面复用提取为 component ## WXSS 样式规范 - 尺寸单位统一使用 `rpx`(750rpx = 屏幕宽度),禁止使用 `px` - 全局样式写 `app.wxss`,页面级样式写对应 `.wxss`,组件样式默认隔离 - 组件需要外部样式穿透时使用 `externalClasses` 或 `styleIsolation: 'apply-shared'` - 禁止使用 `@import` 引入过多公共样式,影响包体积 ## 生命周期 - Page:`onLoad` 接收参数发请求,`onShow` 刷新状态,`onReady` 操作 DOM,`onHide`/`onUnload` 清理 - Component:`lifetimes` 声明 `attached`/`detached`,`observers` 监听数据变化 - 组件通信:父传子 `properties`,子传父 `triggerEvent`,跨层级用事件总线 ## wx API 使用规范 - 所有异步 API 封装为 Promise,禁止回调地狱 - `wx.request` 统一封装,处理 token 刷新、错误码映射、loading 状态 - 敏感 API(`wx.getLocation`、`wx.getUserProfile`)必须先检查授权状态 - 本地存储 `wx.setStorageSync` 用于轻量数据,超过 10MB 考虑云数据库 - 分包加载:主包控制在 2MB 以内,按功能模块拆分子包 ## 云函数规范(云开发) - 每个云函数一个目录含 `index.js` 和 `package.json` …
Read the whole file at its exact version.
How to install
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/wechat-miniprogram/CLAUDE.md@git:20260320.9b01acamdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/wechat-miniprogram/CLAUDE.md@sha256:1a5dc44a57c97f3cPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_pjbzd4vypis7hzsg)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260320.9b01aca latest | 2026-03-20 | 9b01aca | 3,196 B | A | view · diff |
| git:20260320.fcf2609 | 2026-03-20 | fcf2609 | 2,501 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (3196 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_pjbzd4vypis7hzsg GET https://markdownregistry.com/api/v1/resolve?ref=overseastelegramaliterateperson865/awesome-claude-md/by-scenario/wechat-miniprogram/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/1a5dc44a57c97f3c54c842bc2ede32fd589bb32bcf36c50f97940d45025b2fbf
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from overseastelegramaliterateperson865/awesome-claude-md
Every file in overseastelegramaliterateperson865/awesome-claude-md