better-test SKILL.md skillA
better-test from suge8/friedbun is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add suge8/friedbun/better-test@git:20261009.443953aPins git:20261009.443953a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- suge8/friedbun
- Path
skills/development/better-test/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261009.443953a, committed Oct 9, 2026
- First version recorded
- Oct 8, 2026
- Size
- 8,037 bytes
- Repository stars
- 12
- License
- MIT
验证改动、写测试、审查或清理测试时使用:验证方法、什么测试值得留、端到端测试写法、DELETE/REWRITE/KEEP 判决。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Better Test 测试是负债。agent 自己写的单元、集成测试只复述实现:测试和代码出自同一份理解,不比实现更准;实测不提高正确率,只增加时间和费用。持久测试只有两种来源:用户给出或认可的用例,和覆盖关键用户流程的端到端测试。 只走一个分支: 1. 验证一次改动 → **验证**。 2. 用户要求测试,或工单给了用例 → **写测试**。 3. 审计或清理既有测试 → **清理与审计**。 ## 验证 按接近用户真实路径的顺序选最短方法,证据来自本次执行: 1. 项目已有测试、类型检查、构建中受影响的部分,或直接运行改动的命令; 2. **better-browser-use**:页面、DOM、截图、console、network; 3. curl 或 CLI:直接调用并核对响应内容; 4. **better-computer-use**:桌面应用或真机; 5. 都不可行:给用户"打开哪里 → 做什么 → 应看到什么"的最短清单,标注未验证。 修 bug 先按用户描述实际复现症状,修完走同一路径确认消失。同一路径第二次需要人工取证时,向用户提议补一条端到端测试。 ## 价值门 判既有测试和写新测试共用这一道门,六条全部成立才留: 1. **有来源**:保护的行为来自用户的需求、用例、bug 报告、公开合同或规格示例,不是 agent 对实现的理解。 2. **失败有意义**:一种可信回归会让它失败,且失败对应调用方或用户可见的问题。 3. **期望值独立**:期望值来自已知字面值、规格或示例,有可能与实现结果不一致。 4. **稳定接缝**:经公开接口或稳定 seam 观察,不依赖只为测试存在的生产导出、flag、wrapper 或注入点。 5. **抗重构**:行为不变的内部重构、无关文案或布局调整后仍然通过。 6. **唯一 owner**:该合同只在最低的可靠边界证明一次,且没有被现有测试、类型系统、编译器或 lint 等价保证。 ## 反模式 判断时按类对照;正则或文本命中只是线索,读完测试和被测代码才下结论。 - **同义反复**:按实现的算法重算期望值;断言声明等于自身;mock 返回什么就断言什么;期望值由被测 helper 或 renderer 自己产出。 - **变更探测器**:扫源码、import、标识符或字符串;数导出、路由、元素或清单行数;快照生成的 markup、组件树或 class 串;断言私有协作者、调用次数或调用形状。 - **重复**:同一场景在它穿过的每一层都重放一遍;近乎相同的用例(合并成表驱动);已被类型或编译保证的检查。 - **空洞**:没有断言或只证明"没崩";只测 getter、常量或框架能渲染。 …
Read the whole file at its exact version.
How to install
mdr add suge8/friedbun/better-test@sha256:87e0fcda93b9e28cThe line at the top of this page pins the label git:20261009.443953a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_zj3t2wpojhs5k7j3)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Oct 8, 2026 and Oct 9, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261009.443953a latest | 2026-10-09 | 443953a | 8,037 B | A | view · diff |
| git:20261008.c9566bf | 2026-10-08 | c9566bf | 8,838 B | A | view · diff |
| git:20261008.3911d61 | 2026-10-08 | 3911d61 | 8,009 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8037 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
suge8/friedbun · 12 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_zj3t2wpojhs5k7j3 GET https://markdownregistry.com/api/v1/resolve?ref=suge8/friedbun/better-test GET https://markdownregistry.com/api/v1/blob/87e0fcda93b9e28c04fe5c439b3ea999fa086de4e0797956285914f3a66c786e
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.