build-wechat-miniprogram
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "build-wechat-miniprogram" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6b878ea7c7b5bf7ef76bdfba37baa0fc4df86a69374f43bfa26f56fb673f9913. Verify the upstream source and version against https://skillhub.cn/skills/user_c25e780d/build-wechat-miniprogram before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Capabilities for designing and delivering native WeChat Mini Programs and performing user content safety reviews. Covers WXML/WXSS and native components, TDesign MiniProgram, npm build and usingComponents, WeChat DevTools, Skyline/WebView integration, CloudBase cloud functions and WeChat login, permissions and privacy declarations; supports review workflows for avatars/images/audio/nicknames/comments, using security.mediaCheckAsync and security.msgSecCheck, HTTPS callbacks and secure modes; includes real-device debugging, build/release validation, adaptation, elder-friendly adjustments, accessibility acceptance and issue investigation.
Introduction source: third_party · user_c25e780d · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: build-wechat-miniprogram
description: 微信小程序设计、工程交付与用户内容安全审核技能。用于设计、搭建、实现、评审、排查、部署和验收微信原生小程序,覆盖 WXML/WXSS、原生组件、TDesign MiniProgram、npm 构建、微信开发者工具、Skyline/WebView、CloudBase 云函数与登录、权限与隐私声明、头像/图片/音频/昵称/评论审核、security.mediaCheckAsync、security.msgSecCheck、安全模式 HTTPS 回调、真机调试、发布验证、适配、适老化和无障碍。触发关键词:微信小程序、小程序搭建、小程序 UI/UX、WXML、WXSS、TDesign、构建 npm、usingComponents、Skyline、CloudBase、云函数、微信登录、权限、隐私、头像审核、内容安全、pending、审核中、回调失败、上传失败、开发者工具、真机、发布验收。微信小程序设计与工程交付
快速路由
先判断任务类型,只读取当前任务需要的 reference:
- 普通页面设计、实现或评审:读取
references/core-guidelines.md。 - 项目初始化、目录、npm workspace、组件找不到、开发者工具构建:读取
references/project-engineering.md。 - CloudBase、微信登录、权限、隐私声明、云函数与部署:读取
references/platform-cloudbase.md。 - 头像、图片或音频审核:读取
references/content-audit-workflow.md、references/content-audit-media.md和references/content-audit-acceptance.md。 - 昵称、签名、标题或评论等文字审核:读取
references/content-audit-workflow.md、references/content-audit-text.md和references/content-audit-acceptance.md。 - 内容长期审核中、pending 对象消失、回调不到、权限错误或生产部署故障:读取
references/content-audit-workflow.md和references/content-audit-acceptance.md,再按内容类型补读媒体或文字 reference。 - Skyline/WebView 选择、WXSS 差异、原生组件、文本裁切或运行时生命周期:读取
references/skyline-runtime.md。 - 桌面端、平板、横竖屏或窗口尺寸变化:读取
references/adaptive-layout.md。 - 老年用户、字体放大、读屏或可访问性:读取
references/inclusive-design.md。 - 收银台贴牌、立牌、海报、易拉宝等推广物料:读取
references/material-design.md。 - 代码 review、发布前检查或验收:读取
references/review-checklist.md,并按风险补读以上技术 reference。
核心工作流
- 阅读项目根规范、设计文档、最近目录的说明文件、
project.config.json、app.json、包管理文件和现有验证脚本。 - 明确页面主任务、入口、成功终点、异常恢复、所需微信能力、渲染器、云资源和真机验收条件。
- 沿实际调用链取证:页面事件 → 请求封装/微信 API → 云函数或服务 → 数据库/存储 → 平台权限或回调。涉及用户内容时继续追踪 pending/draft → 平台审核 → 回调/同步结果 → approved/正式值。先定位失败层,再改代码。
- 搜索并复用现有组件、样式 token、鉴权、缓存、错误映射和测试模式;保持微信原生体验优先,TDesign 按需使用。
- 实现最小闭环,并覆盖加载、空、错误、无权限、禁用、成功、重复点击、页面离开和异步竞态。
- 分层验证本地代码、开发者工具、已部署资源和真机/体验版;不要用较低层证据替代较高层结论。
- 清理临时文件、模拟数据、调试日志和本次启动的服务,最后检查变更范围、隐私声明、禁用 API 与发布配置。
硬性边界
- 不把“本地检查通过”“开发者工具编译通过”“云函数已部署”“真机业务成功”混为同一件事,分别报告证据。
- 不在客户端、示例、日志或 Git 中写入 AppSecret、SecretId、SecretKey、私钥、管理员令牌或长期签名 URL。
- 不把
wx.cloud.init()、微信运行时身份、CloudBase Auth 登录态和业务用户资料当成同一种身份;授权与角色必须在服务端校验并默认拒绝异常状态。 - 不把平台接口未开通、隐私声明错误、用户拒绝、网络失败和业务失败合并成一个“授权失败”;只有明确的用户拒绝才引导
wx.openSetting。 - 不假设 WebView CSS、DOM 行为或组件布局在 Skyline 中等价;涉及 Skyline 时运行对应检查并在目标渲染器中看长文案、字体放大和窄屏。
- 不让游客流程为了统计或恢复登录而强制初始化认证 SDK;本地随机值只能表示安装/存储实例,不能称为永久硬件 UUID。
- 不信任客户端传入的 UID、OPENID、角色、审核结论、金额、坐标或对象路径;敏感结果由可信服务端生成和校验。
- 不展示或持久化
wxfile://、pending 对象、pending FileID 或临时下载 URL 作为已通过内容;替换内容审核期间保留上一个 approved 值。 - 内容审核仅允许明确的
pass自动发布;review、平台错误、无效回调、AppID 不匹配、旧任务和并发冲突都按明确策略保留或拒绝,默认不放行。 - 不把旧请求、重复回调或已隐藏页面的异步结果写回当前界面;使用任务标识、条件更新或生命周期失效令牌。
常见症状的首查方向
| 症状 | 先检查 |
|---|---|
usingComponents 指向 npm 包但组件找不到 |
miniprogram_npm 是否生成、workspace 是否 hoist、DevTools npm 映射与真实 build-npm |
| 云函数本地测试通过但小程序报错 | 目标环境、函数是否部署、版本/运行时、权限、调用模型与线上日志 |
| 微信登录 UI 显示成功但资料/角色不可用 | 是否完成真实 Auth 会话与服务端用户映射;本地确认键不能证明登录 |
定位或隐私 API 报 is not authorized |
AppID 接口能力、平台隐私声明、代码声明、用户授权四层分别核对 |
| 上传阶段报隐私字段超长 | 先按错误码修正声明格式/长度,再重新编译和上传,不先排查网络 |
| pending 目录为空或头像一直审核中 | 先查审核任务、清理阶段、trace ID、回调传输和线上日志;对象列表不能单独证明上传或审核失败 |
mediaCheckAsync 已受理但没有审核结果 |
检查消息推送与 HTTPS 回调是否重复配置、签名/AES、网关路由、AppID 和旧事件映射 |
msgSecCheck 或媒体审核报权限错误 |
核对已部署函数的完整权限声明、目标环境、函数版本和权限传播,不只检查本地 config.json |
| Skyline 中文案被截断或样式不生效 | 组件类型、固定高度、white-space、text-overflow、不支持的属性和值 |
| 开发者工具原生崩溃 | 先保留崩溃证据,区分 IDE 原生故障与小程序控制台警告,再按热重载、缓存、稳定版本排查 |
验证阶梯
- 静态与单测:JSON/WXML/WXSS/JS 语法、lint、类型检查、单元测试、引用路径、敏感信息与禁用 API 扫描。
- 开发者工具:真实构建 npm、编译、目标页面、目标渲染器、控制台与网络日志,覆盖正常和错误状态。
- 云资源:确认环境绑定、函数状态与版本、数据库/存储规则、环境变量、消息/HTTP 回调、内容安全权限及日志。
- 体验版/真机:验证登录、定位、上传、内容审核、支付、订阅、隐私授权等平台能力以及拒绝后的恢复路径。
- 发布后抽查:核对线上版本、静态资源、函数调用和关键业务终点;记录哪些证据仍未取得。
与其他技能配合
- 微信开发者工具的打开、编译、预览、上传、自动化和控制台操作:使用
$wechatide-skill及其子技能。 - Skyline 的属性、组件、配置、路由或动画细节:使用对应
$skyline-*技能,不在本技能中复制完整属性表。
官方来源
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖微信小程序从设计、开发、审核到发布的完整工程交付流程
- 深度集成内容安全审核机制,解决实际业务中的合规痛点
- 提供分层验证体系,确保开发到上线的可靠性
Highlights
- 触发词覆盖全面,包含技术栈、平台能力、审核状态等关键维度
- 边界清晰,能有效区分不同场景需求
Highlights
- 文档结构完整,包含快速路由、工作流、边界条件、排查指南等模块
- frontmatter规范,单文件长度合理
Highlights
- 工具来源明确,基于微信官方文档和最佳实践
- 覆盖主要异常场景,提供分层验证机制
- 不可逆操作有明确确认和回退策略
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- developers.weixin.qq.com
- docs.cloudbase.net
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.