tdd-helper

TotalClaw 作者 totalclaw

轻量级助手,用于为非确定性代理强制执行 TDD 式循环。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~cerbug45-agents-skill-tdd-helper
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~cerbug45-agents-skill-tdd-helper/file -o cerbug45-agents-skill-tdd-helper.md
# tdd-helper

Lightweight helper to enforce TDD-style loops for non-deterministic agents.

## Features
- `tdd.py` wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
- Watches for lint/warnings (optional) and blocks on warnings-as-errors.
- Simple config via env or JSON.

## Usage
```bash
# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"
```

---

## 中文说明

# tdd-helper

为非确定性代理强制执行 TDD 式循环的轻量级助手。

## 特性
- `tdd.py` 包裹一个任务:如果测试缺失或失败则报错,并拒绝先运行“生产”代码。
- 监视 lint/警告(可选),并在“警告即错误”时进行阻断。
- 通过环境变量或 JSON 进行简单配置。

## 用法
```bash
# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"
```