Skip to main content

test-driven-development

Drive behavior changes through a failing test, the smallest working implementation, and then cleanup once the behavior is locked.

来源信息

仓库
agentic-in/elephant-agent
最近来源活动
2026年5月15日 07:09
检测到的 SKILL.md 语言
英语
星标
584
Forks
63

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
Test Driven Development
skill_id
test-driven-development
description
Drive behavior changes through a failing test, the smallest working implementation, and then cleanup once the behavior is locked.
version
1.0.0
source_kind
elephant-builtin
# Test Driven Development Use this skill when the behavior can be expressed clearly in tests before the implementation is obvious. ## Preferred Flow 1. Write or identify the failing test first. 2. Make the minimal change that turns it green. 3. Refactor only after behavior is protected. 4. Keep the test focused on one behavior. ## Guardrails - Do not add broad, fragile snapshot coverage when a precise assertion is possible. - If the repo has a stronger existing testing pattern, follow it.
在 GitHub 查看