tdd-workflow SKILL.md skillA

tdd-workflow from huangwb8/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add huangwb8/skills/tdd-workflow@git:20260906.d2681a7

Pins git:20260906.d2681a7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
huangwb8/skills
Path
skills/alpha/awesome-code/agents/tdd-workflow/SKILL.md
Versions recorded
4
Latest version
git:20260906.d2681a7, committed Sep 6, 2026
First version recorded
Aug 25, 2026
Size
10,729 bytes
Repository stars
50
License
MIT

用于需要以测试驱动开发、遵循“红—绿—重构”循环实现功能或修复缺陷的场景。必须先编写失败测试,再实现代码。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# TDD Workflow - 测试驱动开发工作流

## 铁律

```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```

**违反规则的信件就是违反规则的精神。**

**无例外**:
- 不保留为"参考"
- 写测试时"不调整"
- 不看它
- 删除=删除

---

## 常见合理化

| 借口 | 现实 |
|------|------|
| "太简单不需要测试" | 简单代码也会坏。测试只需 30 秒 |
| "我之后再测试" | 测试立即通过证明不了什么 |
| "测试后达到相同目的" | 测试后="代码做什么?"测试前="代码应该做什么?" |
| "已经手动测试了" | 临时≠系统化。无记录,无法重新运行 |
| "删除 X 小时工作是浪费" | 沉没成本谬误。保留未验证代码是技术债 |
| "保留参考,先写测试" | 你会调整它。那是测试后。删除=删除 |

---

## 红色标志 - 停止并重新开始

- 测试前有代码
- "已经手动测试了"
- "测试后达到相同目的"
- "是精神而非仪式"
- "只此一次"的合理化
- "保留为参考"
- 写测试时"不调整"

**所有这些意味着:删除代码。用 TDD 重新开始。**

---

## 核心理念

**测试驱动开发(Test-Driven Development, TDD)** 是一种先编写测试,再编写实现代码的开发方法。通过严格的 **Red-Green-Refactor** 循环,确保代码质量和可维护性。

### TDD 循环

```
┌─────────────────────────────────────────────────────────┐
│  1. RED    : 编写失败的测试                              │
│  2. GREEN  : 编写最简单的代码使测试通过                   │
│  3. REFACTOR: 在测试保护下重构代码                       │
│  4. 重复循环                                            │
└─────────────────────────────────────────────────────────┘
```

---

## 何时使用本技能

在以下场景时激活:

- 用户明确要求使用 **TDD** 或 **测试驱动开发**
- 需要编写新功能或修复 Bug
- 提到"测试"、"单元测试"、"测试覆盖率"
- 需要确保代码质量
- 重构现有代码(先补充测试)

---

## TDD 工作流程

### 步骤 1:理解需求
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add huangwb8/skills/tdd-workflow@sha256:d71ebb3c31305233

