Skip to content
Agentmart
Submit a tool

tdd

使用测试驱动开发实现核心逻辑,适用于用户要求 TDD、红绿重构、先写测试再实现、用测试约束 AI 写代码,或需要为关键业务规则建立回归保护时使用。

Skill by 535803710

IndexedMIT★ 8
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/535803710-tdd

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

使用测试驱动开发实现核心逻辑,适用于用户要求 TDD、红绿重构、先写测试再实现、用测试约束 AI 写代码,或需要为关键业务规则建立回归保护时使用。

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/tdd

What's inside

Skill name
tdd
Description
使用测试驱动开发实现核心逻辑,适用于用户要求 TDD、红绿重构、先写测试再实现、用测试约束 AI 写代码,或需要为关键业务规则建立回归保护时使用。
License
MIT
Instructions
31 lines in SKILL.md · view on GitHub

Files (6)

  • SKILL.md
  • openai.yaml · agents/
  • interface-design.md · references/
  • mocking.md · references/
  • refactoring.md · references/
  • tests.md · references/

SKILL.md (first lines)

# TDD

## 目标

用测试先框住行为,再实现代码。重点是控制实现方向,减少 AI 自由发挥。

## 工作方式

1. 先确认要保护的核心行为。
2. 写最小失败测试,测试名称表达业务行为。
3. 运行测试,确认失败原因正确。
4. 写最小实现让测试通过。
5. 运行测试,确认通过。
6. 必要时重构,但不能改变测试保护的行为。

## 适合场景

- 核心业务规则
- 状态流转
- 工具函数
- 数据转换
- 权限判断
- 复杂条件分支

## 参考

- 测试选择:`references/tests.md`
- mock 策略:`references/mocking.md`
- 重构节奏:`references/refactoring.md`
- 接口设计:`references/interface-design.md`

From 535803710/ai-rd-skills, MIT.

More from 535803710/ai-rd-skills

Signals

Stars
8
Forks
1
Open issues
0
Last commit (this folder)
May 20, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 535803710

Cite this page

tdd skill. Agent Mart. https://agentmart.dev/skills/535803710-tdd (last updated 2026-10-24)