Skip to content
Agentmart
Submit a tool

generic-tdd

TDD 模式实现 — RED-GREEN-REFACTOR 循环,先写测试再写代码。与 implement 阶段集成,强制测试优先。

Skill by Brothelmdzz

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying generic-tdd?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/brothelmdzz-generic-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 模式实现 — RED-GREEN-REFACTOR 循环,先写测试再写代码。与 implement 阶段集成,强制测试优先。

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/generic-tdd

What's inside

Skill name
generic-tdd
Description
TDD 模式实现 — RED-GREEN-REFACTOR 循环,先写测试再写代码。与 implement 阶段集成,强制测试优先。
License
MIT
Instructions
44 lines in SKILL.md · view on GitHub

Files (7)

  • SKILL.md
  • lang-go.md
  • lang-java.md
  • lang-python.md
  • lang-rust.md
  • lang-typescript.md
  • playbook-anti-patterns.md

SKILL.md (first lines)

# TDD 模式实现

## 核心循环

```
RED    → 写一个会失败的测试
GREEN  → 写最小代码让测试通过
REFACTOR → 优化代码(测试保持绿色)
```

## 约束

- 必须先写测试再写实现(RED 确认后才能写代码)
- 每次只写让测试通过的最小代码,不提前优化
- 重构时不加新功能
- 测试不依赖实现细节(不过度 Mock)

## 语言特化

检测技术栈后,读取本目录下对应文件获取测试命令:
- Java/Gradle → 读取 lang-java.md
- Python → 读取 lang-python.md
- TypeScript/Node → 读取 lang-typescript.md
- Go → 读取 lang-go.md
- Rust → 读取 lang-rust.md

## 参考

- 常见错误和对比 → 读取 playbook-anti-patterns.md

## 状态上报

每个 RED-GREEN-REFACTOR 循环完成后:

```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/dh-python.sh" "${CLAUDE_PLUGIN_ROOT}/scripts/harness.py" update implement IN_PROGRESS \
  --phase {N} --gate build=pass --gate test=pass
```

## 启用方式

`.claude/dev-config.yml` 中设置 `tdd: true`。

From Brothelmdzz/dev-harness, MIT.

More from Brothelmdzz/dev-harness

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from Brothelmdzz

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get generic-tdd running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying generic-tdd?

CallGet help
Cite this page

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