The line at the top of this page pins the label git:20260906.d2681a7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_cospfuuwjiue7mev.svg)](https://markdownregistry.com/a/art_cospfuuwjiue7mev)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Aug 25, 2026 and Sep 6, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
git:20260906.d2681a7 latest2026-09-06 d2681a7 10,729 BA view · diff
git:20260905.a346b912026-09-05 a346b91 10,834 BA view · diff
git:20260905.7c0ea7c2026-09-05 7c0ea7c 10,795 BA view · diff
git:20260825.4f192d92026-08-25 4f192d9 9,795 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10729 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

huangwb8/skills · 50 stars · license MIT · pushed 2026-10-17 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_cospfuuwjiue7mev
GET https://markdownregistry.com/api/v1/resolve?ref=huangwb8/skills/tdd-workflow
GET https://markdownregistry.com/api/v1/blob/d71ebb3c31305233c9d085aadf4bbc157d529e78d8118c6ead70ce30f4180f87

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from huangwb8/skills

AGENTS.md AGENTS.md file
huangwb8/skills · AGENTS.md
git:20260912.90bbdcd · audit A · 50 stars
CLAUDE.md CLAUDE.md file
huangwb8/skills · CLAUDE.md
git:20260219.a2200bc · audit A · 50 stars
auto-draw-plot SKILL.md skill
huangwb8/skills · skills/alpha/auto-draw-plot/SKILL.md · 根据用户描述生成高质量绘图 prompt,并按通用、roadmap、schematic 模式通过 BenszAPI 直接完成 gpt-image-2.5-flare、gpt-image-2.5-sunburst、gpt-image-2 或…
git:20260910.448010a · audit A · 50 stars
auto-test-code SKILL.md skill
huangwb8/skills · skills/alpha/auto-test-code/SKILL.md · 当用户明确要求测试代码、代码审查或代码自检时使用。系统化发现并验证代码问题。⚠️ 不适用:用户只是想实现或优化功能、询问代码问题,或没有明确测试意图。
git:20260906.d2681a7 · audit A · 50 stars
auto-test-project SKILL.md skill
huangwb8/skills · skills/alpha/auto-test-project/SKILL.md · 当用户明确要求“测试项目”、 “运行 auto-test-project”或“进行项目级测试”时使用。对完整项目执行多轮 A 轮批判性测试与 B 轮质量检查,发现、记录、修复并验证问题。⚠️…
git:20260906.d5147b3 · audit A · 50 stars
auto-test-skill SKILL.md skill
huangwb8/skills · skills/alpha/auto-test-skill/SKILL.md · 当用户明确要求测试 Skill、运行 auto-test 或对 Skill 进行批判性测试时使用。系统化发现、记录并验证 Skill 问题。⚠️ 不适用:用户只是想开发或优化 Skill,或没有明确测试意图。
git:20260915.3df7249 · audit A · 50 stars
awesome-code SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/SKILL.md · 当用户明确要求使用 awesome-code、进行多代理协作或需要复杂任务规划时使用。它负责拆解任务、选择专业角色、设置门禁并审查结果;所有 Agent 的创建、隔离、串行或并行执行都必须交给 `parallel-vibe`。⚠️…
git:20261017.6ee9a5b · audit A · 50 stars
backend-specialist SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/agents/backend-specialist/SKILL.md · 后端开发专家。精通 Node.js/Python/Go/Rust 等后端技术栈,专注于 API 设计、数据库优化、认证授权、微服务架构和性能调优。用于后端服务开发、API 设计和系统架构。
git:20260905.a346b91 · audit A · 50 stars
brainstorming SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/agents/brainstorming/SKILL.md · 当用户明确要求"使用 brainstorming"或"使用 awesome-code"时使用。⚠️ 不适用:用户只是想优化/改进某个功能(应直接修改)、只是询问技能问题(应直接回答)、没有明确使用…
git:20260905.a346b91 · audit A · 50 stars
code-reviewer SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/agents/code-reviewer/SKILL.md · 用于审查已完成的工作、重大功能或合并前的变更,核对需求并按严重程度识别风险。未经审查不得合并。
git:20260906.d2681a7 · audit A · 50 stars
context-optimizer SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/agents/context-optimizer/SKILL.md · 上下文优化专家。专注于长对话中的上下文管理、token 效率和性能优化。解决 lost-in-middle、context poisoning 等问题,提升 AI 代理在复杂任务中的表现。
git:20260906.d2681a7 · audit A · 50 stars
devops-specialist SKILL.md skill
huangwb8/skills · skills/alpha/awesome-code/agents/devops-specialist/SKILL.md · DevOps 与运维专家。精通 CI/CD、容器化、编排、基础设施即代码、监控告警和自动化部署。用于构建高效、可靠的软件交付流水线和运维系统。
git:20260905.a346b91 · audit A · 50 stars

Every file in huangwb8/skills

Other files named tdd-workflow

tdd-workflow SKILL.md skill
affaan-m/ecc · .agents/skills/tdd-workflow/SKILL.md · Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+…
git:20260918.c752aac · audit A · 284,510 stars
tdd-workflow SKILL.md skill
affaan-m/ecc · docs/es/skills/tdd-workflow/SKILL.md · Usar este skill al escribir nuevas funcionalidades, corregir bugs o refactorizar código. Aplica el desarrollo guiado…
git:20260607.ac0f11c · audit A · 284,510 stars
tdd-workflow SKILL.md skill
affaan-m/ecc · .kiro/skills/tdd-workflow/SKILL.md · Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+…
v1.0 · audit A · 284,510 stars
tdd-workflow SKILL.md skill
mrwogu/promptscript · packages/resolver/src/__tests__/__fixtures__/registry/native-skills/tdd-workflow/SKILL.md · Test-driven development workflow
git:20260323.dab580e · audit B · 387 stars
tdd-workflow SKILL.md skill
travisjneuman/.claude · skills/tdd-workflow/SKILL.md · Test-Driven Development workflow enforcement with RED-GREEN-REFACTOR cycle. Use only when the user explicitly asks for…
git:20260930.c8d311d · audit A · 105 stars
tdd-workflow SKILL.md skill
vodailocz/kilo-kit-mcp · skills/engineering/tdd-workflow/SKILL.md · Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.
git:20260502.38d5305 · audit A · 28 stars
tdd-workflow SKILL.md skill
naimkatiman/continuous-improvement · plugins/continuous-improvement/skills/tdd-workflow/SKILL.md · Enforces Law 3 (One Thing at a Time) and Law 4 (Verify Before Reporting) of the 7 Laws of AI Agent Discipline. Use this…
git:20260429.e20f1ca · audit A · 9 stars
tdd-workflow SKILL.md skill
harshadmadaye/opm · skills/tdd-workflow/SKILL.md · Drives test-driven development through a strict RED-GREEN-REFACTOR cycle with test-runner detection, a "fails for the…
git:20260912.a10a790 · audit A · 5 stars

Browse by kind, by grade A, or by owner.