Weapp docs
微信小程序官方开发文档的本地检索与引用。Use whenever developing, debugging, reviewing, explaining, or planning a WeChat Mini Program, including WXML/WXSS, components, wx.* client APIs, app/page configuration, lifecycle, routing, login/authorization, networking, payment, privacy, performance, developer tools, server APIs, Cloud Development, Cloud Hosting, Skyline, XR Frame, and platform capabilities. Also use when the user asks to look up or cite 微信小程序/小程序官方文档.From its SKILL.md
npx -y skills add Xichun123/weapp-docs --skill weapp-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- 28 days oldThe repository was created 28 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.7 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
WeApp Docs
微信小程序官方文档的本地、AI 友好镜像。正文位于 references/docs/;不要一次性读取整套文档,应先检索,再按需读取最少的相关页面。
检索流程
- 判断问题类型:具体 API、组件、开发主题,或自由关键词。
- 在 Skill 根目录运行最精确的检索:
python scripts/search.py --api wx.login
python scripts/search.py --component scroll-view
python scripts/search.py --topic login-auth
python scripts/search.py "分包 预下载"
- 使用
read打开结果中的references/docs/...文件。 - 如果问题跨主题,最多先读 2–5 篇最相关文档,再根据文内本地链接继续。
- 实现或修复代码时,以查到的版本要求、参数、返回值、限制和错误码为依据;不要仅凭记忆补全微信 API。
精确查找
wx.* API
python scripts/search.py --api wx.request
映射数据:references/meta/api-map.json。
组件
python scripts/search.py --component swiper
映射数据:references/meta/component-map.json。
开发主题
python scripts/search.py --list-topics
python scripts/search.py --topic performance
主题包括登录授权、网络、支付、订阅消息、分包与性能、隐私、Skyline、云开发等。人类可读导航见 references/TOPICS.md。
自由关键词
python scripts/search.py "手机号 授权"
python scripts/search.py "setData 性能" --limit 10
python scripts/search.py "蓝牙 BLE" --json
检索标题、路径、摘要与 API 名。需要更宽泛的全文搜索时,再使用:
rg -n "关键词" references/docs
文档分区
| 需求 | 目录 |
|---|---|
| 指南、生命周期、路由、视图层、分包、性能 | references/docs/framework/ |
| WXML 组件属性与事件 | references/docs/component/ |
客户端 wx.* API | references/docs/api/ |
app.json、Page/App/Component、WXML/WXS 参考 | references/docs/reference/ |
| 开发者工具、调试、CI | references/docs/devtools/ |
| 服务端 API | references/docs/server/ |
| 云开发与云托管 | references/docs/wxcloudservice/ |
| 行业、商业、多端、扩展能力 | references/docs/platform-capabilities/ |
| 小程序 AI 开发模式 | references/docs/ai/ |
各分区先看 TOC.md。更完整的检索说明见 references/RETRIEVAL.md,全量分区目录见 references/CATALOG.md。
常见入口
- 起步:
references/docs/framework/quickstart/getstart.md - 框架总览:
references/docs/framework/MINA.md - 全局配置:
references/docs/reference/configuration/app.md - Page:
references/docs/reference/api/Page.md - 自定义组件:
references/docs/framework/custom-component/ - 登录:
references/docs/framework/open-ability/login.md wx.login:references/docs/api/open-api/login/wx.login.md- 网络:
references/docs/framework/ability/network.md wx.request:references/docs/api/network/request/wx.request.md- 开发者工具:
references/docs/devtools/devtools.md
使用约束
- 优先引用本地文档路径,并说明对应官方来源;每篇正文顶部保留了来源 URL。
- 区分客户端 API、服务端 API、组件与框架配置,不要把同名能力混用。
- 检查“最低基础库版本”、平台支持、权限申请、类目限制、收费与隐私要求。
- 文档镜像是抓取时快照。涉及当前版本分布、下载链接、价格、配额、开放范围或近期变更时,应明确日期,并在必要时重新核对官网。
references/docs/devtools/log.md是动态版本壳页;完整开发者工具更新日志使用references/docs/devtools/uplog.md。- 图片仍可能引用官网 CDN;正文和代码无需联网即可查阅。
校验 Skill 包
python scripts/verify.py
该命令检查必需文件、索引条目、API/组件/主题映射与文档正文是否完整。
What ships with it: 3570 files
18150.7 KB alongside SKILL.md, 3 of them executable
references/
- CATALOG.md5.9 KB
- docs/ai/best-practices.md11.7 KB
- docs/ai/changelog.md1.7 KB
- docs/ai/debugging.md6.7 KB
- docs/ai/evaluation-guide.md23.6 KB
- docs/ai/faq.md2.8 KB
- docs/ai/guide.md4.4 KB
- docs/ai/integration.md33.4 KB
- docs/ai/operating-mechanism.md14.0 KB
- docs/ai/README.md71 B
- docs/ai/reference/api.md8.5 KB
- docs/ai/reference/component.md845 B
- docs/ai/reference/detail-page.md2.2 KB
- docs/ai/TOC.md659 B
- docs/api/ad/InterstitialAd.destroy.md391 B
- docs/api/ad/InterstitialAd.load.md446 B
- docs/api/ad/InterstitialAd.md1.4 KB
- docs/api/ad/InterstitialAd.offClose.md637 B
- docs/api/ad/InterstitialAd.offError.md631 B
- docs/api/ad/InterstitialAd.offLoad.md631 B
- docs/api/ad/InterstitialAd.onClose.md388 B
- docs/api/ad/InterstitialAd.onError.md2.6 KB
- docs/api/ad/InterstitialAd.onLoad.md385 B
- docs/api/ad/InterstitialAd.show.md1.1 KB
- docs/api/ad/RewardedVideoAd.destroy.md400 B
- docs/api/ad/RewardedVideoAd.load.md360 B
- docs/api/ad/RewardedVideoAd.md1.6 KB
- docs/api/ad/RewardedVideoAd.offClose.md661 B
- docs/api/ad/RewardedVideoAd.offError.md642 B
- docs/api/ad/RewardedVideoAd.offLoad.md642 B
- docs/api/ad/RewardedVideoAd.onClose.md660 B
- docs/api/ad/RewardedVideoAd.onError.md2.7 KB
- docs/api/ad/RewardedVideoAd.onLoad.md644 B
- docs/api/ad/RewardedVideoAd.show.md405 B
- docs/api/ad/TOC.md1.6 KB
- docs/api/ad/wx.createInterstitialAd.md1.1 KB
- docs/api/ad/wx.createRewardedVideoAd.md1.5 KB
- LICENSE1.3 KB
- MANIFEST.sha256452.7 KB
- NOTICE.md1.1 KB
3530 more files not listed here. See all 3570 in the repository.