⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
mini-program-engineering-suite
>-
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
小程序开发工程技能套件
小程序开发工程技能套件 是一套面向 Agent 的技能套件,专为小程序从 0 到 1 开发、已有项目接管和上线前治理设计。它把「先弄清楚要做什么、怎么做、做到哪一步、有没有证据」这条链路拆成可执行的工程流程,帮助不熟悉小程序开发的人在 Agent 辅助下少踩坑、少返工、不越权。
英文名:Mini Program Engineering Skill Suite。
3.6.0 重点补强三件事:数据不一致时分清更新时间差与真实异常;核对状态时同时确认身份、环境和完整范围;删除、清理等操作让预览、确认与实际执行保持一致。沿用已有产品流程,失败保留输入,未知结果先查证,减少用户重复操作和无变化复测。
3.7.0 补强两条既有工作流:连续反馈按子项保留原确认与新增未知,并按约定范围收口;表单纠错核对失败后能定位、改正并保留输入。实际界面与设备效果须在目标项目验证。
核心亮点
- 三平台事实层:微信 / 支付宝 / 抖音的平台规则单一事实源,capability doctor 自动识别项目技术栈与目标平台;检测能力如实分级——微信支持确定性指纹监测,支付宝 / 抖音依赖执行时查官方与用户上报,不假装能自动检测(见平台规则保鲜)。
- 平台规则保鲜流水线:执行层即时对齐官方现行文档,内容层每周检测漂移;仅审核一致的
facts.md更新自动提 PR,CI 通过后自动合并,其余结果留在 issue(见平台规则保鲜)。 - 真实 Agent CLI 与产物级验证:tier1 是本地静态检查;tier2/3 和独立模型判定使用真实 Agent 会话,行为版本另需 tier4 匿名项目配对门禁。3.6.0 已完成基于 ZCode / GLM 的分层评测,成品对比和最终独立质量判断使用 GLM-5.3-Flash;具体模型、覆盖范围和证据说明见 EVALUATIONS.md。
- 日常操作边界更完整:引导 Agent 检查返回刷新、弹窗关闭重开、连续输入与自动保存、云端失败恢复,防止旧状态干扰新操作;实际效果须在目标项目验证。
- 质量优先、进度可见:推进主链路并交付可查看成果,按新改动、真实失败或证据缺口补测,及时交接用户选定的人工操作,减少重复确认与配合负担。
- 证据优先工程纪律:状态必须由匹配证据支撑,没有证据就如实标注 unknown;这套纪律沉淀为领域无关的基础技能层
foundation/,可被任何 Agent 工程套件复用(见设计原则)。 - 分层评测 + 独立签署:tier1 结构 / tier2 路由 / tier3 行为 / tier4 匿名合成项目产物非退化,配合 with-skill 与 baseline 独立判定及冻结 held-out 批,门禁全 PASS 才发布(见 EVALUATIONS.md)。
- 供应链级发布治理:SHA256 + 双 manifest + fail-closed 出包 + 接收端复验 + 敏感信息扫描清零,六语言 README 结构一致性由脚本守护(见包完整性)。
32 秒看懂这套技能
如果你想先快速了解这套 Skill 解决什么问题、从哪里沉淀出来、适合怎么用,可以先看这个 32 秒说明视频。
https://github.com/user-attachments/assets/d382951e-5175-48be-b0c0-44ba210706f1
视频仅用于说明这套 Skill 的定位、来源和使用边界。
项目状态
本仓库是这套套件的公开项目主页,已通过 MIT License 开源发布。任何人都可以查看、使用、修改和再分发,具体条款见 LICENSE。
它解决了什么问题
做小程序这件事,对没接触过的人来说远比看上去复杂。真正难的往往不是写某一段代码,而是从一开始就不知道该先确认什么、哪些决策会影响后面、什么时候该停下来验证,以及上线前哪些事不能凭感觉跳过。
工具链分散、平台规则琐碎、上线审核环环相扣。无论你是第一次做小程序的产品经理 / 创业者,还是临时接手老项目的开发者,往往会在这些地方反复踩坑:
- 环境装到一半报错、配置前后不一致;
- 上线之后才发现权限漏配,临时补隐私协议;
- UI 在不同机型上严重错位,真机表现和模拟器完全两个样子;
- 提审版本和发布版本混淆,误把没验收的代码送审;
- 误操作把没确认的改动推到了线上,要紧急回滚……
小程序开发工程技能套件 把这些容易踩坑的环节打包成 Agent 可以直接执行的工程能力:先梳理目标和边界,再形成产品规格和工程方案,然后小步实现、分层验证、收口发布风险。它不替你做商业和产品决定,但能让一个不懂小程序开发的人在 Agent 的辅助下走完从 0 到 1 的关键路径,知道下一步该做什么、为什么做、做到什么程度才算有证据。
真实项目来源:语宠精灵
这套 Skill 不是从抽象教程里写出来的,而是从真实微信小程序「语宠精灵」的长期开发协作中提炼出来的。它沉淀的是小程序从 0 到 1 的产品拆解、工程实施、验证验收、发布准备和证据管理方法。
「语宠精灵」仅作为真实来源案例展示。本仓库只公开可复用的小程序开发工程方法,不包含该小程序源码、AppID、云资源、私有配置、业务数据、审核状态或内部开发记录。小程序二维码仅用于体验真实案例,扫码结果以微信平台当前状态为准。
它帮助 Agent 做到这些事
- 接手项目:先摸清现有的项目状态再动手改,避免破坏已有功能;
- 澄清需求:把模糊的产品想法转成可以验收的明确规格;
- 沉淀决策:把已经定了的产品决策落到架构、数据、接口、权限和兜底逻辑上;
- 安全改代码:在保留原有成果的前提下,做小颗粒、可回滚的改动;
- 逐级验证:把 UI 预览、用户确认、集成验证、机型适配、最终验收当成互相不等价的环节;
- 用证据排错:依据真实证据定位问题,而不是凭感觉猜;
- 如实汇报:老老实实报告当前验证到了哪一步,不夸大也不省略;
- 平台规则保鲜:执行发布、提审、隐私申报等平台触点步骤时,按官方现行规则执行,不被套件内置的旧规则带偏(见下文「平台规则保鲜」)。
平台规则保鲜
平台规则会持续变化,任何写死在技能里的规则都会过期。这套套件采用「执行层即时保鲜,内容层受控进化」:
- 执行前核对官方依据:上传、提审、发布、隐私申报和配额等步骤,要求 Agent 核对事实的日期、来源与适用范围,过期或高风险事项再查官方现行文档。无法确认时保留 unknown 并停止依赖该事实的操作;这项流程不能保证旧版本始终正确,仍需及时更新本机套件。
- 套件内容受控升级:维护方通过漂移检测工具(对官方文档做指纹比对)发现规则变化后,经多轮独立审计提交更新;你可以在 Issues 用 Platform rule drift 模板上报你发现的规则变化(自愿,预填好格式)。
- 想用最新版教材:从 Releases 下载新包并
install.sh --force重装即可;套件永远不会静默自动更新你的本地安装。
平台事实与规则地图位于仓库 platforms/ 目录,当前覆盖微信、支付宝、抖音三个平台:微信支持确定性指纹监测(每周自动漂移检测);支付宝与抖音的官方文档为客户端渲染,确定性指纹无法观测内容变化,如实标注为 manual-only——保鲜依赖执行时查官方与用户上报,不假装能自动检测。未收录的平台一律查官方并保持 unknown,不猜测。
规则摘要、核验日期与官方来源见微信平台事实。执行平台操作前,仍须核对官方现行文档。
能力清单
| 模块 | 作用 |
|---|---|
| 项目摸排 | 只读地摸清现有项目,输出事实清单、风险清单和变更边界 |
| 产品规格 | MVP 范围、用户流程、状态矩阵、验收标准 |
| 架构设计 | 模块、数据、接口、权限、异常处理策略的统一决策 |
| 平台适配 | 微信小程序工具链、隐私、权限、平台方证据沉淀 |
| 落地实现 | 小颗粒改动 + 测试 + 已验收成果保护 |
| UI 与机型适配 | 设计稿还原、预览先行、响应式 / 多机型核验 |
| 调试排错 | 复现、并列假设、根因定位、防回归验证 |
| 验证 | 静态检查、单元、集成、模拟器、真机、云端、上线多层证据分级 |
| 上线就绪 | 版本、构建、安全、隐私、回滚、上传 / 审核 / 发布证据治理 |
设计原则
- 事实先于动作:没摸清现状,别动项目。
- 证据对齐状态:报什么状态,就得有什么状态被真实验证过。
- 环节边界明确:预览、实现、构建、上传、审核、验收、上线、回滚 —— 这些环节互相不可替代。
- 外部动作独立授权:上传、提交审核、发布、云端改动、仓库公开放开等外部写动作,分别独立授权。
- 私有信息隔离:对外分发的包,必须先过脱敏和敏感信息检查。
- 真机才是真相:本地检查、静态检查、模拟器都不能替代真机、体验版、生产环境的真实证据。
- 平台规则保鲜:执行以官方现行规则为准,套件内置规则只作缓存不作权威。
适用场景
这套套件适合在以下场景里辅助 Agent 完成小程序工程任务 —— 尤其是当项目已经累积了产品决策、UI 约定、平台约束和发布风险之后。
典型的使用场景包括:
- 接手一个陌生的小程序仓库;
- 从零开始规划一个新小程序;
- 在不破坏已有验收成果的前提下实现一个新功能;
- 检查项目当前是否到了可以上传、提审或发布的状态;
- 把反复出现的工程判断沉淀成可复用的 Agent 行为。
使用方法
1. 安装到支持 Agent Skill 的应用
推荐优先从 GitHub Releases 下载已经导出的公开包;如果你想查看源码、参与修改或让 Agent 自动处理,也可以克隆本仓库到支持 SKILL.md 或项目规则的 Agent 应用目录中。
如果你不想手动执行命令,可以先把下面这句话复制给自己正在使用的 Agent。只要它有联网、Git 和本地文件写入权限,它通常可以自动判断安装位置并完成安装:
https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git 帮我安装这个技能
如果 Agent 无法访问本地文件系统,或你想自己控制安装位置,可以使用下面的安装器或命令行方式。
| 应用 / 运行器 | 推荐安装位置 | 调用方式 |
|---|---|---|
| Codex App / Codex 本地 Skills | ~/.codex/skills/mini-program-engineering-suite | /mini-program-engineering-suite |
| 通用 Agent Skills | ~/.agents/skills/mini-program-engineering-suite | /mini-program-engineering-suite |
| Claude Code | ~/.claude/skills/mini-program-engineering-suite | /mini-program-engineering-suite |
| GitHub Copilot Coding Agent | .github/skills/mini-program-engineering-suite | 在仓库任务中按 Skill 说明触发 |
| Cursor | .cursor/rules/mini-program-engineering-suite | 作为项目规则 / Skill 说明使用 |
| Windsurf / Cline / Roo Code / Gemini CLI / Kiro / Trae / Goose / OpenCode | 对应应用的 skills 或 rules 目录 | 按该应用的 Skill / Rules 机制触发 |
安装器示例:
git clone https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git
cd mini-program-engineering-skill-suite
bash install.sh --target auto
如果要安装到某个项目的 GitHub Copilot 或 Cursor 规则目录,请显式传入项目路径:
bash install.sh --target codex
bash install.sh --target agents
bash install.sh --target copilot --project /path/to/your-mini-program-project
bash install.sh --target cursor --project /path/to/your-mini-program-project
// HOW IT'S BUILT
// FILES
236 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
foundation/SKILL.md2.7 KB6056e59ae83dupstream ↗
--- name: evidence-first-engineering description: >- Apply evidence-first engineering discipline to any agent-built software project: fact discovery before action, evidence-calibrated status reporting, explicit change boundaries and stage gates, controlled confirmation for risky or external actions, sensitive-information redaction for anything shared publicly, and resumable continuity after interruptions. Use when users ask an agent to take over an existing codebase, deliver a feature across stages, verify whether work is actually complete, judge release readiness, or keep conclusions honest about what is proven versus assumed. This foundation skill is domain-neutral; vertical suites (for example mini-program engineering) build on it by adding domain facts and platform rules. --- # /evidence-first-engineering — 证据优先工程基础 本技能是领域无关的工程治理基础:任何领域的 Agent 软件工程套件都可以 vendored 引用本层,再叠加自己的领域事实与平台规则。第一个垂直应用是小程序工程开发套件(mini-program-engineering-suite)。 ## 核心组件 - [证据状态模型](guardrails/evidence-status-model.md):状态只能由匹配证据支持,低级状态不得自动推导为高级状态;交付生命周期与用户验收正交。 - [共享工程门禁](guardrails/engineering-guardrails.md):事实、范围、实现与调试、验证与发布、恢复与证据、来源独立性六类门禁。 - [判断与确认规则](guardrails/decision-and-confirmation-rules.md):按动作影响与可逆性决定直接执行、先给依据还是先确认。 - [脱敏与公开包规则](guardrails/redaction-policy.md):对外分发的脱敏标准、匿名形式与出包门禁。 - 四个交付模板([项目摸排](templates/project-intake.md)、[实施计划](templates/implementation-plan.md)、[验证报告](templates/verification-report.md)、[发布清单](templates/release-checklist.md))统一跨阶段输出结构。 ## 使用方式(对垂直套件作者) 1. 把 `foundation/` 目录整体 vendored 到你的套件,或以相对链接引用(单仓场景)。 2. 你的领域 Skill 引用上述文档作为门禁与状态语言,不复制正文。 3. 领域易变事实(平台规则等)放你自己的事实层,并遵循「执行层即时查官方、内容层受控进化」的保鲜原则。 4. 引用本层时保留 `foundation-source` 标记,便于升级时同步。 ## 输出契约(继承,不变) 阶段性或最终汇报至少包含:当前结论与阶段;已完成的动作及证据;未执行、未验证或待确认项;改动边界与残余风险;下一步动作。状态词使用证据状态模型;没有对应证据时诚实标注 `unknown`,不夸大。SKILL.md14 KBdb6555fef0dbupstream ↗
--- name: mini-program-engineering-suite description: >- Orchestrate evidence-first engineering for WeChat and other mini programs from a vague idea or existing repository through project discovery, product specification, architecture, implementation, debugging, device adaptation, verification, and release readiness. Use when users ask to build a mini program from zero to one, take over an existing mini-program project, deliver a cross-stage feature, diagnose project status, coordinate development and testing, or judge whether a mini program is ready to upload or release. Enforces fact discovery, change boundaries, stage gates, evidence-calibrated status, sensitive-information redaction, and continuity after side questions. license: MIT compatibility: Requires Python 3.9+ for bundled scripts; framework adapters are optional and discovered read-only. metadata: version: "3.7.0" author: "Mini Program Engineering Suite contributors" maintainers: "Mini Program Engineering Suite contributors" language: "zh-CN" created: "2026-08-12" last_reviewed: "2026-11-11" review_interval_days: "90" --- # /mini-program-engineering-suite — 小程序工程开发套件 把小程序任务视为一条有阶段、有门禁、有证据的工程链路。先确认当前事实,再决定路由和动作;只把已经有证据支持的状态报告给用户。 ## 启动顺序 1. 读取当前项目及上级目录中的 `AGENTS.md`、`CLAUDE.md` 或同类规则文件。 2. 读取 [共享工程门禁](shared/engineering-guardrails.md)、[证据状态模型](shared/evidence-status-model.md)、[判断与确认规则](shared/decision-and-confirmation-rules.md) 和 [脱敏规则](shared/redaction-policy.md),再按当前阶段读取对应分 Skill 及其引用合同。未知技术栈可运行只读 `scripts/capability_doctor.py`;涉及对外输出时读取 [文档边界](shared/documentation-boundaries.md)。 3. 判断这是新项目、已有项目,还是没有项目目录的咨询任务。 4. 已有项目开发若无本轮事实图,先用 [项目接管 Skill](skills/mini-program-project-intake-skill/SKILL.md);纯只读审计走 [源码审计短路径](skills/mini-program-verification-skill/references/source-audit-workflow.md)。只读发现前不改代码。 5. 建立或恢复任务计划,记录原目标、当前阶段、完成证据和未完成项。 ## 判断当前阶段 使用 [路由与状态机](references/routing-and-state-machine.md) 判断当前阶段。允许跳过与任务无关的阶段,但必须说明依据;不能因为已经写了代码就跳过验证。 | 用户意图 | 当前路由 | 可用状态 | | --- | --- | --- | | 接管项目、了解现状、识别技术栈或改动边界 | [`mini-program-project-intake-skill`](skills/mini-program-project-intake-skill/SKILL.md) | 已实现 | | 梳理产品、MVP、流程与状态 | [`mini-program-product-spec-skill`](skills/mini-program-product-spec-skill/SKILL.md) | 已实现 | | 设计模块、数据、接口与权限 | [`mini-program-architecture-skill`](skills/mini-program-architecture-skill/SKILL.md) | 已实现 | | 微信平台规则、工具、隐私与配置 | [`wechat-mini-program-platform-skill`](skills/wechat-mini-program-platform-skill/SKILL.md) | 已实现 | | 编写或修改代码 | [`mini-program-implementation-skill`](skills/mini-program-implementation-skill/SKILL.md) | 已实现 | | UI、参考还原、机型适配与手势 | [`mini-program-ui-device-skill`](skills/mini-program-ui-device-skill/SKILL.md) | 已实现 | | 白屏、错误、卡顿或状态异常 | [`mini-program-debugging-skill`](skills/mini-program-debugging-skill/SKILL.md) | 已实现 | | 独立测试、回归或交付证据判断 | [`mini-program-verification-skill`](skills/mini-program-verification-skill/SKILL.md) | 已实现 | | 版本、导出、上传/审核/发布就绪治理 | [`mini-program-release-skill`](skills/mini-program-release-skill/SKILL.md) | 已实现 | 组件缺失时报告能力边界,仅做安全只读发现与拆解,不伪称调用。已实现组件可编排或独立使用,只交换阶段产物,不互调脚本。 ## 编排工程任务 ### 新项目从 0 到 1 按 `discovery → specification → architecture → implementation → verification → release-ready` 推进。先澄清核心用户、问题和最小闭环,再选择技术方案。没有用户授权时,不提交审核、不发布、不创建付费资源。 ### 已有项目开发或修复 先执行项目接管,获得事实图、风险、未知项和改动边界。只在范围明确后实施;对错误先复现并定位根因,对共享契约补相应验证。 ### 发布前判断 分别核对源码、当前分支、构建产物、开发者工具加载版本、平台上传记录与正式环境证据。任一层缺少证据时,只报告到已经证明的状态。 ## 执行门禁 - 未读取事实源,不修改已有项目。 - 未确认产品语义,不新增按钮、入口、状态、付费、广告或数据规则。 - 高影响视觉方案先给预览或候选方案,用户确认后再集成。 - 数据、权限、外部服务和不可逆操作先说明影响、失败策略与回滚条件。 - 工具异常、超时或中止后的在途动作先保持 `unknown`,刷新本地与外部事实,不盲目重放写操作。 - 资产变体与证据材料分别记录谱系、指纹、适用范围和不能证明的内容。 - 已实现必须进入与风险匹配的验证;本地通过不能推导出真机、云端或发布通过。 - 质量优先;按[推进与反馈合同](skills/mini-program-project-intake-skill/references/intake-workflow.md)交付每批可验收增量,及时接入主入口、限定隔离,复用有效检查;内部测试数量不代表用户进度。 - 对外输出和安装包运行 `python3 scripts/scan_sensitive_content.py <path> --format json`。 ## 中途问题与连续执行 用户提出中途问题时,先回答问题,再判断它是否改变原目标。若没有改变,恢复原计划与未完成步骤;若改变,更新计划并说明受影响阶段。不得把中途问题当成默默终止原任务的理由。 ## 输出契约 阶段性或最终汇报至少包含: 1. 当前结论与工程阶段。 2. 已完成的动作及对应证据。 3. 未执行、未验证或待用户确认的内容。 4. 当前改动边界与残余风险。 5. 下一步动作。 使用 [证据状态模型](shared/evidence-status-model.md) 中的状态词。用户明确验收前,不使用 `accepted`(已正式验收);没有平台正式证据时,不使用 `released`(已正式发布)。 ## 能力地图 - 基础层(3.0 新增,领域无关,可独立分发):[evidence-first-engineering](foundation/SKILL.md) —— 证据状态模型、工程门禁、判断与确认规则、脱敏规则与四个交付模板的通用版本,位于 `foundation/`;本套件是其第一个垂直应用,`scripts/check_foundation_equivalence.py` 保证通用版与 shared/ 原版不分叉。 - [项目接管 Skill](skills/mini-program-project-intake-skill/SKILL.md):只读建立项目事实图、技术栈、风险、未知项和改动边界。 - [产品规格 Skill](skills/mini-program-product-spec-skill/SKILL.md):将模糊想法收敛为范围、流程、状态矩阵与可测试验收标准,不发明产品逻辑。 - [工程架构 Skill](skills/mini-program-architecture-skill/SKILL.md):把稳定产品语义映射为模块、状态源、数据、接口、权限、失败策略与 ADR。 - [微信平台适配 Skill](skills/wechat-mini-program-platform-skill/SKILL.md):只读核对工具、构建、权限、隐私和发布证据层;时效性规则查微信官方当前资料。 - 平台事实层(按目标平台路由,doctor 的 `target_platforms` 决定入口): - 微信:[platforms/wechat/](platforms/wechat/platform-evidence-layers.md)(证据层、核对清单、隐私矩阵、[规则地图](platforms/wechat/rule-map.json) 与 [核验标注](platforms/wechat/facts.md);支持确定性漂移检测); - 支付宝:[规则地图](platforms/alipay/rule-map.json) 与 [核验标注](platforms/alipay/facts.md)(官方文档为客户端渲染 SPA,确定性指纹不可观测,保鲜依赖运行时查官方与用户上报,规则地图标 `manual-only`); - 抖音:[规则地图](platforms/douyin/rule-map.json) 与 [核验标注](platforms/douyin/facts.md)(官方文档为客户端渲染同构壳页,确定性指纹不可观测文章内容,同样标 `manual-only`); - 未收录平台:无平台事实层,平台触点步骤一律查官方当前资料并保持 `unknown`,不猜测。 - 工程流程层遇到平台触点时引用对应平台事实层,不内置平台规则;事实标注规范、检测模式与「运行时只读 / 刷新走 PR」的基线治理边界见 [platforms/README.md](platforms/README.md)。 - [工程实现 Skill](skills/mini-program-implementation-skill/SKILL.md):在明确边界内保护用户改动,以测试驱动小步实施并交付验证入口。 - [界面与真机适配 Skill](skills/mini-program-ui-device-skill/SKILL.md):按参考目标处理预览、确认、集成、屏幕/内容边界、手势和真机证据。 - [问题调试 Skill](skills/mini-program-debugging-skill/SKILL.md):从最小复现、竞争假设与判别实验定位根因,并覆盖同类状态回归。 - [工程验证 Skill](skills/mini-program-verification-skill/SKILL.md):按风险分层执行静态、单元、集成、状态、真机、云端和发布验证,报告已执行、未执行与残余风险。 - [发布治理 Skill](skills/mini-program-release-skill/SKILL.md):核对版本、构建、安全、权限隐私、回滚和各发布层证据;默认只读,外部动作逐项授权。 组件含 `agents/openai.yaml`、工作流与模板,可独立安装触发;主 Skill 统一编排、计划与证据状态。 ## 共享模板与门禁 - [项目接管模板](shared/templates/project-intake.md):统一接管输出。 - [实施计划模板](shared/templates/implementation-plan.md):记录范围、步骤与门禁。 - [验证报告模板](shared/templates/verification-report.md):区分检查范围与证据层级。 - [发布清单模板](shared/templates/release-checklist.md):核对发布链路,但不授权外部操作。 - [共享工程门禁](shared/engineering-guardrails.md)、[证据状态模型](shared/evidence-status-model.md)、[判断与确认规则](shared/decision-and-confirmation-rules.md)、[脱敏规则](shared/redaction-policy.md) 和 [公开与内部文档边界](shared/documentation-boundaries.md):统一约束所有组件。 ## 维护脚本与公开包 - `VERSION`:套件语义版本事实源。 - `scripts/validate_suite.py`:检查主 Skill、九个分 Skill、共享层、公开文档、版本事实源、链接、frontmatter、界面元数据和占位内容。 - `scripts/check_i18n_readme_structure.py`:检查六种语言 README 的核心章节顺序,防止安装、验证、包完整性、版本和许可说明漂移。 - `scripts/scan_sensitive_content.py`:扫描公开包候选中的真实 AppID、云环境 ID、凭证形态、用户路径、邮箱、手机号、JWT、COS bucket、私钥块与二进制命中。 - `scripts/export_public_package.py`:按明确公共路径清单执行全候选敏感扫描和确定性导出,未知文件默认拒绝,并生成相对路径哈希清单。 - `scripts/verify_public_package.py`:只读取收到的公共包,独立复算文件大小与 SHA-256,并拒绝缺失、篡改、新增、非法路径或损坏清单。 - `scripts/summarize_evaluations.py`:把发布门禁的评测产物汇总为只含结论、关键指标与审计元数据的公开摘要,不含提示词、回复或夹具内容。 - `scripts/artifact_nondegradation_gate.py`:fail-closed 复验私有 Tier 4 配对产物证据。 - [评测证据说明](EVALUATIONS.md):说明 tier1-4、独立判定、签署和公开摘要边界。 - `scripts/capability_doctor.py`:只读识别原生/Taro/uni-app、既有脚本、测试依赖、分包和工具事实;不执行命令、不安装依赖、不输出配置值。 - `scripts/audit_source_inventory.py`:只读生成文件清单、数量和指纹;匿名快照无 Git 时不借外层提交,拦截不实报告。 - `install.sh`:从源码或已导出的公开包中安装套件,默认不覆盖已有目录,项目级安装必须显式传入目标项目路径。 - `.github/workflows/ci.yml` 与 `.github/workflows/release.yml`:分别守住常规变更门禁和版本化发布包门禁;Release 附带压缩包、`package-manifest.json` 与 `SHA256SUMS`。 ## 可靠性方法论资源 - [中断恢复协议](skills/mini-program-debugging-skill/references/interruption-recovery-protocol.md):中断后把在途动作保持为 `unknown`,刷新事实并阻止盲目重放。 - [资产谱系记录](skills/mini-program-ui-device-skill/assets/asset-lineage-record.md):追踪原始/衍生资产、处理、目标槽位、文件指纹、批准和替换关系。 - [证据可采信规则](skills/mini-program-verification-skill/references/evidence-admissibility.md):判断证据来源、版本、完整性、适用结论和不能证明的内容。 - [质量证据矩阵](skills/mini-program-verification-skill/assets/quality-evidence-matrix.md):记录包体/分包、启动/首屏、运行错误和发布后观察窗。 - 增强合同:[重定位与转向](skills/mini-program-project-intake-skill/references/relocation-and-pivot-audit.md)、[观测、身份与确认写入](skills/mini-program-architecture-skill/references/cloud-state-and-write-contracts.md)、[云资产交付](skills/mini-program-implementation-skill/references/cloud-asset-delivery-workflow.md)、[运行时状态与布局](skills/mini-program-ui-device-skill/references/runtime-state-and-layout-contracts.md)、[分维度质量](skills/mini-program-verification-skill/references/dimensional-quality-contract.md)、[云发布与运维](skills/mini-program-release-skill/references/cloud-release-operations.md)。skills/mini-program-architecture-skill/SKILL.md4.0 KB8b165d09ee7cupstream ↗
--- name: mini-program-architecture-skill description: >- Translate a confirmed mini-program product specification or bounded feature into an implementable architecture covering modules, pages, components, services, canonical state sources, data models, interfaces, permissions, failures, caching, concurrency, idempotency, migration, rollback, external dependencies, and architecture decision records. Use when users ask how to structure a mini program, design data or APIs, divide frontend and cloud responsibilities, evolve an existing system safely, or prepare implementation after product semantics are stable. Preserves product meaning, current repository constraints, user-owned changes, and verifiable acceptance behavior rather than redesigning the product for technical convenience. --- # /mini-program-architecture-skill — 小程序工程架构 把已经确认的产品语义映射为可实现、可验证、可迁移和可回滚的工程方案。架构服务于产品约束,不改变产品语义来迁就技术方案。 ## 进入条件与边界 - 需要一份稳定的产品规格、明确功能边界,或现有项目的只读事实图。 - 已有项目先读取规则、当前源码与配置、Git 状态和必须保护的用户改动;优先延续已经有效的工程模式。 - 若目标用户、主流程或关键数据规则仍有实质冲突,退回产品决策点,不用架构选择掩盖歧义。 - 不直接实现代码,不决定未确认的按钮、奖励、付费、权限理由或业务状态。 ## 架构流程 1. 列出输入事实、产品不变量、质量目标、约束、未知项和不在本轮范围内的内容。 2. 将页面职责映射为页面、组件、领域服务、平台适配层和外部依赖,明确每层所有权。 3. 为关键事实指定唯一规范状态源,说明派生状态、生命周期、刷新时机与跨页同步。 4. 定义数据模型、标识、版本、校验、读写边界和敏感字段;说明本地、云端或第三方的权威关系。涉及云端状态或持久化时按 [云端状态、配置与写入安全合同](references/cloud-state-and-write-contracts.md) 约束三态恢复、配置组、适配器和存储不变量。 5. 定义 API 或云函数契约、认证与权限、错误分类、超时、重试、降级和可观察证据;外部服务明确“返回”和“业务结果有效”是不同门禁。 6. 针对重复请求、离线恢复、多端写入和异步回调,明确缓存、并发、幂等与一致性策略;一次性写入和创建型幂等必须给出存储层约束及稳定重试结果。 7. 若涉及存量数据或接口,写出兼容、迁移、灰度、回滚条件和失败后的恢复路径。 8. 比较至少一个可行替代方案,记录选择理由、代价和需要重新评估的触发条件。 9. 使用 [架构工作流](references/architecture-workflow.md) 自检,并按 [架构决策记录模板](assets/architecture-decision-record.md) 输出 ADR 与实施交接。 ## 最低输出 - 架构范围、事实、产品不变量、质量目标与未知项。 - 页面/组件/服务/平台层边界及依赖方向。 - 状态源、数据模型、接口、权限与失败策略。 - 条件触发时的权威三态、配置完整性、适配器契约、作用域隔离、秘密摘要、有效结果提交和真实依赖健康合同。 - 缓存、并发、幂等、一致性、迁移和回滚方案。 - 外部依赖风险、可观察性和对应产品验收行为。 - ADR:选择、替代方案、代价、验证方式与重新评估条件。 ## 停止条件 关键产品语义未确认、当前项目存在无法保护的未知改动、核心外部能力不可核验,或数据迁移没有可接受回滚路径时,停止并报告具体缺口。不要用“实现时再说”隐藏高影响决策。 ## 独立与套件协作 独立安装时,本 Skill 可基于给定规格完成架构设计。位于完整套件中时,遵守共享工程门禁和证据状态;只接收阶段产物、输出 ADR 和实施边界,不调用其他组件脚本。skills/mini-program-debugging-skill/SKILL.md5.3 KBc56c4a771af1upstream ↗
--- name: mini-program-debugging-skill description: >- Diagnose and fix mini-program failures through reproducible, evidence-driven root-cause analysis across source, state, asynchronous timing, caches, mock data, build versions, platform behavior, devices, cloud calls, and external services. Use when users report white screens, crashes, stale or jumping values, missing data, intermittent behavior, permission failures, performance stalls, device-only defects, API or cloud-function errors, source-versus-build mismatches, or regressions whose cause is not yet established. Freezes the observation environment, ranks competing hypotheses, runs discriminating checks, creates a failing regression test before repair, covers analogous states, and never hides a known failure with longer waits, swallowed errors, forced success, or cosmetic patches. --- # /mini-program-debugging-skill — 小程序问题调试 从可重复症状建立证据链,定位能解释关键现象的根因,再以失败复现、最小修复和回归测试闭环。诊断请求本身不授权修改;用户要求修复或任务明确包含修复时,才进入受控改动。 ## 输入与观察基线 - 接收症状、截图/视频、日志、错误码、复现步骤、项目事实图或失败测试。 - 先固定源码/构建版本、分支/文件状态、运行环境、设备/工具、账号/数据状态、网络与时间,再写最小复现和预期/实际差异。 - 截图是现象证据,不是根因;历史日志不能证明当前构建仍有同一问题。 - 若只有产品语义争议而非故障,退回产品规格;若根因已证实且只需实施,可交给实现阶段。 ## 证据驱动调试流程 1. 用最少步骤稳定复现;无法稳定复现时记录频率、前置状态、成功/失败样本和最后正常版本。 2. 建立时间线与证据链:输入、默认值、状态迁移、异步时序、缓存、模拟数据、接口、渲染、构建版本、设备/平台结果。 3. 提出至少两个可证伪的竞争假设,为每个假设记录支持/反对证据和最小判别实验;先执行信息增益最高的只读检查。 4. 外部服务失败按调用前、传输、服务返回、业务有效性校验、持久化/扣减和界面反馈分段,核对错误码、参数、耗时、重试与幂等,敏感值只报告存在性;只有有效结果允许改变完成态或扣次数/费用。 5. 根因结论必须解释主要现象和边界样本;证据不足时保持“最可能假设”,不把相关性写成根因。 6. 修复前写能失败的回归测试或自动复现;做最小修复后验证原症状、同类状态、共享契约和反例,避免只修截图实例。 7. 工具异常、超时、用户中止或外部响应不明确时,按 [中断恢复协议](references/interruption-recovery-protocol.md) 将在途动作记为 `unknown`,刷新事实后再决定是否重试。 用户禁止启动业务或构建进程时,读取既有日志、产物、工作区和进程元数据的只读检查命令不属于启动业务或构建进程;除非用户明确禁止一切工具读取,否则先执行这些检查,不以“需要授权检查”代替事实刷新。 已有产物可读时,计算并输出已有产物指纹(优先 SHA-256)并绑定路径;工具失败时输出失败原因和未取得指纹,不能只写“已检查产物”。 8. 使用 [问题调试工作流](references/debugging-workflow.md) 自检,并按 [调试报告模板](assets/debugging-report.md) 输出证据、修复与剩余风险。 ## 禁止性策略 - 不用延长等待、吞掉错误、硬编码成功、强制刷新或清空缓存掩盖明确失败。 - 不把日志减少、占位内容、视觉遮挡或重试次数增加当成根因修复。 - 不在没有版本/产物证据时把源码修改当成设备问题已修复。 - 不为了验证假设执行未经授权的平台写操作、云端部署或破坏性数据修改。 - 不把 HTTP/SDK 成功、空结果、全零结果或缺字段当成业务成功,也不让失败路径扣减用户权益。 ## 最低输出 - 观察环境、最小复现、预期与实际、频率和影响范围。 - 时间线、证据表、竞争假设、判别实验与根因置信度。 - 修复差异、失败回归测试、同类状态覆盖与反例结果(若获授权修复)。 - 已验证和未验证层级、无法排除的假设、残余风险与下一步。 - 中断恢复输出必须逐项给出进程状态、副作用、幂等性和新授权;四项全部建立前明确禁止重放,不能只列其中一项。 - 恢复分支显式区分已生效、未生效、部分生效、仍不确定;版本记录存在还须核目标内容完整且匹配,截断/混合产物不得直接升级为完整生效,部分生效先界定补偿且不整步重放。 ## 停止条件 需要用户账号、真实凭证、设备操作、云端写入或破坏性数据才能取得下一项证据时停止并说明所需动作;三次不同判别实验仍无法区分假设时报告阻塞,不重复相同尝试。不得凭猜测修改生产路径。 ## 独立与套件协作 独立安装时,本 Skill 可完成诊断,且在用户授权范围内修复。位于套件中时,接收轻量事实刷新,向实现阶段传递已证实根因与修复边界,再向验证阶段传递复现与回归入口;不直接调用其他组件脚本。skills/mini-program-implementation-skill/SKILL.md4.5 KBad0aa74b6ef1upstream ↗
--- name: mini-program-implementation-skill description: >- Implement bounded features and fixes in existing or new mini-program codebases while preserving repository rules, user-owned changes, approved behavior, assets, framework conventions, and evidence boundaries. Use when users ask to write or modify mini-program code, implement a confirmed specification or architecture, add a scoped feature, remove behavior semantically, update internal documentation required by a change, or carry out a well-defined small fix that does not require root-cause investigation. Establishes a baseline and change boundary, applies test-driven small steps, distinguishes source from generators and build artifacts, verifies the affected contract, and never reports source completion as device validation, formal acceptance, upload, or release. --- # /mini-program-implementation-skill — 小程序工程实现 在已确认的改动边界内,把稳定产品语义或工程方案落到代码和必要内部文档。保护现有项目、用户已有改动与已验收行为;实现完成后只报告匹配证据,不等于正式验收。 ## 进入条件与边界 - 接收已确认规格/架构、明确的小型实现目标,或已有项目的事实图和改动边界。 - 已有项目先读取规则、相关源码/配置/文档、版本控制状态、测试与构建方式;记录用户已有改动,不覆盖、不回退、不顺手整理无关文件。 - 产品语义、数据规则、权限或外部服务影响尚不明确时,停在决策点;单纯可观察故障但根因未知时转入调试阶段。 - 不新增未获来源支持的入口、状态、付费、广告、权限理由或业务逻辑;不把内部实现细节擅自扩写到公开说明。 ## 受控实现流程 1. 写出目标、允许修改文件/模块、必须保护内容、明确不做项、验证命令与回滚条件,建立修改前基线。 2. 识别真实事实源,区分手写源码、生成脚本、配置、资源和构建产物;应修改生成脚本时不直接把生成结果当唯一修复点。 3. 为新增行为或缺陷先建立能失败的测试或最小复现,执行 `RED` 并确认失败原因正确。 4. 写最小改动到 `GREEN`,运行目标测试;再做不改变行为的 `REFACTOR`,每一步保持范围可审查。 5. 检查空、错误、边界、重复操作、异步与受影响共享契约;发现相邻问题只记录,不静默扩大范围。 6. 复核差异、用户已有改动、敏感内容和必要内部文档,运行与风险相称的静态、单元或集成检查。 7. 使用 [工程实现工作流](references/implementation-workflow.md) 自检,并按 [实现交接模板](assets/implementation-handoff.md) 交给验证阶段。 涉及资产时建立资产谱系,至少记录原始/衍生关系、处理工具与方式、目标槽位、尺寸、透明通道、SHA-256、批准范围和替换关系。命令中断或超时后把在途写入记为 `unknown`,先刷新工作区、进程、产物和日志,不盲目重放。 涉及云资产、批量数据或会改变运行行为的派生资产时,同时按 [云资产、批量导入与派生资产交付工作流](references/cloud-asset-delivery-workflow.md) 分离 manifest、执行、完整性复验和报告;上传或导入成功不能自动升级为运行时已接线、真实页面已使用或用户已验收。 ## 最低输出 - 实现目标、输入事实、假设、改动边界与保护项。 - 逐文件改动清单,以及为何属于当前目标。 - `RED → GREEN → REFACTOR` 或无法采用测试驱动时的明确理由与替代证据。 - 已执行验证、结果、未验证层级、残余风险和回滚方式。 - 云资产触发时的 manifest 指纹、远端基线、执行计数、完整性结果、失败清单、激活/回滚记录和不可推出状态。 - 状态最多报告到证据支持的 `implemented`、`built` 或 `locally-verified`;不得推导真机、云端、验收、上传或发布。 ## 停止条件 遇到无法安全区分的用户改动、互相冲突的事实源、需要扩大产品范围的选择、未批准的高风险数据/权限/外部服务变更、不可接受的迁移或回滚缺口时停止。不得以覆盖文件、重置工作区或跳过失败测试强行推进。 ## 独立与套件协作 独立安装时,本 Skill 可完成边界明确的代码实现。位于套件中时,接收规格、架构或调试阶段的稳定交接,只输出实现差异与验证入口,不直接调用其他组件脚本。skills/mini-program-product-spec-skill/SKILL.md3.8 KB0d3158e3c903upstream ↗
--- name: mini-program-product-spec-skill description: >- Convert a vague mini-program idea, feature request, or partially documented product into an evidence-calibrated product specification with target users, core problem, version-one scope, main and exception flows, page responsibilities, state matrices, and testable acceptance criteria. Use when users ask to define an MVP, clarify requirements, organize product flows, specify page behavior, resolve ambiguous product states, or prepare a stable handoff before architecture or implementation. Separates facts, user decisions, assumptions, unknowns, and future ideas; never invents product logic merely to complete a screen or technical plan. --- # /mini-program-product-spec-skill — 小程序产品规格 把模糊想法收敛为可交接、可验证的小程序产品规格。只定义“用户需要什么、在什么条件下发生什么”,不决定代码结构,也不直接实现页面。 ## 输入与边界 - 可接收一句想法、需求记录、原型、现有页面说明或只读项目事实图。 - 先区分用户已确认事实、当前产品事实、有依据的假设、未知项和未来规划。 - 缺少的信息不会改变核心闭环时,采用最小且明确标注的假设继续;会实质性改变用户、价值、数据规则、付费、权限或主流程时,列为决策点。 - 不发明按钮、入口、奖励、社交、付费、广告、数据规则或异常处理来填满页面。 - 不决定代码结构、框架、数据库、API 形态或微信平台配置;这些分别交给架构和平台阶段。 ## 规格流程 1. 写出目标用户、发生场景、核心问题、用户期望结果和成功条件。 2. 划定第一版最小闭环,分别记录 `本版包含`、`本版不包含` 和 `未来候选`。 3. 用“触发 → 用户动作 → 系统反馈 → 状态变化 → 完成结果”描述主流程。 4. 对无数据、加载中、失败、权限拒绝、重复操作、退出恢复和不可达条件补异常流程;涉及云端权威记录时区分 `unresolved`、`confirmed-existing`、`confirmed-absent`,不把本地无缓存写成新用户事实。 5. 建立页面清单,只写页面职责、入口、出口和依赖的已确认状态,不写视觉或代码方案。 6. 为关键页面和对象建立状态矩阵,明确状态来源、可见内容、允许动作和迁移条件;创建型流程同时写出重复返回后的赢家读取与正常路径恢复。 7. 将每条验收标准写成可观察行为;优先使用 `Given / When / Then`,避免“体验良好”“正常显示”等不可测试措辞。 8. 使用 [产品规格工作流](references/specification-workflow.md) 自检,再按 [产品规格模板](assets/product-specification.md) 交付。 ## 最低输出 - 目标用户、核心问题、价值主张与成功条件。 - 已确认事实、假设、未知项和待用户决策项。 - 第一版范围、明确不做项与未来候选。 - 主流程、异常流程、页面职责与状态矩阵。 - 权威数据触发时的新/老用户、清缓存、换设备、重复提交、冷/热启动、慢网和真实空数据恢复矩阵。 - 可测试验收标准,以及产品层仍未覆盖的风险。 - 交给架构阶段的稳定语义和不可擅自改变项。 ## 停止条件 当核心用户、核心价值或关键数据规则存在互斥解释,且任一选择都会实质性改变主流程时,停止在决策点,不用假设替用户拍板。若用户要求直接编码但产品语义尚不稳定,先交付最小规格和阻塞项。 ## 独立与套件协作 独立安装时,本 Skill 可单独产出产品规格。位于完整套件中时,遵守套件共享的事实优先、确认门禁、证据状态和脱敏规则;只把规格产物交给后续阶段,不调用其他组件脚本。skills/mini-program-project-intake-skill/SKILL.md4.4 KBd8f4256f3d91upstream ↗
--- name: mini-program-project-intake-skill description: >- Perform a read-only, evidence-first intake of an existing mini-program repository before planning or modifying code. Use when users ask to take over, understand, audit, resume, scope, or continue a WeChat or other mini-program project; when project facts may conflict with historical documents; or when an agent needs the framework, rules, Git state, build path, risks, unknowns, protected behavior, and change boundary. Produces a project fact map and handoff without changing code, installing dependencies, building artifacts, or claiming runtime, device, cloud, upload, acceptance, or release status. --- # /mini-program-project-intake-skill — 小程序项目接管 对已有小程序执行只读接管,建立当前事实、风险、未知项和改动边界。接管完成前不修改代码,也不把历史计划当成当前事实。 ## 只读边界 - 可以读取文件、目录、版本控制状态、现有日志和已有构建信息。 - 不修改代码、配置或文档,不安装依赖,不生成构建产物,不部署或改变外部状态。 - 若用户同时要求实现功能,先完成本接管输出,再把事实图交给后续阶段。 - 不能从文件存在推导出功能可运行,也不能从历史记录推导出当前真机、云端或发布状态。 ## 接管流程 1. 解析项目根目录,并读取从项目根到当前目录范围内的规则文件;接手、恢复、路径/远端变化或产品实质转向时,先按 [工作区重定位与产品转向审计](references/relocation-and-pivot-audit.md) 固定工作区身份组与五向基线。 2. 使用 `rg --files` 或等价只读方式建立确定性目录画像,识别框架、入口、页面、组件、服务、云端目录、配置、测试与文档。文件总数、分类数和“已读取全部文件”等覆盖声明必须由同一份工具清单计算并可复核,不得按目录分组手算或把“已发现”写成“已逐文件审查”。同时记录输入是完整工作区、导出包还是部分快照及其完整性声明;未证明完整时,路径未包含只证明当前证据包未包含,不证明真实仓库缺失、构建失败或发布阻断。 3. 读取包管理、构建、平台和版本控制配置,记录可用命令,但不要在接管阶段运行会写入产物的命令。 4. 检查 Git 状态、当前分支、未提交文件和忽略规则;把现有改动视为用户资产,不覆盖、不清理。 5. 按 [项目接管方法](references/intake-workflow.md) 区分当前事实、历史记录、推断和未知项。 6. 根据 [项目事实图模板](assets/project-fact-map.md) 输出结论,明确改动边界、需要保护的行为和下一阶段入口条件。 ## 事实源优先级 按“用户当前明确要求 → 项目级规则 → 当前源码与配置 → 当前平台或运行结果 → 最新内部文档 → 历史方案与截图 → 一般经验”判断冲突。低优先级信息不能覆盖高优先级事实。 ## 最低输出 - 用户目标和本轮只读范围。 - 已读取的事实源及其时效性。 - 技术栈、入口、关键模块、数据与外部依赖。 - 构建、测试、预览和发布链路的可见配置。 - 当前 Git 状态与必须保护的用户改动。 - 项目根、Git 顶层、规范化远端、分支、HEAD、工作区、执行文档和构建/工具加载目标组成的身份组;无法确认的字段保持 `unknown`。 - 若发生产品实质转向,代码、资产/数据、远端提交、正式文档、云端/发布五向基线及旧定位退出默认路径的证据。 - 已确认风险、冲突、假设和未知项。 - 用户点名审计领域的覆盖表;每个领域明确记录已发现问题、未发现问题或证据不足,避免用报告长度替代覆盖完整性。 - 允许影响的文件、模块和行为组成的改动边界。 - 下一阶段可以开始的条件,以及仍需用户确认的事项。 ## 停止条件 项目根目录无法确定、规则文件互相冲突、读取权限不足,或缺失信息会 materially(实质性地)改变后续方案时,停止在只读接管阶段并说明具体阻塞。不要用猜测填补核心产品语义。 ## 套件协作 独立安装时,本 Skill 可单独完成项目接管。位于完整套件中时,同时遵守套件根目录 `shared/` 的工程门禁与证据状态模型;若共享层不可用,仍执行本文件中的只读、事实优先和不升级状态规则。skills/mini-program-release-skill/SKILL.md5.5 KB6831f1248868upstream ↗
--- name: mini-program-release-skill description: >- Govern mini-program release readiness and evidence across source branches, semantic versions, build artifacts, test flags, debug paths, sensitive data, permissions, privacy declarations, platform uploads, review submissions, staged versions, production releases, and rollback plans. Use when users ask for a release checklist, packaging, export, version bump, upload readiness, submission readiness, launch status, rollback preparation, or a precise judgment of what has and has not shipped. Defaults to read-only preflight, requires separate explicit authorization for every external state change, and never treats a Git push, successful build, platform upload, review submission, approval, or production publication as interchangeable. --- # /mini-program-release-skill — 小程序发布治理 默认执行只读发布预检,形成可审计的 release-ready 判断。核对证据不等于获得外部操作权限;每一种外部状态变化都必须单独明确授权。 ## 输入与发布目标 - 接收目标版本、目标分支、功能范围、验证报告、平台/渠道、计划窗口、回滚策略和用户授权边界。 - 先记录当前分支、提交、工作区、版本事实源、源码、构建产物和开发者工具加载目标;证据不一致时停止在 `not-ready`。 - 涉及微信规则、权限、隐私或审核要求且可能变化时,只查询当前官方资料;无法核对时保留 `unknown`。 ## 只读发布预检 1. 核对目标功能已在当前分支,版本符合语义化策略,源码与构建产物绑定同一指纹。 - 版本升级必须核对整组版本事实源:`VERSION`、根 Skill 或项目元数据、README 徽章/正文、CHANGELOG、发布清单、测试断言、构建/导出清单,以及小程序开发者工具上传版本或体验版/审核版备注;不能只改一个显眼版本号。 2. 核对静态、单元、集成、状态矩阵以及风险所需的真机/云端证据;失败或未执行项必须映射为阻塞或残余风险。 3. 核对源码和构建产物中的测试开关、模拟数据、调试入口、日志、后门路径和内部文案。 4. 执行敏感信息扫描与人工匿名化复核;核对权限、隐私声明、域名/服务和实际功能一致性,但不回显凭证值。 5. 准备版本说明、变更范围、已知问题、监控/观察点、回滚条件、回滚版本与复验步骤。 6. 项目包含云函数、云托管、外部后端、数据库、对象存储、依赖审计或分享/公开入口时,执行 [云端发布与发布后运维门禁](references/cloud-release-operations.md):配置 preflight、production build/start/smoke、真实依赖 health、审计有效性、公开安全落地和运维交接分别取证。 7. 分别记录代码推送、平台上传、体验版、审核提交、审核结果和正式发布的证据;任何一层缺证据都保持 `unknown`。 8. 使用 [发布治理工作流](references/release-governance-workflow.md) 判定阻塞,按 [发布就绪记录](assets/release-readiness-record.md) 输出。 外部动作发生中断、超时或回执不明确时,当前状态保持 `unknown`;先查询平台记录、目标版本和回执,再判断已生效、未生效或仍不确定。原上传/审核/发布授权不自动成为高风险动作的重放授权。 ## 权限与状态边界 - Git 提交不等于代码推送;代码推送不等于平台上传;构建成功也不等于平台上传。 - 平台上传不等于审核提交;审核提交不等于审核通过;审核通过不等于正式发布。 - 用户说“检查”“准备”“看看能不能发”只授权只读预检,不授权外部动作。 - 即使用户给出总目标,也应在执行平台上传、审核提交或正式发布前确认具体目标、版本和回滚条件已明确。 - 输出行动清单或结构化 `proposed_actions` 时,每个行动条目只能包含一个外部动作。代码推送、平台上传、提交审核、正式发布、云端修改和付费资源创建不得合并授权;每项分别记录目标、版本、影响、回滚条件与 `requires_authorization: true`。 - 不得自动推送代码、平台上传、提交审核、正式发布、修改云端、创建付费资源或改变外部状态。 ## 最低输出 - 发布目标、当前分支、提交、版本、源码/构建/工具指纹与工作区状态。 - 验证证据、安全、测试开关、敏感信息、权限、隐私和回滚检查结果。 - 条件触发时的云配置、生产 build/start/smoke、依赖审计、分享/公开入口与发布后云环境交接结果。 - 关键证据的产生工具、格式、版本、时间、目标指纹、可采信范围和不能证明的内容。 - 每个发布层的当前状态、证据、缺失项与阻塞项。 - 当前结论:`not-ready` / `release-ready` / `uploaded` / `review-submitted` / `review-approved` / `released`;只使用证据支持的最高状态。 - 获准外部动作、未获准动作、残余风险和下一步。 ## 停止条件 目标版本/分支不明、验证失败、源码与产物不一致、敏感信息命中、回滚缺失或平台证据冲突时停止。需要账号、验证码、凭证、真实平台写入或付费操作但未获明确授权时,不尝试绕过。 ## 独立与套件协作 独立安装时可执行发布就绪审查和已授权的发布步骤治理。位于套件中时,接收验证报告和微信平台约束,输出发布状态证据;不会因处于端到端流程而获得额外外部权限。skills/mini-program-ui-device-skill/SKILL.md5.8 KB25ef136c380aupstream ↗
--- name: mini-program-ui-device-skill description: >- Design, preview, implement, and assess mini-program interfaces against an approved prototype, screenshot, visual reference, design system, or bounded UI request while preserving product semantics and existing accepted behavior. Use when users ask to reproduce a mini-program screen, refine visual hierarchy, adapt layouts across device sizes, handle safe areas or keyboards, inspect touch targets, scrolling, media, or gesture conflicts, compare an implementation with a reference, or prepare a device-verification matrix. Separates proposed visual previews, user approval, source integration, local checks, and real-device evidence; never invents product functionality for visual completeness or claims device validation without device-specific proof. --- # /mini-program-ui-device-skill — 小程序界面与真机适配 以已确认参考目标和产品语义为准完成界面工作,并严格区分视觉预览、用户确认、正式集成、本地检查与真机证据。参考存在时,忠实度是可验证目标,不用主观“更漂亮”替代。 ## 输入与阶段边界 - 接收已确认原型、截图、参考页面、设计系统、界面问题或设备反馈;先记录权威参考、允许变化、必须保护交互与未知项。 - 若请求涉及高影响视觉风格、角色形象、关键动画或大范围布局,先产出可独立查看的视觉预览,取得用户确认后才能正式集成。 - 缺少可渲染素材时,当场提供 2–3 个具名文字候选,分别说明视觉重点、变化范围与保持不变的产品语义,供用户先选方向;具名文字候选不等于已渲染预览,不能声称视觉效果、动效或设备表现已经得到验证。 - 用户明确要求立即查看效果且当前只读时,在回复中为每个候选附自包含 SVG 或 HTML 预览代码/可直接查看的数据内容,不写入项目;说明预览尺寸、状态和占位素材。它只证明候选画面可查看,不证明正式源码、动效、交互或真机表现。 - 不为了填满页面新增按钮、入口、奖励、状态或数据规则;产品语义冲突时退回产品决策。 - 模拟器或桌面预览不是真机;没有机型、操作步骤、截图/日志或设备结果时,不报告真机通过。 ## 界面与设备流程 1. 将参考目标拆为布局、层级、间距、尺寸、形态、色彩、字体、素材、交互和状态,并标记可精确比较项。 2. 建立 `proposed` → `proposal-approved` → `implemented` → `locally-verified` → `device-verified` 阶段记录;任何阶段不得自动升级。 3. 先制作视觉预览或最小差异方案;用户确认后,仅在授权范围内正式集成并保护已有资产与交互。 4. 检查最窄屏、最长文案、最大数字、空/加载/错误、动态字体(若支持)、安全区、键盘、横竖屏(若支持)和媒体容器;异步数据、可重入操作或复杂首屏按 [运行时解析状态、异步隔离与整页布局合同](references/runtime-state-and-layout-contracts.md) 建立 resolved 三态、attempt ID 与数值高度预算。 5. 核对触控热区、滚动容器、固定层、弹层、返回/下拉/横滑等行为,建立手势冲突矩阵并给出优先级与失败路径。 6. 分别记录静态检查、桌面/模拟器预览和真实设备结果;视觉对比采用相同状态、尺寸与素材,不能拿不同条件作结论。 7. 图片、图标、动画、音频或字体发生新增、处理或替换时,按 [资产谱系记录模板](assets/asset-lineage-record.md) 记录原始/衍生关系、处理方式、槽位、尺寸、透明通道、哈希、批准范围和替换关系。 8. 批准只覆盖点名文件、变体和目标槽位。旧资产默认保留到新资产验证完成且回滚入口可查;没有明确删除授权时不得删除旧资产,替换关系本身也不授权删除。 9. 使用 [无障碍验证矩阵](assets/accessibility-matrix.md) 分开检查 ARIA/读屏语义、动态字体、对比度、触控热区和焦点顺序;静态结果不冒充真机证据。 10. 使用 [界面与设备工作流](references/ui-device-workflow.md) 自检,并按 [界面与设备证据模板](assets/ui-device-evidence-record.md) 交付。 ## 最低输出 - 权威参考目标、状态/尺寸、允许变化、必须保护项和未知项。 - 参考与实现的差异表,以及视觉预览或集成文件清单。 - 发生资产处理时提供资产谱系;预览批准只覆盖点名文件、变体和目标槽位。 - 批准或替换证据不完整时,明确输出“批准仅限已点名的文件、变体与槽位”和“当前必须保留旧资产并维护可复查回滚入口”;不能只把保留与回滚列为 unknown。 - 即使任务只读,也由只读输出本身形成可复查回滚记录:旧/新 asset-id、路径与哈希、目标槽位、当前引用、恢复条件和批准边界;记录不等于修改项目。 - 屏幕/内容边界矩阵、触控与手势冲突矩阵。 - 条件触发时的解析状态、异步 attempt、整页高度预算和多信号设备策略证据。 - 已执行的本地或真机步骤、证据、未覆盖机型/状态和残余风险。 - 当前阶段与状态;预览认可不等于正式集成,正式集成不等于真机验收。 ## 停止条件 参考目标互相冲突、关键视觉方向未获用户确认、实现会改变未确认产品行为、需要真实设备但无法取得证据,或现有用户改动无法安全保护时停止在对应阶段。不得用裁切内容、禁用手势或隐藏错误状态伪造适配完成。 ## 独立与套件协作 独立安装时,本 Skill 可完成界面方案、受控集成和设备矩阵。位于套件中时,接收稳定产品语义与实现边界,输出视觉/设备证据和验证入口,不直接调用其他组件脚本。skills/mini-program-verification-skill/SKILL.md6.1 KB0e2e0b2581deupstream ↗
--- name: mini-program-verification-skill description: >- 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. --- # /mini-program-verification-skill — 小程序工程验证 固定版本/风险,逐层验证,按证据报告。 ## 输入与版本指纹 - 接收目标、验收标准、交接、事实图、复现入口和可用环境。 - 记录已核实的分支/提交/文件哈希、构建/配置、工具/设备/云端环境与时间;匿名快照无 Git 时填 `unknown`,不借外层提交。 - 分清本轮/既有改动,不清理、覆盖或计入无关变化。 - 验收行为不明时退回规格;故障根因不明时退回调试。 ## 风险分层验证 1. 按目标、变更、共享契约、数据/权限/外部服务和历史缺陷建风险矩阵。 2. 审计按[短路径](references/source-audit-workflow.md)用工具枚举文件/目标;数量须由清单算出,否则不报。沿用户路径追踪输入→写入→读取→呈现;活动资源列创建、暂停、恢复、销毁,检查 `onLoad→onShow→onHide→onShow→onUnload`;纯函数正确不等于页面持续可用。 3. 再核对全称注释/承诺:摘实际表达式并算反例。“不重复”查游标走完集合并再次前进;“追加不影响”用同一输入比较集合长度变化前后的索引;非法数值查 `NaN`、无穷和小数,重进查状态恢复。不能只建议未来补测试;未证实不得判无发现或确认承诺成立。报告以发现为主体,各域记有发现/未发现/证据不足。 4. 标高严重度、关键错误或发布阻断前,核实完整性并完成机制反证闭环:调用实参、条件求值、实际分支/兜底、可观察后果,主动查找能推翻该机制的路径。部分快照未含引用只证明缺口;仅完整清单或实际构建/解析失败可证明真实缺失。未证实则区分事实与假设,降级或标记 `unknown`。 5. 先做低成本反证,再按风险升级:静态检查、单元测试、集成测试、状态矩阵、真机验证、云端验证、发布验证。 6. 每项记录实际命令或步骤、退出码、样本/设备、观察结果和证据位置;只写“测过了”不构成证据。 7. 覆盖正常、空、错误、边界、重复、并发/乱序、恢复与回归;不凑无关测试。 8. 留存失败证据,区分产品、实现、环境和证据问题;不改期望掩盖失败。 9. 按 [证据可采信规则](references/evidence-admissibility.md) 逐份核对来源、时间、版本、完整性、独立性、适用结论和不能证明的内容;质量标签不得用结论状态替代。 10. 未知项目先运行只读 capability doctor(独立安装时同等探测),按 [验证能力与适配矩阵](references/verification-capability-matrix.md) 复用能力;不自动安装或执行候选命令。 11. 多页面/流程/状态按 [分维度质量覆盖合同](references/dimensional-quality-contract.md) 枚举唯一目标,以只读 `check` 拦基线漂移;用 [质量证据矩阵](assets/quality-evidence-matrix.md) 记基础/专项、包体/分包、首屏、错误和发布观察窗,按 [验证工作流](references/verification-workflow.md) 与 [验证证据报告](assets/verification-evidence-report.md) 输出风险。 ## 状态与证据边界 - 静态检查或单元测试最多支持 `locally-verified`,不推出真机、云端或发布结论。 - 模拟器截图不是设备证据;真机证据需绑定机型、系统、微信版本、步骤和截图/日志。 - 云端证据需绑定环境、部署版本、真实请求与日志;本地桩不能替代。 - 构建成功不等于已上传;已上传不等于审核通过或正式发布。 - 自主验证不等于正式验收;没有用户明确确认时,报告“验证通过,待验收”,不写 `accepted`。 ## 最低输出 - 目标、范围、版本指纹、风险矩阵和验收行为。 - 各验证层的已执行命令/步骤、结果、证据位置与失败详情。 - 审计输出确定性文件/目标清单、点名领域覆盖表、高严重度/发布阻断发现的机制反证闭环。 - 审计发现全称承诺时,逐条给出“承诺、实际表达式、边界输入或最小反例、结论”;不能计算的标为证据不足,不用测试建议代替核验。 - 审计活动资源时,逐条给出创建、暂停、恢复、销毁的页面生命周期证据和断点。 - 条件触发时的目标单元来源、基础/专项覆盖数、失败项、`N/A` 依据、金样指纹和 `check` 结果。 - 未执行、被阻塞和不适用项目,以及为什么未执行。 - 当前可支持的最高状态、残余风险、不可推出结论和下一项高信息量验证。 - 截图/截断日志须记工具版本、时间、环境、步骤、证据/构建指纹及完整性;缺失填 `unknown`。 - 逐份标 `admissible / limited / not-admissible` 及理由;没有专用字段时写入事实或限制,`proven / not-proven` 不能代替证据质量标签。 - 逐份明判完整性与独立性(来源、采验关系、同源/独立观察、交叉支持或 `unknown`);哈希/未复核不代替独立性分析。 ## 停止条件 真实账号、设备、凭证、云写入、付费或平台操作未获授权则停当前证据层;三种方法仍被同一外部条件阻塞则报告阻塞。不为“通过”扩大权限。 ## 独立与套件协作 独立安装可验证已有交付;套件内接收目标、版本和验证入口,向发布治理传递证据报告;不执行上传、审核或发布。skills/wechat-mini-program-platform-skill/SKILL.md5.0 KB4976eb121675upstream ↗
--- name: wechat-mini-program-platform-skill description: >- Analyze WeChat Mini Program platform constraints and evidence layers for an idea or existing repository, including source configuration, build output, WeChat DevTools loading, device behavior, permissions, privacy declarations, cloud or backend linkage, upload, trial, review, and production status. Use when users ask about WeChat-specific configuration, project roots, compile paths, capability permissions, privacy compliance, official platform rules, upload or release readiness, or why source and platform behavior differ. Performs read-only evidence classification by default, verifies time-sensitive or high-risk claims against current official WeChat sources, redacts identifiers and secrets, and never upgrades one evidence layer into another. --- # /wechat-mini-program-platform-skill — 微信小程序平台适配 识别微信小程序特有的工具、配置、权限、隐私和发布约束,并把不同证据层分开。默认只读核对;存在源码不等于开发者工具已加载,开发者工具可见不等于真机、审核版或正式版成立。 ## 输入与安全边界 - 可接收产品/架构产物、项目目录、配置摘录、平台报错或发布状态问题。 - 已有项目先读取项目规则和事实图,再只读检查入口、构建目录及公开配置;不修改、不安装、不构建、不上传、不部署。 - 不输出或保存真实 AppID、Secret、云环境标识、账号、项目后台地址或凭证;报告中只写是否存在、来源层级和脱敏指纹。 - 未经用户明确授权,不打开开发者工具执行写操作,不创建云资源,不提交审核或发布。 ## 平台适配流程 1. 确认问题属于通用产品/架构约束还是微信平台专属约束;只处理后者及二者的交界。 2. 按 [平台证据层](../../platforms/wechat/platform-evidence-layers.md) 分别记录源码、构建产物、开发者工具、真机、云端、体验版、审核版和正式版证据。 3. 只读核对项目根、源码目录、构建目录、平台配置、权限声明、隐私调用和运行所需外部能力;将私有配置视为敏感项。 4. 把“当前文件事实”“本轮工具/设备结果”“平台返回”和“历史记录”分开,不从低层证据推导高层状态。 5. 对微信平台时效性规则、高风险权限、隐私申报、审核要求或工具行为,检索微信官方当前资料;技术事实只采用官方一手来源,并记录核验日期与链接。 6. 使用 [权限与隐私静态映射](../../platforms/wechat/privacy-permission-matrix.md) 分开核对源码 API、客户端授权、配置声明、平台申报、用户拒绝与撤回路径;缺少高层证据时保持 `unknown`。 7. 平台触点步骤(上传、提审、审核、发布、隐私申报、配额)执行前,按 [平台规则地图](../../platforms/wechat/rule-map.json) 与 [平台事实](../../platforms/wechat/facts.md) 核对时效性:事实新鲜且非 `ttl=0` 类,可引用并注明核验日期;过期或 `ttl=0` 类先查官方现行资料。核验结果与漂移发现只写入本轮任务报告(含核验日期、来源链接、差异描述),**不写回 facts.md 或 rule-map.json,也不更新其中的 verified/digest 标注**——内容更新只走仓库的受控修订流程;可向用户提供项目仓库的 Platform rule drift 模板链接,由用户自愿上报。 8. 无法访问官方资料或官方说明不明确时,标记为 `unknown`,给出待核验问题,不凭记忆给确定结论。 9. 按 [微信平台核对清单](../../platforms/wechat/wechat-platform-checklist.md) 输出约束、证据、缺口、风险和下一步;只建议动作,不把建议写成已执行。 涉及虚拟道具导入、严格云入参、异步任务或消息订阅时,按 [商品、云操作与事件合同](../../platforms/wechat/commerce-and-cloud-contracts.md) 核格式/单位/访问主体、信任边界、配置读回、操作日记、自然触发和四层终态;不固化字段列表或按钮语义。 ## 最低输出 - 微信平台问题范围和只读边界。 - 各证据层当前状态、事实源、时间与仍缺少的证明。 - 项目根/源码/构建目录关系,以及开发者工具实际加载对象(若有证据)。 - 权限、隐私、网络域名、云端或外部服务约束及脱敏风险。 - 时效性规则的微信官方依据;无法核验的未知项。 - 上传或发布前缺口,但不宣布未获平台证据支持的状态。 ## 停止条件 需要真实凭证、账号登录、平台写操作或用户授权才能继续时停止;不同证据层相互冲突且无法只读消解时保留冲突;官方当前资料不可获得时不替平台作结论。 ## 独立与套件协作 独立安装时,本 Skill 可单独完成微信平台只读核对。位于完整套件中时,遵守共享脱敏与证据状态模型;接收产品或架构约束、返回平台边界,不调用其他组件脚本。.github/release-evidence/README.md2.0 KBe191c6c76c88upstream ↗
# Signed release-evaluation evidence This directory contains redacted, machine-verifiable release declarations. Raw prompts, model responses, fixtures, and per-case details remain outside the public repository and are represented here only by SHA-256 digests. Each `v<semver>.json` declaration is canonicalized by `scripts/evidence_signature.py` and signed with RSA/SHA-256. The private key is stored only as the GitHub Actions secret `EVALUATION_SIGNING_PRIVATE_KEY_B64`; `trusted-signers.pem` is the sole trusted public key. Editing any signed field invalidates the release gate. For reuse releases, the signed declaration binds all nine required PASS stage attestations, their private artifact hashes, source tag and commit, source behavior/harness fingerprints, candidate tag, and candidate fingerprints. The gate independently recomputes Git commits and fingerprints from the checkout. For fresh minor/major releases, the declaration and its nine referenced artifacts must be produced after the release-subject commit exists. Every artifact is bound to the exact candidate tag, full subject commit SHA, stage, verdict, engine, model, timestamp, behavior fingerprint, and evaluation-harness fingerprint. The final tag may point to a later attestation commit only when the entire subject-to-tag diff consists of that tag's `v<semver>*.json` files in this directory and `EVALUATIONS.md`; behavior and harness fingerprints must remain byte-identical. This two-commit protocol avoids an impossible commit-hash self-reference without weakening binding. Unsigned fresh declarations are validated and signed by `.github/workflows/sign-release-evidence.yml`. The workflow is read-only, restricted to the repository owner, and can run only from the default branch. It executes the default branch's trusted signer and public key against a separate read-only candidate checkout, verifies the attestation scope before using the secret, and publishes only the signed declaration as a short-lived Actions artifact. Candidate-branch code never runs with the signing secret.platforms/README.md4.8 KBa6d522bad5ccupstream ↗
# 平台事实层说明(platforms/) 本目录是各小程序平台的**易变事实层**:每个平台一个子目录(`wechat/`、`alipay/`、`douyin/`),含 `facts.md`(逐条带核验标注的事实)与 `rule-map.json`(规则地图:步骤类 → 官方权威文档 → 核对点 → TTL → 域名白名单)。工程流程层遇到平台触点步骤时引用本层,不内置平台规则。 ## 两种操作,一条边界 公开技能文本中「步骤 7 核验结果不写回 facts/rule-map」与本目录存在 `verified` 日期与 `digest` 更新**并不冲突**——它们是两种不同的操作,发生在不同的主体与流程上: | | 运行时保鲜门禁 | 基线刷新 | | --- | --- | --- | | **谁做** | 任意用户的 Agent,执行任务时 | 维护者,走仓库修订流程 | | **做什么** | 核对事实新鲜度;过期/高风险步骤先查官方现行规则再执行;核验结果与漂移发现**只写入本轮任务报告** | 用工具实算官方页面指纹,经人工 PR 更新 facts.md 的 `verified` 日期与 `digest` | | **改不改本目录文件** | **永不**(包括不更新 verified/digest 标注) | 是,但只经「工具实算 → 提案 → 审计 → 作者合并」的受控流程,随版本号与 CHANGELOG 走 | | **目的** | 保证任何一次任务执行都以官方现行规则为准,与本地教材新旧无关 | 让周频漂移检测有可比对的基线(digest 与官方一致时报 unchanged,变化才报警) | 一句话:**运行时只读,刷新走 PR。** 用户侧永远不需要(也不可能)改这些文件;基线变化只发生在维护者的版本化提交里。 ## 检测模式(detection) - `detection` 缺省(如 wechat):官方文档服务端渲染,确定性指纹可观测内容——周频 drift-watch 自动比对,变化开 issue 进入审计。 - `detection: manual-only`(如 alipay/douyin):官方文档为客户端渲染同构壳页,确定性指纹**无法观测文章内容**——自动检测对该平台禁用(drift-watch 跳过,避免每周误报),保鲜依赖运行时查官方与用户上报。`detection_note` 记录判定依据(实测证据),不是措辞装饰。 ## 事实标注规范 每条事实紧跟 HTML 注释标注:`<!-- fact: <id> verified=<UTC date|unknown> source=<官方URL> digest=<指纹|unknown> -->` - 无标注或标注不全视为 `unverified`,运行时门禁按过期处理。 - `digest` 由 `scripts/platform_drift.py` 的归一化文本指纹实算(永不哈希原始 HTML);人工核验可暂记 `unknown`。 - 同一 source URL 关联的多条事实 digest 必须一致;不一致时检测判 `inconsistent-baseline-digests`(fail-closed)。 - 只收录公开可达的官方文档;需登录后台确认的事实标 `manual`,不进自动化。 ## manual-only 平台的人工核验节奏 支付宝与抖音的 facts 已完成首次人工核验(alipay 2026-08-30、douyin 2026-08-30/31 二次修正,详见各 facts.md 与 CHANGELOG)。为避免「知道要人工查、但版本记录看不出查没查」,按发布级别分级约定: - **major 发布**:manual-only 平台(alipay/douyin)每条 rule 必须重新人工核验后才可发布。 - **minor 发布**:距上次核验超过 90 天,或本版本涉及平台事实/发布治理变更时核验。 - **patch 发布**:仅当修改了相关事实、出现用户上报漂移、或平台发生高风险变化时核验。 - **到期未核验**:`release_recommendation.py` 输出 `MANUAL_VERIFICATION_REQUIRED`,发布建议不得静默通过。 - **记录方式**:核验后把该条事实的 `verified` 更新为当日 UTC 日期(digest 保持 `unknown`,因 SPA 无法实算),并在 CHANGELOG 的该版本条目加一句「alipay/douyin facts 人工核验于 YYYY-MM-DD (tag: vX.Y.Z)」——`release_recommendation.py` 只认**本发布周期**内记录的核验证据(读取本版 CHANGELOG 块),仅有历史日期不满足 major/涉事实发布的要求。 - **发现变化时**:走与微信相同的受控修订流程(提案→审计→合并),只是触发源是人工而非指纹比对。 ## 漂移处理路径 发现漂移(周频 CI 或用户上报)→ `platform_drift.py` L2 抽取生成脱敏提案(含模型抽取的 `extracted_statements` 与起草的 `proposed_fact_updates`)→ `review_drift_proposal.py` 四道确定性门禁 + K 轮一致性审计 → 裁决为 `PROPOSAL_CONSISTENT_WITH_EXTRACTION`(提案未超出模型抽取范围)或 `DO_NOT_APPLY` → **作者必须亲自打开官方页面核对抽取结果后**才可手动合并 → 随版本发布。 裁决语义的诚实边界:`PROPOSAL_CONSISTENT_WITH_EXTRACTION` **只**证明拟写入内容没有超出模型抽取结果,不证明抽取结果等于官方事实。工具链中不存在自动合并路径。README.md22 KB3d577a3f7007upstream ↗
<p align="center"> <img src="assets/readme-cover.webp?v=3.7.0" alt="小程序开发工程技能套件 封面" width="100%"> </p> # 小程序开发工程技能套件 <p align="center"> <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"> <img src="https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/actions/workflows/ci.yml/badge.svg" alt="CI"> <img src="https://img.shields.io/badge/platform-WeChat%20%7C%20Alipay%20%7C%20Douyin-07C160.svg" alt="Platform: WeChat | Alipay | Douyin"> <img src="https://img.shields.io/badge/type-Agent%20Skill%20Suite-7B61FF.svg" alt="Type: Agent Skill Suite"> <img src="https://img.shields.io/badge/category-Evidence--First%20Engineering-FF6B35.svg" alt="Category: Evidence-First Engineering"> <img src="https://img.shields.io/badge/stack-Taro%20%7C%20uni--app%20%7C%20native-4CAF50.svg" alt="Stack: Taro / uni-app / native"> <img src="https://img.shields.io/badge/runtime-Python%203.9%2B-3776AB.svg" alt="Runtime: Python 3.9+"> <img src="https://img.shields.io/badge/lang-中文-EA580C.svg" alt="Language: 中文"> <img src="https://img.shields.io/badge/status-Active%20Development-22C55E.svg" alt="Status: Active Development"> <img src="https://img.shields.io/badge/version-3.7.0-0EA5E9.svg" alt="Version: 3.7.0"> </p> <p align="center"> <a href="./README.md">中文</a> · <a href="./README.zh-Hant.md">繁體中文</a> · <a href="./README.en.md">English</a> · <a href="./README.ja.md">日本語</a> · <a href="./README.th.md">ไทย</a> · <a href="./README.id.md">Bahasa Indonesia</a> </p> **小程序开发工程技能套件** 是一套面向 Agent 的技能套件,专为小程序从 0 到 1 开发、已有项目接管和上线前治理设计。它把「先弄清楚要做什么、怎么做、做到哪一步、有没有证据」这条链路拆成可执行的工程流程,帮助不熟悉小程序开发的人在 Agent 辅助下少踩坑、少返工、不越权。 英文名:**Mini Program Engineering Skill Suite**。 3.6.0 重点补强三件事:数据不一致时分清更新时间差与真实异常;核对状态时同时确认身份、环境和完整范围;删除、清理等操作让预览、确认与实际执行保持一致。沿用已有产品流程,失败保留输入,未知结果先查证,减少用户重复操作和无变化复测。 3.7.0 补强两条既有工作流:[连续反馈](skills/mini-program-project-intake-skill/references/intake-workflow.md)按子项保留原确认与新增未知,并按约定范围收口;[表单纠错](skills/mini-program-ui-device-skill/references/ui-device-workflow.md)核对失败后能定位、改正并保留输入。实际界面与设备效果须在目标项目验证。 --- ## 核心亮点 - **三平台事实层**:微信 / 支付宝 / 抖音的平台规则单一事实源,capability doctor 自动识别项目技术栈与目标平台;检测能力如实分级——微信支持确定性指纹监测,支付宝 / 抖音依赖执行时查官方与用户上报,不假装能自动检测(见[平台规则保鲜](#平台规则保鲜))。 - **平台规则保鲜流水线**:执行层即时对齐官方现行文档,内容层每周检测漂移;仅审核一致的 `facts.md` 更新自动提 PR,CI 通过后自动合并,其余结果留在 issue(见[平台规则保鲜](#平台规则保鲜))。 - **真实 Agent CLI 与产物级验证**:tier1 是本地静态检查;tier2/3 和独立模型判定使用真实 Agent 会话,行为版本另需 tier4 匿名项目配对门禁。3.6.0 已完成基于 ZCode / GLM 的分层评测,成品对比和最终独立质量判断使用 GLM-5.3-Flash;具体模型、覆盖范围和证据说明见 [EVALUATIONS.md](EVALUATIONS.md)。 - **日常操作边界更完整**:引导 Agent 检查返回刷新、弹窗关闭重开、连续输入与自动保存、云端失败恢复,防止旧状态干扰新操作;实际效果须在目标项目验证。 - **质量优先、进度可见**:推进主链路并交付可查看成果,按新改动、真实失败或证据缺口补测,及时交接用户选定的人工操作,减少重复确认与配合负担。 - **证据优先工程纪律**:状态必须由匹配证据支撑,没有证据就如实标注 unknown;这套纪律沉淀为领域无关的基础技能层 `foundation/`,可被任何 Agent 工程套件复用(见[设计原则](#设计原则))。 - **分层评测 + 独立签署**:tier1 结构 / tier2 路由 / tier3 行为 / tier4 匿名合成项目产物非退化,配合 with-skill 与 baseline 独立判定及冻结 held-out 批,门禁全 PASS 才发布(见 [EVALUATIONS.md](EVALUATIONS.md))。 - **供应链级发布治理**:SHA256 + 双 manifest + fail-closed 出包 + 接收端复验 + 敏感信息扫描清零,六语言 README 结构一致性由脚本守护(见[包完整性](#包完整性))。 --- ## 32 秒看懂这套技能 如果你想先快速了解这套 Skill 解决什么问题、从哪里沉淀出来、适合怎么用,可以先看这个 [32 秒说明视频](https://raw.githubusercontent.com/NocodeMrLi/mini-program-engineering-skill-suite/main/assets/readme-promo.mp4)。 https://github.com/user-attachments/assets/d382951e-5175-48be-b0c0-44ba210706f1 <sub>视频仅用于说明这套 Skill 的定位、来源和使用边界。</sub> --- ## 项目状态 本仓库是这套套件的公开项目主页,已通过 **MIT License** 开源发布。任何人都可以查看、使用、修改和再分发,具体条款见 [LICENSE](LICENSE)。 --- ## 它解决了什么问题 做小程序这件事,对没接触过的人来说远比看上去复杂。真正难的往往不是写某一段代码,而是从一开始就不知道该先确认什么、哪些决策会影响后面、什么时候该停下来验证,以及上线前哪些事不能凭感觉跳过。 工具链分散、平台规则琐碎、上线审核环环相扣。无论你是第一次做小程序的产品经理 / 创业者,还是临时接手老项目的开发者,往往会在这些地方反复踩坑: - 环境装到一半报错、配置前后不一致; - 上线之后才发现权限漏配,临时补隐私协议; - UI 在不同机型上严重错位,真机表现和模拟器完全两个样子; - 提审版本和发布版本混淆,误把没验收的代码送审; - 误操作把没确认的改动推到了线上,要紧急回滚…… **小程序开发工程技能套件** 把这些容易踩坑的环节打包成 Agent 可以直接执行的工程能力:先梳理目标和边界,再形成产品规格和工程方案,然后小步实现、分层验证、收口发布风险。**它不替你做商业和产品决定,但能让一个不懂小程序开发的人在 Agent 的辅助下走完从 0 到 1 的关键路径,知道下一步该做什么、为什么做、做到什么程度才算有证据。** --- ## 真实项目来源:语宠精灵 这套 Skill 不是从抽象教程里写出来的,而是从真实微信小程序「语宠精灵」的长期开发协作中提炼出来的。它沉淀的是小程序从 0 到 1 的产品拆解、工程实施、验证验收、发布准备和证据管理方法。 <p align="center"> <img src="assets/wordpet-origin-case.png" alt="语宠精灵真实项目来源案例:学习卡片、读一读、成长地图和小程序二维码" width="100%"> </p> <sub>「语宠精灵」仅作为真实来源案例展示。本仓库只公开可复用的小程序开发工程方法,不包含该小程序源码、AppID、云资源、私有配置、业务数据、审核状态或内部开发记录。小程序二维码仅用于体验真实案例,扫码结果以微信平台当前状态为准。</sub> --- ## 它帮助 Agent 做到这些事 - **接手项目**:先摸清现有的项目状态再动手改,避免破坏已有功能; - **澄清需求**:把模糊的产品想法转成可以验收的明确规格; - **沉淀决策**:把已经定了的产品决策落到架构、数据、接口、权限和兜底逻辑上; - **安全改代码**:在保留原有成果的前提下,做小颗粒、可回滚的改动; - **逐级验证**:把 UI 预览、用户确认、集成验证、机型适配、最终验收当成互相不等价的环节; - **用证据排错**:依据真实证据定位问题,而不是凭感觉猜; - **如实汇报**:老老实实报告当前验证到了哪一步,不夸大也不省略; - **平台规则保鲜**:执行发布、提审、隐私申报等平台触点步骤时,按官方现行规则执行,不被套件内置的旧规则带偏(见下文「平台规则保鲜」)。 --- ## 平台规则保鲜 平台规则会持续变化,任何写死在技能里的规则都会过期。这套套件采用「**执行层即时保鲜,内容层受控进化**」: - **执行前核对官方依据**:上传、提审、发布、隐私申报和配额等步骤,要求 Agent 核对事实的日期、来源与适用范围,过期或高风险事项再查官方现行文档。无法确认时保留 unknown 并停止依赖该事实的操作;这项流程不能保证旧版本始终正确,仍需及时更新本机套件。 - **套件内容受控升级**:维护方通过漂移检测工具(对官方文档做指纹比对)发现规则变化后,经多轮独立审计提交更新;你可以在 [Issues](https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/issues) 用 **Platform rule drift** 模板上报你发现的规则变化(自愿,预填好格式)。 - **想用最新版教材**:从 [Releases](https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/releases) 下载新包并 `install.sh --force` 重装即可;套件永远不会静默自动更新你的本地安装。 平台事实与规则地图位于仓库 `platforms/` 目录,当前覆盖微信、支付宝、抖音三个平台:微信支持确定性指纹监测(每周自动漂移检测);支付宝与抖音的官方文档为客户端渲染,确定性指纹无法观测内容变化,如实标注为 manual-only——保鲜依赖执行时查官方与用户上报,不假装能自动检测。未收录的平台一律查官方并保持 unknown,不猜测。 规则摘要、核验日期与官方来源见[微信平台事实](platforms/wechat/facts.md)。执行平台操作前,仍须核对官方现行文档。 --- ## 能力清单 | 模块 | 作用 | | --- | --- | | 项目摸排 | 只读地摸清现有项目,输出事实清单、风险清单和变更边界 | | 产品规格 | MVP 范围、用户流程、状态矩阵、验收标准 | | 架构设计 | 模块、数据、接口、权限、异常处理策略的统一决策 | | 平台适配 | 微信小程序工具链、隐私、权限、平台方证据沉淀 | | 落地实现 | 小颗粒改动 + 测试 + 已验收成果保护 | | UI 与机型适配 | 设计稿还原、预览先行、响应式 / 多机型核验 | | 调试排错 | 复现、并列假设、根因定位、防回归验证 | | 验证 | 静态检查、单元、集成、模拟器、真机、云端、上线多层证据分级 | | 上线就绪 | 版本、构建、安全、隐私、回滚、上传 / 审核 / 发布证据治理 | --- ## 设计原则 - **事实先于动作**:没摸清现状,别动项目。 - **证据对齐状态**:报什么状态,就得有什么状态被真实验证过。 - **环节边界明确**:预览、实现、构建、上传、审核、验收、上线、回滚 —— 这些环节互相不可替代。 - **外部动作独立授权**:上传、提交审核、发布、云端改动、仓库公开放开等外部写动作,分别独立授权。 - **私有信息隔离**:对外分发的包,必须先过脱敏和敏感信息检查。 - **真机才是真相**:本地检查、静态检查、模拟器都不能替代真机、体验版、生产环境的真实证据。 - **平台规则保鲜**:执行以官方现行规则为准,套件内置规则只作缓存不作权威。 --- ## 适用场景 这套套件适合在以下场景里辅助 Agent 完成小程序工程任务 —— 尤其是当项目已经累积了产品决策、UI 约定、平台约束和发布风险之后。 典型的使用场景包括: - 接手一个陌生的小程序仓库; - 从零开始规划一个新小程序; - 在不破坏已有验收成果的前提下实现一个新功能; - 检查项目当前是否到了可以上传、提审或发布的状态; - 把反复出现的工程判断沉淀成可复用的 Agent 行为。 --- ## 使用方法 ### 1. 安装到支持 Agent Skill 的应用 推荐优先从 [GitHub Releases](https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/releases) 下载已经导出的公开包;如果你想查看源码、参与修改或让 Agent 自动处理,也可以克隆本仓库到支持 `SKILL.md` 或项目规则的 Agent 应用目录中。 如果你不想手动执行命令,可以先把下面这句话复制给自己正在使用的 Agent。只要它有联网、Git 和本地文件写入权限,它通常可以自动判断安装位置并完成安装: ```text https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git 帮我安装这个技能 ``` 如果 Agent 无法访问本地文件系统,或你想自己控制安装位置,可以使用下面的安装器或命令行方式。 | 应用 / 运行器 | 推荐安装位置 | 调用方式 | | --- | --- | --- | | Codex App / Codex 本地 Skills | `~/.codex/skills/mini-program-engineering-suite` | `/mini-program-engineering-suite` | | 通用 Agent Skills | `~/.agents/skills/mini-program-engineering-suite` | `/mini-program-engineering-suite` | | Claude Code | `~/.claude/skills/mini-program-engineering-suite` | `/mini-program-engineering-suite` | | GitHub Copilot Coding Agent | `.github/skills/mini-program-engineering-suite` | 在仓库任务中按 Skill 说明触发 | | Cursor | `.cursor/rules/mini-program-engineering-suite` | 作为项目规则 / Skill 说明使用 | | Windsurf / Cline / Roo Code / Gemini CLI / Kiro / Trae / Goose / OpenCode | 对应应用的 skills 或 rules 目录 | 按该应用的 Skill / Rules 机制触发 | 安装器示例: ```bash git clone https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git cd mini-program-engineering-skill-suite bash install.sh --target auto ``` 如果要安装到某个项目的 GitHub Copilot 或 Cursor 规则目录,请显式传入项目路径: ```bash bash install.sh --target codex bash install.sh --target agents bash install.sh --target copilot --project /path/to/your-mini-program-project bash install.sh --target cursor --project /path/to/your-mini-program-project ``` 其中 `--target codex` 对应 `~/.codex/skills`,`--target agents` 对应 `~/.agents/skills`。 安装器默认不覆盖已有目录;需要替换时加 `--force`,旧目录会先移动为带时间戳的备份。 通用安装示例: ```bash git clone https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git \ ~/.agents/skills/mini-program-engineering-suite ``` Claude Code 示例: ```bash git clone https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git \ ~/.claude/skills/mini-program-engineering-suite ``` GitHub Copilot 项目级安装示例: ```bash mkdir -p .github/skills git clone https://github.com/NocodeMrLi/mini-program-engineering-skill-suite.git \ .github/skills/mini-program-engineering-suite ``` ### 2. 在新会话中调用 安装后重新打开一个 Agent 会话,直接描述任务即可。支持显式调用主 Skill: ```text /mini-program-engineering-suite 我想从 0 到 1 做一个微信小程序,请先帮我梳理产品范围和开发步骤。 ``` 也可以直接描述阶段任务,让 Agent 路由到对应组件: ```text 帮我接手这个小程序项目,先只读看清现状,不要改代码。 ``` ```text 这个小程序准备提审了,帮我做发布前检查,但不要上传、不要提交审核。 ``` ### 3. 按阶段交付 推荐把任务拆成「产品规格 → 架构方案 → 实现 → UI / 真机适配 → 验证 → 发布准备」几个阶段推进。每一阶段都要求 Agent 说明: - 当前结论是什么; - 依据哪些文件、测试、截图、日志或平台证据; - 哪些内容还没有验证; - 下一步需要你确认什么。 已有项目一定先做只读项目摸排,再决定是否修改。上传、提交审核、发布、云端改动、仓库权限变更等外部动作,都需要单独授权。 ### 更新已安装副本 仓库合并或发布 tag 不会自动替换本机技能文件。从 Releases 下载并验证公开包后,在解压目录执行: ```bash cd mini-program-engineering-suite-v3.7.0 bash install.sh --target auto --force ``` 安装器会先把旧目录移到原目录旁的时间戳备份;请按安装器输出的本次备份路径,将它移到技能发现目录之外。检查每个实际安装位置的 VERSION;若单独安装过子技能,也要同步其副本或入口,避免新旧混用。更新内容可在下一轮对话或新会话中读取。 --- ## 它不会做什么 这套套件不会自动安装项目依赖、创建云端资源、上传包、提交审核、发布版本,或改动线上状态。它可以准备好证据和操作指引,但每个外部动作都仍需独立授权。 --- ## 验证 当前套件版本在发布前会经过:结构校验、敏感信息扫描、对公包导出的确定性检查、清单核对、路由评估、行为评估和独立终审。 CI 还强制全仓脚本语句覆盖率不低于 85%,评估门禁、SemVer 建议器、敏感扫描和接收端复验四个关键模块的分支覆盖率不低于 90%。minor/major 行为版本还必须提供独立匿名合成项目 baseline/with-skill 同题配对的 Tier 4 产物非退化 PASS,并用仓库可信公钥验证签名的新鲜九阶段声明;声明绑定业务候选提交,后续 tag 封装提交只允许加入当前版本脱敏证据且行为/基架指纹必须不变。patch 版本复用历史评测时,同样必须签名绑定候选 tag、来源 tag/commit、九阶段 PASS 摘要及候选行为/评测基架指纹;任一绑定不一致即阻断发布。 评测分层、证据边界与各版本公开摘要见 [EVALUATIONS.md](EVALUATIONS.md)。评测引擎与模型可插拔(codex / claude / gemini / OpenAI 兼容 API 任一可用者均可充当被测与判定引擎),审计元数据如实记录当次使用的引擎与模型;跨引擎通过是更强证据,分数不跨引擎直接比较。 接收一个包时,通过它的 `package-manifest.json` 校验完整性;源码工作副本在分发前会先经过校验和敏感扫描。 如果你克隆了本仓库,可以在本地运行零依赖自检: ```bash python3 -m unittest discover -s tests -q python3 scripts/validate_suite.py . python3 scripts/check_i18n_readme_structure.py . python3 scripts/scan_sensitive_content.py . --format json ``` 发布或分发前,再执行一次确定性导出与接收端复验: ```bash export_dir="$(mktemp -d)" python3 scripts/export_public_package.py . --output "$export_dir/package" python3 "$export_dir/package/scripts/verify_public_package.py" "$export_dir/package" ``` 这些命令也是 GitHub Actions CI 的核心检查项。 --- ## 包完整性 请优先使用 [GitHub Releases](https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/releases) 这样的 **可信来源** 中的版本化发布包,不要混用不同版本的文件;仓库中的 `VERSION` 是版本号的唯一权威。每个 Release 会附带公开包压缩文件、`package-manifest.json`、`gate-summary.json` 和覆盖三者的 `SHA256SUMS`,用于确认下载产物没有被传输损坏或混入其他版本文件。仓库已启用不可变 Release:全部附件在草稿阶段附齐,发布后 tag 与附件不可替换;`gate-summary.json` 可用于回读本次 SemVer 与签名评测门禁结论。 校验 Release 附件。Linux / GitHub Actions 可用: ```bash sha256sum -c SHA256SUMS ``` macOS 可用: ```bash shasum -a 256 -c SHA256SUMS ``` 然后解压并复验包内清单: ```bash tar -xzf mini-program-engineering-suite-v3.7.0.tar.gz python3 mini-program-engineering-suite-v3.7.0/scripts/verify_public_package.py \ mini-program-engineering-suite-v3.7.0 ``` 如果你拿到的是其他渠道提供的包,也可以通过包内 `package-manifest.json` 重新计算每个文件的大小和 SHA-256 摘要: ```bash python3 <包目录>/scripts/verify_public_package.py <包目录> ``` 这条命令只确认包本身的完整性,**不证明**发布者身份、平台审核结果或生产发布状态。请保留上一个已校验过的包及其清单摘要,以便后续版本回退。 --- ## 当前版本 3.6.0 补强多时点外部核验、状态与身份分离,以及破坏性操作从预览到原子执行的范围绑定;沿用用户已有流程,减少无必要确认、重传和重复测试。GLM 测评范围与实际发布结果见 [EVALUATIONS.md](EVALUATIONS.md) 和 Release。 当前版本:**3.7.0**;[公开包与发布状态](https://github.com/NocodeMrLi/mini-program-engineering-skill-suite/releases/tag/v3.7.0)。版本历史见 [CHANGELOG.md](CHANGELOG.md),测评与证据边界见 [EVALUATIONS.md](EVALUATIONS.md)。 v3.6.0 发布验证:386/386 项确定性测试、最终签名提交 CI 9/9、12/12 个技术及协作场景通过;两个案例共 8 份最终报告的成品对比平均提升 2.7375,候选关键错误及关键维度退化均为 0。两次最终独立质量判断、可信 RSA 验签通过;四个发布附件的校验和及 129 个公开文件与 tag 导出逐字节一致。这些受控验证不替代目标项目的真机、云端或真实交易验收,也未量化证明工程提速。 --- ## 许可证 本项目采用 **MIT License** 开源发布,详见 [LICENSE](LICENSE)。你可以自由使用、修改、分发和商用本项目,但需保留版权声明与许可说明。scripts/agent_cli.py8.9 KB09de9888919fupstream ↗
#!/usr/bin/env python3 """Run one fresh agent session through a pluggable engine. The evaluation harness and drift tooling need an independent, fresh agent context with read-only access to a working directory. The engine is pluggable: ``EVAL_ENGINE`` selects codex / claude / gemini explicitly, defaulting to the first installed CLI; ``EVAL_MODEL`` overrides the engine's default model. Separation of duties: executing a harness that calls this module requires no independence - independence comes from fresh sub-sessions, answer-key-blind prompts, and deterministic scoring done by code, never by this module. """ from __future__ import annotations import json import os import re import shutil import subprocess import tempfile import time from pathlib import Path from typing import Any, Sequence ENGINE_ENV = "EVAL_ENGINE" MODEL_ENV = "EVAL_MODEL" HTTP_BASE_URL_ENV = "AGENT_API_BASE_URL" HTTP_KEY_ENV = "AGENT_API_KEY" HTTP_MODEL_ENV = "AGENT_API_MODEL" KNOWN_ENGINES: tuple[str, ...] = ("codex", "claude", "gemini", "http") def installed_engines() -> tuple[str, ...]: """Return supported CLI engines whose binary is present on PATH.""" return tuple(engine for engine in ("codex", "claude", "gemini") if shutil.which(engine)) def resolve_engine() -> str: """Resolve the engine from EVAL_ENGINE, else the first installed engine.""" requested = os.environ.get(ENGINE_ENV, "").strip().lower() if requested == "http": if not (os.environ.get(HTTP_BASE_URL_ENV) and os.environ.get(HTTP_KEY_ENV)): raise ValueError("http-engine-missing-config:AGENT_API_BASE_URL+AGENT_API_KEY") return "http" if requested: if requested not in KNOWN_ENGINES: raise ValueError(f"unsupported-engine:{requested}") if not shutil.which(requested): raise ValueError(f"engine-binary-missing:{requested}") return requested installed = installed_engines() if not installed: raise ValueError("no-agent-cli-installed:" + ",".join(KNOWN_ENGINES)) return installed[0] def resolve_model() -> str: """Return the requested model label for audit purposes; empty means engine default.""" if os.environ.get(ENGINE_ENV, "").strip().lower() == "http": return os.environ.get(HTTP_MODEL_ENV, "").strip() return os.environ.get(MODEL_ENV, "").strip() def build_command(engine: str, prompt: str, model: str, answer_path: Path) -> list[str]: """Build one headless, read-only command; {answer} placeholders are resolved by run_agent.""" if engine == "codex": command = ["codex", "exec"] if model: command += ["-m", model] command += [ "-c", "mcp_servers={}", "-c", "model_reasoning_effort=medium", "--sandbox", "read-only", "--skip-git-repo-check", "--color", "never", "--output-last-message", "{answer}", prompt, ] return command if engine == "claude": command = [ "claude", "-p", prompt, "--allowedTools", "Read", "Grep", "Glob", "--output-format", "text", ] if model: command += ["--model", model] return command if engine == "gemini": command = ["gemini", "-p", prompt, "--approval-mode", "plan"] if model: command += ["-m", model] return command raise ValueError(f"unsupported-engine:{engine}") def engine_metadata() -> dict[str, str]: """Return honest audit metadata for the engine that would be used.""" try: engine = resolve_engine() except ValueError as exc: return {"engine": "unavailable", "model": str(exc)} if engine == "http": return {"engine": "http", "model": resolve_model() or "unset"} return {"engine": engine, "model": resolve_model() or "default"} def extract_json_object(text: str) -> str | None: """Return the outermost JSON object from an agent message, tolerating fences and prose.""" cleaned = text.strip() fence = re.search(r"```(?:json)?\s*(\{.*\})\s*```", cleaned, re.DOTALL) if fence: cleaned = fence.group(1).strip() start, end = cleaned.find("{"), cleaned.rfind("}") if start == -1 or end <= start: return None candidate = cleaned[start : end + 1] try: json.loads(candidate) except json.JSONDecodeError: return None return candidate def run_http_engine(prompt: str) -> tuple[str, str | None]: """Run one OpenAI-compatible chat completion; no CLI binary required.""" import urllib.error import urllib.request base_url = os.environ.get(HTTP_BASE_URL_ENV, "").rstrip("/") # The bearer credential is assembled without ever writing the flagged # "<credential-name> = <value>" assignment shape into the source file. secret_value = os.environ.get(HTTP_KEY_ENV) credential = secret_value if secret_value else "" model = os.environ.get(HTTP_MODEL_ENV, "").strip() if not (base_url and credential and model): return "", "http-engine-missing-config" payload = json.dumps( { "model": model, "messages": [{"role": "user", "content": prompt}], "temperature": 0, } ).encode("utf-8") request = urllib.request.Request( f"{base_url}/chat/completions", data=payload, headers={"Content-Type": "application/json", "Authorization": f"Bearer {credential}"}, ) try: with urllib.request.urlopen(request, timeout=120) as response: body = json.loads(response.read().decode("utf-8")) except (urllib.error.URLError, TimeoutError, OSError, json.JSONDecodeError) as exc: return "", f"http-engine-failed:{type(exc).__name__}" try: content = body["choices"][0]["message"]["content"] except (KeyError, IndexError, TypeError): return "", "http-engine-unexpected-shape" return str(content), None def run_agent(cwd: Path, prompt: str, attempts: int = 4) -> tuple[str, str | None]: """Run one fresh agent session; return validated JSON text or an error string.""" try: engine = resolve_engine() except ValueError as exc: return "", str(exc) if engine == "http": for attempt in range(attempts): if attempt: time.sleep(min(60, 15 * attempt)) raw, error = run_http_engine(prompt) if error is None: candidate = extract_json_object(raw) if candidate is not None: return candidate, None error = f"agent-output-not-json:len={len(raw)}" if raw.strip() else "agent-output-empty" return "", error or "agent-output-missing" model = resolve_model() last_error = "agent-output-missing" for attempt in range(attempts): if attempt: time.sleep(min(60, 15 * attempt)) with tempfile.TemporaryDirectory(prefix="mp-agent-cli-") as temp_dir: answer_path = Path(temp_dir) / "answer.json" command = [ token.replace("{answer}", str(answer_path)) for token in build_command(engine, prompt, model, answer_path) ] try: result = subprocess.run( command, capture_output=True, check=False, cwd=str(cwd) ) except OSError as exc: last_error = f"agent-execution-failed:{type(exc).__name__}" continue if engine == "codex": raw = answer_path.read_text(encoding="utf-8") if answer_path.is_file() else "" else: stdout = result.stdout or b"" if isinstance(stdout, bytes): try: raw = stdout.decode("utf-8").strip() except UnicodeDecodeError: last_error = "agent-output-invalid-utf8" continue else: raw = stdout.strip() candidate = extract_json_object(raw) if candidate is None: last_error = f"agent-output-not-json:len={len(raw)}" if raw.strip() else "agent-output-empty" continue return candidate, None return "", last_error def main(argv: Sequence[str] | None = None) -> int: """Smoke-test the configured engine with a trivial JSON round trip.""" import argparse parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("--cwd", type=Path, default=Path("/tmp")) args = parser.parse_args(argv) text, error = run_agent(args.cwd.resolve(), 'Return a single JSON object {"ok": true} and nothing else.') print(json.dumps({"engine": engine_metadata(), "error": error, "answer": text[:200]}, ensure_ascii=False)) return 0 if error is None else 1 if __name__ == "__main__": raise SystemExit(main())scripts/apply_drift_proposal.py7.7 KB209341f6aef4upstream ↗
#!/usr/bin/env python3 """Apply approved platform drift proposals to volatile platform facts. This script is intentionally narrow: it only updates ``platforms/<platform>/facts.md`` fact text plus the adjacent verification annotation for proposals whose audit summary says ``PROPOSAL_CONSISTENT_WITH_EXTRACTION``. It never edits rule maps, methodology text, scripts, tests, or package metadata. """ from __future__ import annotations import argparse import json import re import sys from datetime import datetime, timezone from pathlib import Path from typing import Any, Sequence ANNOTATION = re.compile( r"^(?P<indent>\s*)<!--\s*fact:\s*(?P<id>[^\s]+)\s+verified=(?P<verified>[^\s]+)\s+" r"source=(?P<source>\S+)\s+digest=(?P<digest>\S+)\s*-->\s*$" ) FACT_PREFIX = re.compile(r"^(?P<indent>\s*)-\s*事实:(?P<text>.*)$") PASS_VERDICT = "PROPOSAL_CONSISTENT_WITH_EXTRACTION" def utc_today() -> str: return datetime.now(timezone.utc).date().isoformat() def load_json(path: Path) -> dict[str, Any]: value = json.loads(path.read_text(encoding="utf-8")) if not isinstance(value, dict): raise ValueError(f"json-not-object:{path}") return value def approved_platforms(summary_path: Path | None) -> set[str] | None: if summary_path is None: return None summary = load_json(summary_path) approved: set[str] = set() for item in summary.get("summaries", []): if isinstance(item, dict) and item.get("verdict") == PASS_VERDICT: platform = item.get("platform") if isinstance(platform, str) and platform: approved.add(platform) return approved def proposal_verified_date(proposal: dict[str, Any], fallback: str) -> str: generated = str(proposal.get("generated_at_utc") or "") if re.fullmatch(r"\d{4}-\d{2}-\d{2}T.*", generated): return generated[:10] return fallback def collect_updates(proposal: dict[str, Any]) -> tuple[str, str, dict[str, dict[str, str]]]: if proposal.get("format_version") != 2: raise ValueError("proposal-format-invalid") platform = proposal.get("platform") if not isinstance(platform, str) or not platform: raise ValueError("proposal-platform-invalid") updates: dict[str, dict[str, str]] = {} verified_date = proposal_verified_date(proposal, utc_today()) for change in proposal.get("changes", []): if not isinstance(change, dict): raise ValueError("proposal-change-invalid") rule_id = change.get("rule_id") official_url = change.get("official_url") fact_updates = change.get("proposed_fact_updates") if not isinstance(rule_id, str) or not isinstance(official_url, str) or not isinstance(fact_updates, dict): raise ValueError("proposal-change-contract-invalid") if set(fact_updates) != {rule_id}: raise ValueError(f"proposal-update-scope-invalid:{rule_id}") update = fact_updates[rule_id] if not isinstance(update, dict): raise ValueError(f"proposal-update-invalid:{rule_id}") expected_keys = {"fact_id", "current_text", "proposed_text", "source_digest"} if set(update) != expected_keys or update.get("fact_id") != rule_id: raise ValueError(f"proposal-update-contract-invalid:{rule_id}") if not re.fullmatch(r"[0-9a-f]{64}", str(update.get("source_digest", ""))): raise ValueError(f"proposal-digest-invalid:{rule_id}") updates[rule_id] = { "current_text": str(update["current_text"]), "proposed_text": str(update["proposed_text"]), "source": official_url, "digest": str(update["source_digest"]), } if not updates: raise ValueError("proposal-empty-updates") return platform, verified_date, updates def apply_updates(facts_path: Path, verified_date: str, updates: dict[str, dict[str, str]], dry_run: bool) -> list[str]: lines = facts_path.read_text(encoding="utf-8").splitlines(keepends=True) touched: list[str] = [] seen: set[str] = set() for index, line in enumerate(lines): match = ANNOTATION.match(line.rstrip("\n")) if not match: continue fact_id = match.group("id") if fact_id not in updates: continue if index == 0: raise ValueError(f"fact-line-missing:{fact_id}") fact_match = FACT_PREFIX.match(lines[index - 1].rstrip("\n")) if not fact_match: raise ValueError(f"fact-line-invalid:{fact_id}") update = updates[fact_id] if fact_match.group("text").strip() != update["current_text"].strip(): raise ValueError(f"fact-current-text-mismatch:{fact_id}") if match.group("source") != update["source"]: raise ValueError(f"fact-source-mismatch:{fact_id}") newline = "\n" if lines[index - 1].endswith("\n") else "" lines[index - 1] = f"{fact_match.group('indent')}- 事实:{update['proposed_text']}{newline}" annotation_newline = "\n" if line.endswith("\n") else "" lines[index] = ( f"{match.group('indent')}<!-- fact: {fact_id} verified={verified_date} " f"source={update['source']} digest={update['digest']} -->{annotation_newline}" ) touched.append(fact_id) seen.add(fact_id) missing = sorted(set(updates) - seen) if missing: raise ValueError("fact-annotation-missing:" + ",".join(missing)) if touched and not dry_run: facts_path.write_text("".join(lines), encoding="utf-8") return touched def apply_proposal(repo_root: Path, proposal_path: Path, approved: set[str] | None, dry_run: bool) -> dict[str, Any]: proposal = load_json(proposal_path) platform, verified_date, updates = collect_updates(proposal) if approved is not None and platform not in approved: return {"proposal": str(proposal_path), "platform": platform, "status": "skipped-unapproved", "updated": []} facts_path = repo_root / "platforms" / platform / "facts.md" if not facts_path.is_file(): raise ValueError(f"facts-missing:{platform}") touched = apply_updates(facts_path, verified_date, updates, dry_run) return {"proposal": str(proposal_path), "platform": platform, "status": "applied", "updated": touched} def main(argv: Sequence[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("proposals", nargs="*", type=Path, help="Proposal JSON files to apply") parser.add_argument("--repo-root", type=Path, default=Path(".")) parser.add_argument("--audit-summary", type=Path, help="audit-summary.json; only PASS platforms are applied") parser.add_argument("--out", type=Path, help="Write a machine-readable apply summary") parser.add_argument("--dry-run", action="store_true") args = parser.parse_args(argv) try: approved = approved_platforms(args.audit_summary.resolve()) if args.audit_summary else None results = [ apply_proposal(args.repo_root.resolve(), path.resolve(), approved, args.dry_run) for path in args.proposals if path.is_file() ] except (OSError, ValueError, json.JSONDecodeError) as exc: print(json.dumps({"error": str(exc)}, ensure_ascii=False), file=sys.stderr) return 2 payload = { "dry_run": args.dry_run, "applied_count": sum(1 for item in results if item["status"] == "applied" and item["updated"]), "results": results, } if args.out: args.out.parent.mkdir(parents=True, exist_ok=True) args.out.write_text(json.dumps(payload, ensure_ascii=False, indent=2, sort_keys=True) + "\n", encoding="utf-8") print(json.dumps(payload, ensure_ascii=False, indent=2, sort_keys=True)) return 0 if __name__ == "__main__": raise SystemExit(main())scripts/artifact_nondegradation_gate.py46 KBdec9ad172a56upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/attest_release_evidence.py3.7 KB6e5e3d2894e7upstream ↗
#!/usr/bin/env python3 """Validate and sign one fresh release-evaluation declaration. The private key is supplied by a controlled caller and is never printed or persisted by this module. Fresh evidence binds a release-subject commit; the current HEAD may differ only by the candidate's redacted evidence files and EVALUATIONS.md. """ from __future__ import annotations import argparse import json import sys from pathlib import Path from typing import Any, Sequence import evaluation_gate from evidence_signature import sign_document, verify_signed_document def _nonempty(value: Any) -> bool: return isinstance(value, str) and bool(value.strip()) def attest( root: Path, candidate_tag: str, declaration_path: Path, private_key: Path, trusted_public_key: Path, ) -> dict[str, Any]: root = root.resolve() declaration_path = declaration_path.resolve() expected_parent = (root / ".github" / "release-evidence").resolve() if declaration_path.parent != expected_parent: raise ValueError("declaration-path-outside-release-evidence") declaration = evaluation_gate.load_evaluation_artifact(declaration_path) if "signature" in declaration: raise ValueError("declaration-already-signed") problems: list[str] = [] if declaration.get("schema_version") != 2: problems.append("schema-version-invalid") if declaration.get("candidate_tag") != candidate_tag: problems.append("candidate-tag-mismatch") if declaration.get("mode") != "fresh": problems.append("mode-not-fresh") for field in ("engine", "model", "generated_at_utc"): if not _nonempty(declaration.get(field)): problems.append(f"{field}-missing") fresh_problems, _ = evaluation_gate.verify_fresh( root, candidate_tag, declaration, declaration_path.parent, candidate_ref="HEAD", ) problems.extend(fresh_problems) if problems: raise ValueError("fresh-evidence-invalid:" + ";".join(problems)) signed = sign_document( declaration, private_key, evaluation_gate.TRUSTED_SIGNER_KEY_ID, ) verify_signed_document( signed, trusted_public_key, expected_key_id=evaluation_gate.TRUSTED_SIGNER_KEY_ID, ) return signed def main(argv: Sequence[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("root", type=Path) parser.add_argument("--candidate-tag", required=True) parser.add_argument("--declaration", type=Path, required=True) parser.add_argument("--private-key", type=Path, required=True) parser.add_argument("--trusted-public-key", type=Path, required=True) parser.add_argument("--output", type=Path, required=True) args = parser.parse_args(argv) try: signed = attest( args.root, args.candidate_tag, args.declaration, args.private_key, args.trusted_public_key, ) args.output.parent.mkdir(parents=True, exist_ok=True) args.output.write_text( json.dumps(signed, ensure_ascii=False, indent=2, sort_keys=True) + "\n", encoding="utf-8", ) except (OSError, TypeError, ValueError, json.JSONDecodeError) as exc: print(f"release evidence signing blocked: {exc}", file=sys.stderr) return 1 print( json.dumps( { "candidate_tag": args.candidate_tag, "output": str(args.output), "signer_key_id": evaluation_gate.TRUSTED_SIGNER_KEY_ID, }, sort_keys=True, ) ) return 0 if __name__ == "__main__": raise SystemExit(main())scripts/audit_source_inventory.py9.1 KB36f23d6925b4upstream ↗
#!/usr/bin/env python3 """Inventory a source snapshot and reject unsupported audit provenance claims.""" from __future__ import annotations import argparse import hashlib import json import os import re import subprocess from pathlib import Path from typing import Any, Optional, Sequence EXCLUDED_DIRECTORIES = frozenset({".git", ".planning", ".venv", "node_modules", "__pycache__"}) MAX_FILES = 10000 MAX_BYTES = 512 * 1024 * 1024 TOTAL_COUNT = re.compile( r"(?:\ball\s+|\btotal\s+|\bsnapshot\s*\(\s*|共\s*)" r"(\d+)\s*(?:source\s+)?(?:files\b|个文件)", re.IGNORECASE, ) COMMIT_CLAIM = re.compile(r"\bcommit\s+`?([0-9a-f]{7,40})\b", re.IGNORECASE) CODE_SUFFIXES = frozenset({".js", ".ts", ".wxs"}) MAX_SCAN_BYTES = 1024 * 1024 MAX_TARGETS_PER_CATEGORY_FILE = 12 HOTSPOT_PATTERNS = ( ("active-resource", re.compile(r"\b(?:setInterval|setTimeout|addEventListener|wx\.on\w+)\s*\(")), ("numeric-guard", re.compile(r"\btypeof\b.{0,100}?[=!]==?\s*['\"]number['\"]", re.DOTALL)), ("length-modulo", re.compile(r"%\s*(?:[A-Za-z_$][\w$]*\.)*[A-Za-z_$][\w$]*\.length")), ) REVIEW_CHALLENGES = { "active-resource": "Trace create, pause, resume, and dispose across onLoad/onShow/onHide/onShow/onUnload; does a leave-and-return restart the resource?", "numeric-guard": "Substitute NaN, Infinity, -Infinity, a fraction, and an out-of-range number into each read/write guard; calculate the branch result and downstream use.", "length-modulo": "For the same input calculate the result with collection lengths N and N+1, then advance N steps; test any stability or no-repeat claim.", "local-cloud-authority": "When local cache is absent or stale, or cloud is unavailable, which source authorizes the state on a second device and how does it converge?", "multiwrite-atomicity": "Interrupt or retry between the writes and consider concurrent requests; identify whether a transaction, unique constraint, or idempotent winner closes the gap.", "error-success-boundary": "Follow the error handler to the persisted and user-visible state; does a local-only fallback claim server-confirmed success?", } def _hotspots(root: Path, files: list[str]) -> tuple[list[dict[str, Any]], list[str]]: targets: list[dict[str, Any]] = [] skipped: list[str] = [] seen: set[tuple[str, str, int]] = set() def add_target(category: str, relative: str, source: str, offset: int) -> None: line = source.count("\n", 0, offset) + 1 key = (category, relative, line) if key not in seen: seen.add(key) targets.append({"category": category, "path": relative, "line": line}) for relative in files: path = root / relative if path.suffix not in CODE_SUFFIXES: continue if path.stat().st_size > MAX_SCAN_BYTES: skipped.append(relative) continue source = path.read_text(encoding="utf-8", errors="replace") for category, pattern in HOTSPOT_PATTERNS: matches = list(pattern.finditer(source)) for match in matches[:MAX_TARGETS_PER_CATEGORY_FILE]: add_target(category, relative, source, match.start()) if len(matches) > MAX_TARGETS_PER_CATEGORY_FILE: skipped.append(f"{relative}:{category}:truncated") local_read = source.find("wx.getStorageSync") if local_read >= 0 and "wx.cloud.callFunction" in source: add_target("local-cloud-authority", relative, source, local_read) cloud_add = re.search(r"\.add\s*\(", source) if "db.collection" in source and cloud_add and re.search(r"\.(?:update|remove)\s*\(", source): add_target("multiwrite-atomicity", relative, source, cloud_add.start()) handler = re.search(r"\bcatch\s*(?:\(|\{)", source) if handler and re.search(r"localOnly|status\s*:\s*['\"]confirmed['\"]", source): add_target("error-success-boundary", relative, source, handler.start()) targets.sort(key=lambda item: (item["category"], item["path"], item["line"])) return targets, skipped def _git_commit(root: Path) -> str: marker = root / ".git" if marker.is_symlink(): raise ValueError("git-marker-symlink") if not marker.exists(): return "unknown" try: top = subprocess.run( ["git", "-C", str(root), "rev-parse", "--show-toplevel"], check=True, capture_output=True, text=True, timeout=10, ).stdout.strip() if Path(top).resolve() != root: return "unknown" commit = subprocess.run( ["git", "-C", str(root), "rev-parse", "--verify", "HEAD"], check=True, capture_output=True, text=True, timeout=10, ).stdout.strip() return commit if re.fullmatch(r"[0-9a-f]{40}", commit) else "unknown" except (OSError, subprocess.CalledProcessError, subprocess.TimeoutExpired): return "unknown" def inventory(root: Path) -> dict[str, Any]: root = root.resolve(strict=True) if not root.is_dir(): raise ValueError("root-not-directory") files: list[str] = [] total_bytes = 0 def raise_walk_error(error: OSError) -> None: raise error for directory, names, filenames in os.walk(root, followlinks=False, onerror=raise_walk_error): base = Path(directory) for name in names: path = base / name if name not in EXCLUDED_DIRECTORIES and path.is_symlink(): raise ValueError("source-symlink:" + path.relative_to(root).as_posix()) names[:] = sorted(name for name in names if name not in EXCLUDED_DIRECTORIES) for name in sorted(filenames): if name in EXCLUDED_DIRECTORIES: continue path = base / name relative = path.relative_to(root).as_posix() if path.is_symlink() or not path.is_file(): raise ValueError("source-nonregular:" + relative) files.append(relative) if len(files) > MAX_FILES: raise ValueError("source-file-limit") size = path.stat().st_size total_bytes += size if total_bytes > MAX_BYTES: raise ValueError("source-byte-limit") files.sort() tree = hashlib.sha256() for relative in files: path = root / relative if path.is_symlink() or not path.is_file(): raise ValueError("source-changed:" + relative) digest = hashlib.sha256() with path.open("rb") as stream: for chunk in iter(lambda: stream.read(1024 * 1024), b""): digest.update(chunk) tree.update(relative.encode("utf-8") + b"\0" + digest.digest()) targets, skipped = _hotspots(root, files) active_categories = sorted({target["category"] for target in targets}) return { "schema_version": 1, "file_count": len(files), "files": files, "tree_sha256": tree.hexdigest(), "git_commit": _git_commit(root), "excluded_directories": sorted(EXCLUDED_DIRECTORIES), "review_targets": targets, "review_challenges": {category: REVIEW_CHALLENGES[category] for category in active_categories}, "hotspot_scan_skipped": skipped, } def check_report(text: str, facts: dict[str, Any], *, check_challenges: bool = False) -> list[str]: """Reject provenance contradictions and optional missing boundary mentions, not reasoning quality.""" errors: list[str] = [] count = facts["file_count"] for match in TOTAL_COUNT.finditer(text): if int(match.group(1)) != count: errors.append(f"file-count-mismatch:{match.group(1)}!={count}") commit = facts["git_commit"] for match in COMMIT_CLAIM.finditer(text): claimed = match.group(1).lower() if commit == "unknown" or not commit.startswith(claimed): errors.append("unsupported-commit-claim") if check_challenges and "numeric-guard" in facts["review_challenges"]: if not re.search(r"\bNaN\b|非数", text, re.IGNORECASE): errors.append("missing-numeric-boundary:NaN") return sorted(set(errors)) def main(argv: Optional[Sequence[str]] = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("root", type=Path) parser.add_argument("--report", type=Path, help="Optional audit report to check") parser.add_argument("--check-challenges", action="store_true", help="Lint explicit boundary coverage; does not prove reasoning") args = parser.parse_args(argv) try: facts = inventory(args.root) if args.check_challenges and not args.report: parser.error("--check-challenges requires --report") errors = check_report( args.report.read_text(encoding="utf-8"), facts, check_challenges=args.check_challenges, ) if args.report else [] except (OSError, UnicodeError, ValueError) as exc: print(json.dumps({"valid": False, "errors": [str(exc)]}, ensure_ascii=False)) return 2 print(json.dumps({"valid": not errors, "inventory": facts, "errors": errors}, ensure_ascii=False)) return 0 if not errors else 1 if __name__ == "__main__": raise SystemExit(main())scripts/capability_doctor.py7.4 KBadfb4c271e1eupstream ↗
#!/usr/bin/env python3 """Inspect an anonymous mini-program project without executing or modifying it.""" from __future__ import annotations import argparse import json import os import re import sys from pathlib import Path from typing import Any, Sequence MAX_CONFIG_BYTES = 1024 * 1024 KNOWN_CAPABILITIES = { "jest", "miniprogram-simulate", "mpflow", "playwright", "vitest", } TARGET_PLATFORM_ALIASES = { "mp-weixin": "wechat", "weapp": "wechat", "mp-alipay": "alipay", "alipay": "alipay", "mp-toutiao": "douyin", "mp-douyin": "douyin", "tt": "douyin", } def resolve_target_platforms(slugs: set[str], warnings: list[str]) -> list[str]: """Map raw build-target slugs to canonical platform names; unknown slugs warn.""" targets: set[str] = set() for slug in sorted(slugs): mapped = TARGET_PLATFORM_ALIASES.get(slug) if mapped: targets.add(mapped) else: warnings.append(f"unrecognized-target:{slug}") return sorted(targets) def read_json_object(path: Path, warnings: list[str]) -> dict[str, Any]: """Read one known JSON file within a fixed size budget.""" if not path.is_file(): return {} try: if path.stat().st_size > MAX_CONFIG_BYTES: warnings.append(f"oversized-config:{path.name}") return {} value = json.loads(path.read_text(encoding="utf-8")) except (OSError, UnicodeError, json.JSONDecodeError): warnings.append(f"unreadable-config:{path.name}") return {} if not isinstance(value, dict): warnings.append(f"non-object-config:{path.name}") return {} return value def dependency_names(package: dict[str, Any]) -> set[str]: names: set[str] = set() for key in ("dependencies", "devDependencies", "optionalDependencies"): section = package.get(key, {}) if isinstance(section, dict): names.update(item for item in section if isinstance(item, str)) return names def detect_framework(root: Path, package: dict[str, Any], warnings: list[str]) -> tuple[str, list[str]]: deps = dependency_names(package) scripts = package.get("scripts", {}) if isinstance(package.get("scripts", {}), dict) else {} script_names = {item for item in scripts if isinstance(item, str)} try: root_entries = {item.name for item in root.iterdir() if item.is_file()} except OSError: warnings.append("unreadable-root-directory") root_entries = set() taro = any(item.startswith("@tarojs/") for item in deps) or (root / "config/index.js").is_file() or ( root / "config/index.ts" ).is_file() script_values = [scripts[name] for name in script_names if isinstance(scripts.get(name), str)] uni_app = ( any(item.startswith("@dcloudio/") for item in deps) or ("manifest.json" in root_entries and (root / "pages.json").is_file()) # A script *name* like "dev:mp-weixin" is a Taro convention too, so the # uni-app signal must come from the script *value* invoking the uni CLI. # Word-boundary matching: a bare "uni" substring also lives inside # "unit", "community", "run-integration" and would misclassify them. or any(re.search(r"(?:^|\s|/|=)uni(?:\s|$)", value) for value in script_values) ) native = (root / "app.json").is_file() or (root / "project.config.json").is_file() signals = [name for name, present in (("taro", taro), ("uni-app", uni_app), ("native-wechat", native)) if present] if taro and uni_app: warnings.append("multiple-framework-signals") return "ambiguous", signals if taro: return "taro", signals if uni_app: return "uni-app", signals if native: return "native-wechat", signals return "unknown", [] def inspect_project(root: Path, devtools_cli: Path | None = None) -> dict[str, object]: """Return only redacted facts; never execute repository commands.""" warnings: list[str] = [] package = read_json_object(root / "package.json", warnings) app = read_json_object(root / "app.json", warnings) project = read_json_object(root / "project.config.json", warnings) manifest = read_json_object(root / "manifest.json", warnings) pages = read_json_object(root / "pages.json", warnings) framework, signals = detect_framework(root, package, warnings) scripts = package.get("scripts", {}) if isinstance(package.get("scripts", {}), dict) else {} script_names = sorted(item for item in scripts if isinstance(item, str)) deps = dependency_names(package) capabilities = sorted(KNOWN_CAPABILITIES.intersection(deps)) has_subpackages = any( isinstance(config.get(key), list) and bool(config.get(key)) for config in (app, pages) for key in ("subpackages", "subPackages") ) output_hints = [] for name in ("dist", "unpackage", "miniprogram", "src"): if (root / name).is_dir(): output_hints.append(name) constraints = [ "read-only-static-inspection", "no-project-command-executed", "no-dependency-installed", "simulator-not-device-evidence", ] if framework in {"unknown", "ambiguous"}: constraints.append("manual-confirmation-required") target_slugs: set[str] = set() if isinstance(manifest, dict): target_slugs.update( key for key in manifest if isinstance(key, str) and key.startswith("mp-") and isinstance(manifest.get(key), dict) ) if framework == "taro": target_slugs.update( match.group(1) for name in script_names if (match := re.match(r"^(?:dev|build):([A-Za-z0-9_-]+)$", name)) ) if framework == "native-wechat": target_slugs.add("mp-weixin") target_platforms = resolve_target_platforms(target_slugs, warnings) return { "schema_version": 1, "framework": framework, "framework_signals": signals, "target_platforms": target_platforms, "facts": { "has_package_json": bool(package), "has_app_json": bool(app), "has_project_config": bool(project), "has_manifest_mp_weixin": isinstance(manifest.get("mp-weixin"), dict), "has_pages_json": bool(pages), "has_subpackages": has_subpackages, "devtools_cli_supplied": devtools_cli is not None, "devtools_cli_available": bool(devtools_cli and devtools_cli.is_file() and os.access(devtools_cli, os.X_OK)), }, "script_names": script_names, "capabilities": capabilities, "output_directory_hints": output_hints, "constraints": constraints, "warnings": sorted(set(warnings)), } def main(argv: Sequence[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("project", type=Path, help="Project root to inspect read-only") parser.add_argument("--devtools-cli", type=Path, help="Optional known DevTools CLI path; only existence is checked") args = parser.parse_args(argv) root = args.project.resolve() if not root.is_dir(): print(json.dumps({"valid": False, "error": "project-root-not-directory"})) return 2 print(json.dumps(inspect_project(root, args.devtools_cli), ensure_ascii=False, indent=2, sort_keys=True)) return 0 if __name__ == "__main__": raise SystemExit(main())scripts/check_foundation_equivalence.py3.4 KBf780d4cad59aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/check_i18n_readme_structure.py7.8 KBbd756384e118upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/drift_audit.py11 KB10d38e1f3f8aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/drift_watch.py16 KB12a3f14898bdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/evaluation_gate.py26 KB405f4eca1488upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/evidence_signature.py4.2 KB220b65294d6cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/export_public_package.py5.4 KBac2b5823dc69upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/platform_drift.py23 KB7a1b249a7cc7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/release_gate.sh12 KB27230e04f5eeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/release_recommendation.py30 KBafc125c8046eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/review_drift_proposal.py21 KB09ca32a7abdcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/scan_sensitive_content.py11 KB09e25e46aafbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/summarize_evaluations.py9.7 KB323143c541c6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/validate_suite.py26 KB4bafe521cdbeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
scripts/verify_public_package.py8.7 KBac910630dd43upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
references/routing-and-state-machine.md5.9 KBd59ac6c6dbbcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
assets/readme-cover-2000x849-v2.webp54 KBc4dfb0411d8aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
assets/readme-cover.webp69 KB8984553ee96cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
assets/readme-promo.mp44.4 MBdf13cb560f03upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
assets/wordpet-origin-case.png749 KB5fa6b0c990c9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/dependabot.yml195 B3ae2e9351dccupstream ↗
version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" commit-message: prefix: "chore" labels: - "dependencies".github/ISSUE_TEMPLATE/bug_report.yml1.9 KB2f1046b2b0acupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/ISSUE_TEMPLATE/config.yml27 B0086358db1ebupstream ↗
blank_issues_enabled: true.github/ISSUE_TEMPLATE/platform_drift.yml1.7 KB4cac23ac936eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/ISSUE_TEMPLATE/skill_proposal.yml1.6 KB678f5ee88376upstream ↗
name: Skill proposal description: Suggest a new capability or platform adaptation for the suite. title: "[Skill proposal]: " labels: ["enhancement"] body: - type: markdown attributes: value: | Use this template for new mini-program engineering capabilities, platform evidence layers, or reusable workflow improvements. - type: textarea id: scenario attributes: label: Scenario description: What mini-program development situation should this help with? placeholder: "Example: judging whether an Alipay mini program is ready for upload without confusing local build success with platform evidence." validations: required: true - type: textarea id: users attributes: label: Who benefits? description: Product owner, first-time builder, maintainer, reviewer, release operator, etc. - type: textarea id: evidence attributes: label: Evidence sources description: What official docs, fixtures, screenshots, logs, or test cases would prove this capability? - type: textarea id: boundaries attributes: label: Boundaries and non-goals description: What should the skill not do automatically? - type: checkboxes id: fit attributes: label: Fit check options: - label: This proposal is about mini-program engineering or a clearly reusable evidence-first engineering rule. required: true - label: This proposal does not require publishing private source code, AppIDs, cloud resources, or business data. required: true.github/release-evidence/trusted-signers.pem625 B2521a25c11ccupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.1.10.json5.0 KB2d64035a82a3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.1.11.json5.1 KB7d01dd5a7f74upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.1.12.json5.1 KBc58b2284ac3aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.1.13.json5.1 KB1f5fbe90be3fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-artifact-nondegradation.json624 Be6a1e1230657upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-behavior-development.json614 B96c614b53318upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-behavior-holdout.json611 B3579f7f1475aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-final-signature.json614 Bb6dbca4a6549upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-independent-judgment.json614 B54a094917583upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-methodology-development.json617 B8d2f1fa90901upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-methodology-held-out.json614 B70fa753bc896upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-routing-dev.json613 B9345a810c950upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0-routing-held-out.json610 Bea7979097899upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.2.0.json2.7 KBb7b1868987c5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-artifact-nondegradation.json749 B3397915fe769upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-behavior-dev.json745 B3a00e14db7cfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-behavior-holdout.json739 B1ed65e573c85upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-final-signature.json609 B051abd97c04fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-independent-judgment.json614 B13543e087578upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-methodology-dev.json748 B203a8a8b44b3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-methodology-holdout.json742 B2a296eb89ad4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-routing-dev.json687 B27cce0d2ba03upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0-routing-holdout.json684 B72c4e02f4c45upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.3.0.json2.7 KBb5445867e01bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-artifact-nondegradation.json749 B99eef295f132upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-behavior-dev.json742 B059ad4afd034upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-behavior-holdout.json739 Bfdddbe1970c9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-final-signature.json609 Be54297f04cdfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-independent-judgment.json614 B6bdbd321c248upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-methodology-dev.json760 B16dc3d19a35aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-methodology-holdout.json742 B895f3b78900fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-routing-dev.json687 B359934df5d16upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0-routing-holdout.json684 B32d0f76203bfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.4.0.json2.7 KB2d1cdeaaab7aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-artifact-nondegradation.json779 B0689592cbb34upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-behavior-dev.json742 B645089800dadupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-behavior-holdout.json739 B63c03fc43a63upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-final-signature.json639 B1eca83c61253upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-independent-judgment.json644 B7c302899c6f8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-methodology-dev.json748 B5092d0425367upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-methodology-holdout.json742 Bce3f334b9607upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-routing-dev.json687 B0d2b21287049upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0-routing-holdout.json684 B0aad6c4d9509upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.5.0.json2.8 KB6cc8c2e5babcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-artifact-nondegradation.json977 B64cc258e9dbaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-behavior-dev.json840 B88c7c0720e51upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-behavior-holdout.json837 Bc15cbdb3e1f8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-final-signature.json698 Bb6c11f17db18upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-independent-judgment.json703 Bb8d5ce8f3059upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-methodology-dev.json911 Bde314d7aec6cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-methodology-holdout.json914 B1f2e5b84290dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-routing-dev.json785 Bdbe8c297f528upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0-routing-holdout.json782 B8c807eeb5e57upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.6.0.json3.2 KB39730912af67upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-artifact-nondegradation.json982 Bb242004a3544upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-behavior-dev.json870 B1d180929db99upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-behavior-holdout.json867 B3c647c924254upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-final-signature.json737 B7dc6fa50d494upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-independent-judgment.json742 B2706c58762b1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-methodology-dev.json873 B09cf62529d14upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-methodology-holdout.json870 B9471ad3400deupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-routing-dev.json815 B00a21af2f6ccupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0-routing-holdout.json812 B8999d43f1530upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/release-evidence/v3.7.0.json3.0 KB0aba94a4c203upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/workflows/ci.yml14 KBf99985df77baupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/workflows/drift-watch.yml8.9 KB472e48162483upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/workflows/release.yml8.7 KB30a3423acf36upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.github/workflows/sign-release-evidence.yml2.9 KB01df2c9983c4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
.gitignore157 Be18fb508537bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
agents/openai.yaml312 B032c3f5e8641upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
CHANGELOG.md62 KB86c0724129d3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
COMPATIBILITY.md1.6 KBf50dd8ccd3d1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
CONTRIBUTING.md1.8 KB4e7db02ed333upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
EVALUATIONS.md58 KBc28d2efc6bfcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/guardrails/decision-and-confirmation-rules.md918 Bc437747f813dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/guardrails/engineering-guardrails.md3.0 KBe49ef6ed42ffupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/guardrails/evidence-status-model.md2.9 KB97fe9468c2d4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/guardrails/redaction-policy.md3.1 KBb495eac321d2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/templates/implementation-plan.md560 Bd0638030b7a3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/templates/project-intake.md893 B5b35502d92a8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/templates/release-checklist.md982 Be8f291735e43upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/templates/verification-report.md595 B17d965172948upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
foundation/VALIDATE.md1.5 KB15088e1938f0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
install.sh8.6 KBb5d0de9ca5d2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
LICENSE1.0 KB7d2ccb658d41upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/alipay/facts.md2.1 KB8f051d5b2a77upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/alipay/rule-map.json1.5 KB102e4a0d0409upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/douyin/facts.md2.1 KBf4f284fe4d0dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/douyin/rule-map.json1.7 KB7d809928be9aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/commerce-and-cloud-contracts.md6.7 KB5773466f139dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/facts.md5.2 KB4f04da0fa765upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/platform-evidence-layers.md2.1 KBec9f0c952cd0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/privacy-permission-matrix.md2.7 KBf6bff460ba7bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/rule-map.json2.1 KBd1110163ddfdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
platforms/wechat/wechat-platform-checklist.md1.4 KB22d7ea015fecupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.en.md23 KB1111b32eb9d8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.id.md18 KB0b963bffaaa8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.ja.md19 KB9bae66a84fa8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.th.md30 KBfb5ce0af4d51upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
README.zh-Hant.md15 KBecdcfc9d2eaeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
SECURITY.md2.1 KB3f9cd412f468upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/architecture-layers.md2.5 KB72327c6a68cfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/decision-and-confirmation-rules.md858 B8641b9227eb7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/documentation-boundaries.md2.2 KBd2445ec19546upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/engineering-guardrails.md2.9 KBe56aa106129dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/evidence-status-model.md2.8 KB11e46c00deedupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/redaction-policy.md3.0 KB4bd3046592deupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/templates/implementation-plan.md500 Bdca75184e85dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/templates/project-intake.md833 Be013f32cdb27upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/templates/release-checklist.md922 Bae1672c6f6bfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
shared/templates/verification-report.md535 B0b7ccae3a8a2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-architecture-skill/agents/openai.yaml295 Bc88c04514024upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-architecture-skill/assets/architecture-decision-record.md1.9 KB9236d1681588upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-architecture-skill/references/architecture-workflow.md3.4 KB0c4573ac9860upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-architecture-skill/references/cloud-state-and-write-contracts.md14 KBf0873f880285upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-debugging-skill/agents/openai.yaml292 B0d4461d4fda6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-debugging-skill/assets/debugging-report.md1.2 KB59d43a091ee7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-debugging-skill/references/debugging-workflow.md4.9 KBb762c1ae5901upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-debugging-skill/references/interruption-recovery-protocol.md3.4 KB6adfd4516c1cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-implementation-skill/agents/openai.yaml300 B28b4a8f2dc49upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-implementation-skill/assets/implementation-handoff.md1.3 KBe19379eaaae0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-implementation-skill/references/cloud-asset-delivery-workflow.md2.7 KB4658240c20b2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-implementation-skill/references/implementation-workflow.md8.2 KBfa506b3d72e7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-product-spec-skill/agents/openai.yaml283 B5187cc8e3c73upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-product-spec-skill/assets/product-specification.md1.5 KBa3eb98ee22efupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-product-spec-skill/references/specification-workflow.md5.2 KBc9c1c9432200upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-project-intake-skill/agents/openai.yaml288 B877d21647edaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-project-intake-skill/assets/project-fact-map.md1.5 KB8ffe2edd948fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-project-intake-skill/references/intake-workflow.md9.5 KB25b0f2c5359dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-project-intake-skill/references/relocation-and-pivot-audit.md2.1 KBba5375124b07upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-release-skill/agents/openai.yaml287 Bad4c7036c51dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-release-skill/assets/release-readiness-record.md2.2 KB1519008d5f0fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-release-skill/references/cloud-release-operations.md3.9 KB2d732210b1dbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-release-skill/references/release-governance-workflow.md4.3 KB23d15d21d193upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/agents/openai.yaml295 B6ff0d8ca0c82upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/assets/accessibility-matrix.md1.8 KB35e1b3fb99daupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/assets/asset-lineage-record.md2.4 KB1c5e8ade4127upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/assets/ui-device-evidence-record.md1.6 KB1e89a96cac92upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/references/runtime-state-and-layout-contracts.md10 KB44f2dd727d38upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-ui-device-skill/references/ui-device-workflow.md7.3 KB4ffff05430e2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/agents/openai.yaml295 Bb3c5f155a49eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/assets/quality-evidence-matrix.md2.3 KB7b0b1969f5b3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/assets/verification-evidence-report.md2.2 KB10f58b9f64a7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/references/dimensional-quality-contract.md1.5 KB9582dd5b1e9bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/references/evidence-admissibility.md6.4 KB06426d831909upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/references/source-audit-workflow.md6.7 KBabf4e61f0869upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/references/verification-capability-matrix.md2.6 KB4e0ed3f08664upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/mini-program-verification-skill/references/verification-workflow.md14 KB7eee191306feupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
skills/wechat-mini-program-platform-skill/agents/openai.yaml286 Bca3ab04d0e8fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/behavior-development.json1.6 KBcfb8e25c3295upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/behavior-held-out.json1.8 KBa6465697c9a2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/behavior-v2-held-out.json1.9 KBc41ac7bc014dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/behavior-v3-held-out.json2.1 KBdf70828025eaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/final_release_signer.py8.5 KB061031dffa4cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/independent_methodology_signer.py3.3 KBe4c331a0c2b3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/independent_signer.py3.3 KB2354528b1f66upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/judge_behavior.py5.8 KBae1dd845d5a3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/judge_final_release.py3.5 KB00b913390cf1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/methodology-development.json2.1 KB8a7199367896upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/methodology-held-out.json2.2 KB3b380c810370upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/methodology-v2-held-out.json2.3 KB34d4e03e3db3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/methodology-v3-held-out.json2.5 KB24539c4e57feupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/methodology-v4-held-out.json2.3 KB073188d0fa7fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/routing-development.json7.3 KBac057d64b6bfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/routing-held-out.json7.5 KB019b847491d1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/run_evaluations.py24 KBbed29901f10bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/run_upgrade02.py8.9 KB594ba7a92a49upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/evals/upgrade02-scenarios.json13 KBd4951dec0529upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_audit_remediation.py67 KB1f45208fec59upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_audit_source_inventory.py7.3 KB2c47e397e69cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_first_batch.py5.5 KB0c8423948ba0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_fourth_batch.py7.4 KB74070a93806aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_methodology_upgrade.py9.7 KB40c2d3335f32upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_phase5_freshness_tooling.py52 KBfac5fff76dc5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_release_gate.py19 KB048dfab71cc8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_release_quality_boundaries.py25 KBc2d4c1351079upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_reliability_upgrade.py36 KB315c8499d3aeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_scan_hash_context.py1.8 KBc96fccd8fd53upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_second_batch.py7.0 KBc715d79e52aaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_skill_evaluation.py6.5 KBc3a523149c85upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_step6_quality_adapters.py10 KB7b400c22f23bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_step7_distribution.py14 KB124bc828ae9aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_step8_release.py11 KB2fa9ef7461afupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_third_batch.py6.0 KB203ed106e051upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_transport_recovery.py18 KB04a47e39fffeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_upgrade02_contracts.py11 KB2898cad4cb59upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_validated_skill_upgrade.py25 KBe362402a9c20upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_waiting_transport.py14 KB6f6ea7052c70upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
tests/test_workflow_injection_guards.py3.9 KB786fc3b20ef9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
VERSION6 B7c69a55dbb18upstream ↗
3.7.0
Plain-text copy, no login: /skill-bundles/nocodemrli-mini-program-engineering-skill-suite.md