coops-tdd-auto — TDD自动化 coops-tdd-auto, coding-agent-launcher, community, TDD自动化, ide skills, 测试驱动开发工具, AI测试工具, 自动化测试代码生成, package.json测试配置, pom.xml测试配置

v1.0.0

关于此技能

适用于需要自动化测试驱动开发的开发代理,使用行为驱动的TDD coops-tdd-auto是一种自动化测试驱动开发的AI工具

功能特性

自动检测项目测试运行器
支持package.json、pom.xml、Makefile等配置文件
实现Red → Green → Refactor的TDD流程
自动化测试代码生成
支持多语言项目结构推断

# 核心主题

will-head will-head
[0]
[0]
更新于: 3/20/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
33
Canonical Locale
en
Detected Body Locale
en

适用于需要自动化测试驱动开发的开发代理,使用行为驱动的TDD coops-tdd-auto是一种自动化测试驱动开发的AI工具

核心价值

赋予代理自动化测试流程的能力,使用Behaviour-Driven TDD,简化测试驱动开发,并支持在package.json、pom.xml或Makefile中配置的各种测试运行器,同时确保在实现代码之前编写强制性测试

适用 Agent 类型

适用于需要自动化测试驱动开发的开发代理,使用行为驱动的TDD

赋予的主要能力 · coops-tdd-auto

为流线型测试自动化Behaviour-Driven TDD
为新任务项生成失败的测试
在成功的测试运行后重构代码

! 使用限制与门槛

  • 需要项目配置文件,如package.json、pom.xml或Makefile,用于测试运行器检测
  • 强制性的测试驱动开发可能会减慢初始开发速度

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

coops-tdd-auto 是什么?

适用于需要自动化测试驱动开发的开发代理,使用行为驱动的TDD coops-tdd-auto是一种自动化测试驱动开发的AI工具

如何安装 coops-tdd-auto?

运行命令:npx killer-skills add will-head/coding-agent-launcher/coops-tdd-auto。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

coops-tdd-auto 适用于哪些场景?

典型场景包括:为流线型测试自动化Behaviour-Driven TDD、为新任务项生成失败的测试、在成功的测试运行后重构代码。

coops-tdd-auto 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

coops-tdd-auto 有哪些限制?

需要项目配置文件,如package.json、pom.xml或Makefile,用于测试运行器检测;强制性的测试驱动开发可能会减慢初始开发速度。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add will-head/coding-agent-launcher/coops-tdd-auto。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    coops-tdd-auto 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

coops-tdd-auto

安装 coops-tdd-auto,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Behaviour-Driven TDD — Automated Mode

TDD is mandatory. Do not write implementation code before writing a failing test.

Before You Start

Detect the project's test runner from config files (package.json, pom.xml, Makefile, etc.). If ambiguous, infer from the language and project structure. Verify by running the suite once and confirming it exits cleanly.

Red → Green → Refactor

Red — Write a Failing Test

  1. Derive the behaviour from the current task item. One task item = one or more behaviours = one or more tests.
  2. Write a test that specifies that behaviour from the caller's perspective.
  3. Test at the public interface (exports, public methods, observable outcomes). Never test internals.
  4. Run the test. Confirm it fails for the right reason — the behaviour is absent, not a syntax error or import problem.

If a task item maps to multiple distinct behaviours, write one test per behaviour — do not combine. If a task item is too vague to derive a testable behaviour, flag it rather than guessing.

Test file naming — one test file per behaviour where practical, named for the behaviour being tested.

Namingwhen_[condition]_should_[outcome], adapted to language conventions:

  • when_balance_is_zero_should_reject_withdrawal
  • when_email_is_invalid_should_raise_error
  • when_password_is_too_short_should_fail_validation

Structure — Arrange / Act / Assert:

python
1def test_when_balance_is_zero_should_reject_withdrawal(): 2 # Arrange 3 account = Account(balance=0) 4 5 # Act / Assert 6 with pytest.raises(InsufficientFundsError): 7 account.withdraw(10)

Use Evident Data: only include values that affect the test outcome. Use builders or helpers to hide irrelevant setup noise.

Green — Make the Test Pass

Write the minimum code to make the test pass. Nothing more. Speed over design — cleanup is for Refactor.

Do not write code for requirements not expressed in a test.

Refactor — Improve the Design

With tests green, improve structure without changing behaviour:

  • Rename, extract, reorganise — do not change what the code does.
  • Run all tests after each change.
  • Do NOT modify or add tests during refactoring.
  • Apply coding standards (loaded at session start via coding-standards) during this phase — standards compliance belongs here, not in Green. Green stays minimal.

Repeat the cycle for the next behaviour.

Scope Control

Each test should be the most obvious, smallest step toward the requirement. If you find yourself writing a lot of code to make one test pass, the test is probably too large — break it into a smaller first step. Only add code needed to satisfy a behavioural requirement expressed in a test.

Modifying Existing Code

  1. Run the full test suite. Confirm all tests pass.
  2. Make the change.
  3. Run the full test suite again. All tests must still pass.
  4. If tests fail, the implementation is wrong — revert and try again. Do not modify tests to compensate.

Test Rules

  • Never write production code except to make a failing test pass.
  • Tests must come from task requirements. Do not invent scenarios not specified by the task.
  • Only write a test in response to a new behaviour — never in response to a new method or class.
  • Test at the public interface only. Never test private or internal methods or classes.
  • Never expose internals just to test them.
  • Never modify existing tests to make implementation changes pass. This is reward hacking.
  • Tests must be fast (seconds, not minutes) and binary (pass/fail, no interpretation needed).
  • Code coverage is a tool for guiding refactoring, not a target.

Test Doubles

  • Do NOT mock internal collaborators to isolate classes.
  • Only use test doubles for slow I/O (network, database, filesystem, message queues).
  • Prefer in-memory implementations over mocks — they are more honest about behaviour.

Refactoring Rules

  • Refactoring = changing implementation without changing behaviour.
  • During refactoring, existing tests MUST NOT be modified or deleted.
  • New classes or methods extracted during refactoring do not get their own tests — they are covered via the public interface.
  • If tests break during refactoring, the tests were coupled to implementation details. Flag this to the user rather than fixing the tests.

What Not To Do

If you catch yourself doing any of these, stop and revert:

  • Writing tests after implementation rather than before.
  • Modifying or deleting existing tests to make implementation changes pass.
  • Writing speculative code not required by any test.
  • Writing a test in response to a new method or class rather than a new behaviour.

For reasoning behind these rules, see references/tdd-philosophy.md.

相关技能

寻找 coops-tdd-auto 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具