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.

Install it, pinned
mdr add suge8/friedbun/better-test@git:20261009.443953a

Pins 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

The exact contents, by fingerprint
mdr add suge8/friedbun/better-test@sha256:87e0fcda93b9e28c

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_zj3t2wpojhs5k7j3.svg)](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.

versioncommittedcommitsizeaudit
git:20261009.443953a latest2026-10-09 443953a 8,037 BA view · diff
git:20261008.c9566bf2026-10-08 c9566bf 8,838 BA view · diff
git:20261008.3911d612026-10-08 3911d61 8,009 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from suge8/friedbun

AGENTS.md@skills AGENTS.md file
suge8/friedbun · skills/AGENTS.md
git:20261011.f56249e · audit A · 12 stars
copywriting SKILL.md skill
suge8/friedbun · skills/creative/copywriting/SKILL.md · 撰写或优化以转化为目标的网站和产品文案:标题、Hero、CTA、价值主张、落地页、定价页、功能页和产品描述
git:20261008.80eac82 · audit A · 12 stars
gpt-image SKILL.md skill
suge8/friedbun · skills/creative/gpt-image/SKILL.md · 通过 gptimage 模型生成优美 AI 图片、海报、插图或 Logo
git:20261011.7f79f8f · audit A · 12 stars
post SKILL.md skill
suge8/friedbun · skills/creative/post/SKILL.md · 把实测数据或经验写成社媒帖:核数、按平台语言写文案、出数据图、排期发布并回查
git:20261008.9ccea24 · audit A · 12 stars
promo SKILL.md skill
suge8/friedbun · skills/creative/promo/SKILL.md · 制作项目宣传物料:Hero/OG/社媒图、商店截图、README 配图和演示 GIF/视频。根据项目现状产出到 design/promo/;应用 UI 用 ui-craft,单独 Logo 用 gpt-image。
git:20261008.662804f · audit A · 12 stars
video SKILL.md skill
suge8/friedbun · skills/creative/video/SKILL.md · 视频统一入口:把主题策划成运动优先的动画,用 Remotion 实现、配声音、检查并渲染成片,或通过 Grok/Seedance 直接生成带音轨 MP4
git:20261011.f56249e · audit A · 12 stars
architecture-audit SKILL.md skill
suge8/friedbun · skills/development/architecture-audit/SKILL.md · 架构体检:找出该合并加深的浅模块,用 eli5 图解呈现,再为选中的一项并行设计几种接口。
git:20261009.443953a · audit A · 12 stars
eli5 SKILL.md skill
suge8/friedbun · skills/development/eli5/SKILL.md · 把话题讲到没读过代码的技术读者也能准确理解,默认 HTML 图解
git:20261008.a717a7c · audit A · 12 stars
fan-out SKILL.md skill
suge8/friedbun · skills/development/fan-out/SKILL.md · 调研、审计、设计探索拆给子代理并行的低中高三档;research、grilling、architecture-audit、better-test 按档引用,用户也可直接点档位。
git:20261008.3911d61 · audit A · 12 stars
pr SKILL.md skill
suge8/friedbun · skills/development/pr/SKILL.md · 写 PR 描述时使用。
git:20261008.3911d61 · audit A · 12 stars
project-setup SKILL.md skill
suge8/friedbun · skills/development/project-setup/SKILL.md · 项目体检:新项目开工、半途补缺、开源前检查或“这个项目缺什么”。盘点文档骨架、工单约定与验证链,报告缺口,确认后补齐。
git:20261008.b610344 · audit A · 12 stars
prototype SKILL.md skill
suge8/friedbun · skills/development/prototype/SKILL.md · 构建原型 Demo 来回答设计问题。当用户想要检验状态模型或逻辑是否合理,或探索 UI 应该是什么样时使用。
git:20261008.8636f2f · audit A · 12 stars

Every file in suge8/friedbun

Browse by kind, by grade A, or by owner.