054-design-tdd

仓库创建 2025年2月9日最近提交 3 天前SkillHot 收录 16 小时前
▸ 精选理由

帮助维护测试列表并循序实现行为,便于实践 TDD 流程。

这个 Skill 做什么

引导 Java 开发者以测试驱动开发(TDD)方式实现功能与重构。

以交互式方式带着 Java 开发走测试驱动开发(TDD)流程:维护候选测试清单、选下一个行为、先写会失败的测试、只实现让测试通过的最小生产代码,再重构保持测试绿灯。当你希望改动由测试驱动、明确接口契约或逐步实现复杂功能时使用。特点是把红-绿-重构循环落到实操层,持续跟踪和选择测试用例,避免随意改代码而缺乏验证。

▸ 展开 SKILL.md 英文原文

Use when Java implementation work should be guided by Test-Driven Development, including maintaining a test list, choosing the next behavior, writing a failing test first, implementing only enough production code to pass, and refactoring while keeping tests green. This should trigger for requests such as Apply TDD; Use test-driven development; Drive this Java change with tests; Write the failing test first; Red-green-refactor this feature. Part of Plinth Toolkit

开发编程JavaTDD测试驱动通用
423
Stars
89
Forks
40
仓库内 Skill
+9
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jabrena/plinth/main/skills/054-design-tdd/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jabrena/plinth/main/skills/054-design-tdd/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Test-Driven Development Design

Guide Java developers through Test-Driven Development for implementation work. **This is an interactive SKILL**.

**What is covered in this Skill?**

- Maintaining or refining a list of candidate test cases
- Selecting the next useful behavior or test case before editing production code
- Writing a failing test first to clarify the public interface, API shape, or usage of the code
- Writing only enough functional production code to pass the selected test
- Refactoring new and existing code while tests remain green
- Adding newly discovered test cases to the list without losing the current TDD cycle
- Reporting skipped checks, missing tests, and remaining ris
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有