tdd-workflow
实践测试驱动开发
开发者经常跳过测试,或在实现之后才编写测试。此技能会引导 Claude、Codex 和 Claude Code 遵循红-绿-重构纪律。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "tdd-workflow" from https://skillstore.io/skills/sickn33-tdd-workflow.md and its manifest at https://skillstore.io/api/skills/sickn33-tdd-workflow/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“tdd-workflow”。 Add email validation to a signup form.
预期结果:
助手会针对有效地址、格式错误的地址和空输入提出失败测试。然后建议最小实现和重构检查。
正在使用“tdd-workflow”。 Fix a bug where discounts apply twice.
预期结果:
助手会从一个捕获重复折扣的回归测试开始。然后将实现限制为能通过测试的最小变更。
正在使用“tdd-workflow”。 Refactor a complex pricing function.
预期结果:
助手会验证测试为绿色,识别重复和命名问题,并推荐不改变行为的小型重构步骤。
安全审计
安全All three static findings are false positives caused by ordinary TDD prose and a fenced process diagram. No executable commands, reconnaissance behavior, or prompt injection were found.
风险因素
⚙️ 外部命令 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/sickn33-tdd-workflow/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-tdd-workflow?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-tdd-workflow?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-tdd-workflow/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-tdd-workflow.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 引用
sickn33. (2026). tdd-workflow security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-tdd-workflow/audits/6BibTeX 引用
@techreport{sickn33-sickn33-tdd-workflow-2026,
author = {sickn33},
title = {tdd-workflow security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/sickn33-tdd-workflow/audits/6},
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: "tdd-workflow security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-09-06"
url: "https://skillstore.io/skills/sickn33-tdd-workflow/audits/6"
identifiers:
- type: other
value: "skillstore:sickn33-tdd-workflow:audit:6"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
开始一项新功能
为新行为指导第一个失败测试、最小实现和清理步骤。
修复回归问题
在修改生产代码之前,编写一个可复现 bug 的失败测试。
协调 AI 编码代理
在保持 TDD 顺序的同时,将测试编写、实现和重构分配给不同代理。
试试这些提示
Use the tdd-workflow skill. Help me define one failing test for this requirement before any implementation work.
Use the tdd-workflow skill. List the happy path, error case, and edge case tests for this feature in priority order.
Use the tdd-workflow skill. Walk me through RED, GREEN, and REFACTOR steps for this change, and stop after each phase.
Use the tdd-workflow skill. Split this work across a test-writing agent, an implementation agent, and a refactoring agent.
最佳实践
- 在修改生产代码之前,先编写失败测试。
- 让每个测试聚焦于一个可观察行为。
- 只有在完整测试套件通过后才进行重构。
避免
- 先编写实现,之后再添加测试。
- 测试私有实现细节,而不是测试行为。
- 在 GREEN 阶段扩大范围。