Skip to content

NocodeMrLi/mini-program-engineering-skill-suite / skills/mini-program-verification-skill

mini-program-verification-skill

Verified

Verify mini-program implementations and fixes with risk-calibrated evidence across static checks, unit tests, integration tests, state matrices, simulators, real devices, cloud environments, and release artifacts. Use when users ask to test, validate, accept, regression-check, quality-check, confirm readiness, or determine whether a mini-program feature is actually complete. Binds results to a source and build fingerprint, records commands and observable evidence, separates passed, failed, blocked, and not-run layers, prioritizes the next highest-information check, and never converts local success into device, cloud, release, or formal acceptance claims.

references/verification-capability-matrix.md

View on GitHub
# 验证能力与适配矩阵

先运行套件根目录的 `scripts/capability_doctor.py <匿名或已授权项目目录>`,只读识别事实,再选择已有能力。doctor 不读取 `.env`、凭证或任意源码正文,不执行项目命令、不自动安装依赖、不修改项目。

| 项目事实 | 可选适配 | 使用条件 | 不能推出 |
| --- | --- | --- | --- |
| 原生微信自定义组件,仓库已经声明 `miniprogram-simulate` | 复用既有 Jest/jsdom 或 Karma 组件测试 | 先确认依赖、测试入口与组件根均属于目标版本 | 模拟组件通过不能替代真机、云端或正式版证据 |
| 原生工程已有 mpflow | 只复用仓库现有命令和配置 | 明确其原生框架与功能覆盖限制 | 不迁移框架,不把未覆盖能力算作通过 |
| Taro | 优先复用 `dev:weapp`、`build:weapp` 等已声明脚本 | 记录 Taro 版本、实际输出目录和构建指纹 | 不套用原生目录或测试假设 |
| uni-app | 优先复用 `dev:mp-weixin`、`build:mp-weixin` 等已声明脚本 | 区分 DCloud 标识、微信 AppID 和生成目录 | 不从 `manifest.json` 存在推出平台配置通过 |
| 未知或多框架信号 | 停止自动选择,标记 `unknown` | 人工确认真实框架、命令与产物根 | 不猜测、不安装、不执行候选命令 |

## 目标平台与平台事实层

doctor 输出的 `target_platforms` 把项目映射到 `platforms/<平台>/` 平台事实层(如 wechat / alipay / douyin)。验证时遵循:

- 平台触点步骤(上传、提审、审核、发布、隐私申报、配额)按对应平台的 rule-map 与 facts 核对时效性;未收录平台的事实一律 `manual` 或 `unknown`。
- `target_platforms` 为空或出现 `unrecognized-target` 警告时,先请用户人工确认目标平台再选证据链,不猜测。
- 识别只来自静态清单(uni-app manifest 键、Taro 脚本名、原生配置),不执行项目命令,也不从目标平台存在推出任何平台证据通过。

## E2E 等待规则

- 优先条件等待或元素等待:等待明确页面、元素、网络结果或状态成立,并设置有依据的超时。
- 禁止仅靠固定 sleep 证明稳定;若工具只支持固定等待,记录局限并增加状态核验。
- 模拟器不能替代真机;桌面、模拟器、真机、体验版和正式环境分别记录证据层。
- doctor 输出脚本名称但不输出脚本正文,既不得执行项目命令,也不得把“发现命令”写成“命令已通过”。

所有适配均为可选能力:未发现既有工具时不自动安装,不擅自改 package.json,也不绑定 Taro、uni-app、mpflow 或某个测试框架。
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall