xhtdd

Automate test-driven iteration by writing tests before implementing code.

Updated Jun 13, 2025
One-click install
npx skills add https://github.com/kaiangel/prefaceai --skill xhtdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xhtdd
Source: https://github.com/kaiangel/prefaceai/tree/main/.claude/skills/xhtdd
Command: npx skills add https://github.com/kaiangel/prefaceai --skill xhtdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

测试驱动迭代 — 先写测试再写实现,自动循环跑测试、读失败、修实现,直到全绿或达到上限。

Core Features & Use Cases

  • 自动化的测试驱动循环:在实现前就定义测试,确保需求明确并可追溯。
  • 支持三种模式:完整模式、修复模式、验证模式,分别用于从头到绿、修复现有实现、仅验证指定测试的工作流。
  • 可适配主流语言/测试框架,提供清晰的迭代步骤、失败分析与改进路径。

Quick Start

请以测试驱动的迭代方式,先编写测试再实现代码,循环执行测试、读失败、修实现,直到所有测试通过或达到上限。

Frequently Asked Questions about xhtdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate test-driven development to loop until tests pass?

Automated test-driven iteration works by writing tests first, then implementing code and running tests in a loop until all tests pass or a defined limit is reached. This enforces end-to-end workflow discipline and structured failure analysis.

What is the test-driven iteration workflow for validating functionality?

Test-driven iteration ensures deterministic, repeatable validation by defining tests before implementation, executing the code, reading failures, and fixing the implementation. It applies to software projects requiring structured quality assurance across multiple modes.

Can I use test-driven iteration to fix existing code instead of starting from scratch?

Yes, test-driven iteration supports a fix mode for repairing existing implementations and a verify mode for validating specified tests. These modes integrate with existing test suites to provide targeted debugging and structured failure analysis.

Does test-driven iteration integrate with my existing test suites and frameworks?

Test-driven iteration is designed to integrate with existing test suites and can adapt to mainstream languages and testing frameworks. It safeguards against uncontrolled iterations while enforcing end-to-end workflow discipline across your current testing environment.

What safeguards prevent uncontrolled iteration loops during automated testing?

The automated test-driven iteration enforces a defined limit to prevent uncontrolled loops. It provides structured failure analysis and clear iteration steps, ensuring the cycle of writing tests, implementing code, and fixing failures stops safely.