Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements frozen research plans as leak-free, reproducible, test-first experiment code with audit logs.
Use this skill ↓41% 73%+32 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 9 of 22 without it.
While coding matrix row EXP-04, I noticed that changing the learning rate from the frozen 0.001 config to 0.05 makes the model converge much faster. Should I update `configs/experiment.schema.json` default learning rate to 0.05?
Requires returning minimal reproduction to research-plan for approval when plans prove infeasible
3 of 3 safety checks passed
用途:写实现代码前自检。任何一条命中 = 停手,删掉先写的代码,从失败测试重来。 铁律:
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST。违反字面 = 违反精神,没有"就这一次"。 适用:新功能、改 bug、重构、行为变更。例外(须问人):一次性原型、生成代码、配置文件。 出处对标 obra/superpowers test-driven-development(已 curl 200 核验),本表为科研代码场景的加强与本地化。
| 借口 | 现实反驳 |
|---|---|
| "太简单了不用测" | 简单代码也会坏。一个测试 30 秒。 |
| "我待会儿补测试" | 后补的测试立刻就过,证明不了任何事——可能测错对象、测了实现而非行为、漏了你忘掉的边界。 |
| "后补测试能达到同样目的" | 不能。后补回答"它做了什么",先写回答"它应该做什么"。后补被你的实现带偏,只验你记得的边界,不发现新边界。 |
| "已经手动测过了" | 手动是 ad-hoc:无记录、不能重跑、改代码后没人重测、压力下必漏。自动化测试每次都一样地系统跑。 |
| "删掉 X 小时的代码太浪费" | 沉没成本谬误。时间已花掉。真正的浪费是留着你不敢信的代码——没有真测试的"能跑代码"就是技术债。 |
| "留作参考,先写测试" | 你一定会去抄它适配它,那就是 test-after。删means删,从测试新写。 |
| "得先探索一下" | 可以。探索完整段扔掉,再用 TDD 从头来。探索产物不进生产。 |
| "测试很难写" | 听测试的话:难测 = 难用。是接口/设计该简化,不是测试该跳过。 |
| "TDD 拖慢我" | TDD 比事后调试快。务实 = 先写测试,少在生产里 debug。 |
| "现有代码本来就没测试" | 你正在改它,就给它补测试。 |
| "时间紧/老板要现在就要" | 系统化比瞎试快。 |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.