$npx -y skills add woodfishhhh/EZ_math_model --skill verification-before-completionUse before EZ_math_model declares quality_audit, packaging, or final delivery complete, especially when pass/fail claims must be backed by files, commands, counts, or concrete evidence.
| 1 | # verification-before-completion — 完成前证据核验 |
| 2 | |
| 3 | ## 何时使用 |
| 4 | |
| 5 | - `pipeline 05 quality_audit`。 |
| 6 | - `pipeline 06 packaging` 前后。 |
| 7 | - 任何准备声明“完成”“通过”“已生成”的时候。 |
| 8 | |
| 9 | ## 核心要求 |
| 10 | |
| 11 | 对每条 `quality_report.json/md` 与 `export_audit.json/md` 的通过项给证据,而不是 |
| 12 | 口头判断。 |
| 13 | |
| 14 | 证据类型: |
| 15 | |
| 16 | - 文件存在与大小。 |
| 17 | - 命令 exit code 与关键输出。 |
| 18 | - grep / diff / hash 匹配。 |
| 19 | - 图表引用与实际文件一致。 |
| 20 | - 结果数值与报告表述一致。 |
| 21 | - DOCX 中 `word/media/*`、`m:oMath`、`w:tbl` 的对象计数。 |
| 22 | - PDF 是否使用 fallback、是否高保真。 |
| 23 | - `output/manifest.json`、`output.zip` 与 staging 发布证据一致。 |
| 24 | |
| 25 | ## 示例 |
| 26 | |
| 27 | ```powershell |
| 28 | Get-ChildItem workdir/.../figures/*.png |
| 29 | Select-String -Path workdir/.../paper.md -Pattern '!\\[[^\\]]*\\]\\(([^)]+)\\)' |
| 30 | python scripts/runtime/audit_quality.py --workdir runtime/... |
| 31 | python scripts/runtime/audit_export.py --workdir runtime/... --paper-output output/paper |
| 32 | ``` |
| 33 | |
| 34 | 如果证据收集失败,该项不能标为通过。 |