来源信息
- 仓库
- bronc-x/lotus
- 最近来源活动
- 2026年9月14日 05:31
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 23
- Forks
- 1
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
文件资源管理器
2 个文件正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- test-driven-development
- description
- 用户或项目明确要求测试先行时,执行红绿重构。
# Test-driven development
Use this skill only when test-first work is requested or mandated by the project. Do not force it onto documentation, configuration-only changes, exploratory spikes, or work whose observable behavior cannot yet be specified.
For choosing test level, seams, and boundaries, read [references/test-design.md](references/test-design.md). Ordinary red-green-refactor work can proceed from the contract below.
## Contract
1. Define one observable behavior and the smallest test that proves it.
2. Run the test and confirm it fails for the expected reason. A syntax, fixture, or environment failure is not a valid red state.
3. Implement the smallest production change that makes the behavior pass.
4. Run the focused test, then relevant neighboring checks.
5. Refactor only while tests remain green.
Do not weaken assertions, encode the implementation instead of behavior, edit unrelated tests, or treat flaky infrastructure as a product failure. If the current design has no testable seam, create the smallest useful seam without broad restructuring.
Completion means the new test failed for the intended reason, the implementation passed it, relevant regression checks pass, and failures caused by the change were fixed and rechecked.
在 GitHub 查看