test-driven-development
推动测试驱动开发
团队可能会跳过失败测试,在没有证据证明测试验证了行为的情况下发布变更。此技能会指导 Claude、Codex 和 Claude Code 按照严格的红-绿-重构流程工作。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "test-driven-development" from https://skillstore.io/skills/dyai2025-test-driven-development.md and its manifest at https://skillstore.io/api/skills/dyai2025-test-driven-development/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“test-driven-development”。 用户要求 Codex 添加重试行为。
预期结果:
- 针对三次尝试并成功的红色阶段测试目标。
- 一个必需的测试运行检查,用于确认测试因预期原因失败。
- 最小化绿色阶段实现方向。
正在使用“test-driven-development”。 用户报告空电子邮件提交被接受。
预期结果:
一个先复现缺陷的回归测试计划,随后给出最小验证修复。
正在使用“test-driven-development”。 用户想清理重复的验证逻辑。
预期结果:
- 提醒只有在测试通过后才进行重构。
- 一份检查清单,用于确认清理后所有行为仍保持绿色。
安全审计
安全Static findings are false positives caused by Markdown fences, inline examples, and safe local npm test commands in SKILL.md. The network-reconnaissance hits are checklist wording about tests passing, and manual review of SKILL.zip found only the reviewed SKILL.md copy.
风险因素
⚙️ 外部命令 (27)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/dyai2025-test-driven-development/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/dyai2025-test-driven-development?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/dyai2025-test-driven-development?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dyai2025-test-driven-development/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/dyai2025-test-driven-development.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
DYAI2025. (2026). test-driven-development security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dyai2025-test-driven-development/audits/9BibTeX 引用
@techreport{dyai2025-dyai2025-test-driven-development-2026,
author = {DYAI2025},
title = {test-driven-development security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/dyai2025-test-driven-development/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "test-driven-development security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "DYAI2025"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/dyai2025-test-driven-development/audits/9"
identifiers:
- type: other
value: "skillstore:dyai2025-test-driven-development:audit:9"
description: "Skillstore immutable audit report identifier"
比较变体
10 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
dmjgilbert-test-driven-development
2026-09-09
cycleaddict-test-driven-development
2026-09-09
cygnusfear-test-driven-development
2026-09-09
addyosmani-test-driven-development
2026-09-22
dyai2025-test-driven-development
2026-09-09
codingcossack-test-driven-development
2026-09-09
zhanlincui-test-driven-development
2026-09-09
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
功能实现
在构建新功能前,先编写一个失败的行为测试。
缺陷修复回归
在修改代码前,用一个失败测试复现报告的缺陷。
重构安全性
清理代码时,通过验证测试保持绿色来确保行为稳定。
试试这些提示
在下一次变更中使用此技能。确定要测试的第一个行为,编写红色阶段测试计划,并在实现前等待失败证据。
[brief behavior] 中出现了一个缺陷。先定义失败的回归测试和预期失败,然后在红色阶段得到证明后提出最小修复。
在重构此区域前,列出要运行的现有行为测试,确定下一个安全的清理项,并保持行为不变。
审查此已完成变更的 TDD 纪律。检查每个行为是否都先有失败测试,失败是否符合预期,以及实现是否保持最小化。
最佳实践
- 编写测试后运行目标测试,并确认失败是有意义的。
- 让每个测试专注于一个可观察行为。
- 只有在测试套件保持绿色后才进行重构。
避免
- 在失败测试存在前编写实现代码。
- 在编写测试时保留未经测试的代码作为参考。
- 修改测试以匹配已损坏的实现行为。
常见问题
这个技能会帮我编写测试吗?
我可以将它与 Codex 一起使用吗?
它会自动运行测试命令吗?
哪些项目适合此技能?
什么时候应该跳过它?
它要求使用 npm 吗?
开发者详情
作者
DYAI2025许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
b959ebfd1043a07c0c4378ab94ca4342cb0259f5
维护新鲜度
2026/7/20
使用量
6 次下载 · 263 次浏览