tdd — community humansintheloop-dev-workflow-and-tools, community, ide skills

v1.0.0

이 스킬 정보

코딩 에이전트가 엄격한 Test-Driven Development 워크플로우 시행과 부정 방지 메커니즘을 필요로 할 때 적합합니다. a workflow for practicing Test-Driven Development (TDD)

humansintheloop-dev humansintheloop-dev
[0]
[0]
Updated: 3/9/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
29
Canonical Locale
en
Detected Body Locale
en

코딩 에이전트가 엄격한 Test-Driven Development 워크플로우 시행과 부정 방지 메커니즘을 필요로 할 때 적합합니다. a workflow for practicing Test-Driven Development (TDD)

이 스킬을 사용하는 이유

에이전트가 정확한 테스트 결과를 보장할 수 있는 능력을 부여하여 엄격하지만 가벼운 TDD 워크플로우를 통해 정직을 강제하고 부정을 방지하며 테스트에만 초점을 맞추고 테스트가 실행된 경우에만 통과 또는 실패했다고 주장하는 것을 포함하는 핵심 부정 방지 계약을 사용합니다.

최적의 용도

코딩 에이전트가 엄격한 Test-Driven Development 워크플로우 시행과 부정 방지 메커니즘을 필요로 할 때 적합합니다.

실행 가능한 사용 사례 for tdd

코딩 작업의 엄격한 TDD 워크플로우를 강제执行
테스트에만 초점을 맞추어 부정을 방지
핵심 부정 방지 계약을 사용하여 정확한 테스트 결과를 생성

! 보안 및 제한 사항

  • 핵심 부정 방지 계약을 따라야 함
  • 테스트를 실행하여 통과 또는 실패 결과를 주장해야 함
  • 테스트를 실행할 수 없는 경우 'BLOCKED' 상태로 전환

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.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs 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 & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is tdd?

코딩 에이전트가 엄격한 Test-Driven Development 워크플로우 시행과 부정 방지 메커니즘을 필요로 할 때 적합합니다. a workflow for practicing Test-Driven Development (TDD)

How do I install tdd?

Run the command: npx killer-skills add humansintheloop-dev/humansintheloop-dev-workflow-and-tools/tdd. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for tdd?

Key use cases include: 코딩 작업의 엄격한 TDD 워크플로우를 강제执行, 테스트에만 초점을 맞추어 부정을 방지, 핵심 부정 방지 계약을 사용하여 정확한 테스트 결과를 생성.

Which IDEs are compatible with tdd?

This skill is compatible with 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. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for tdd?

핵심 부정 방지 계약을 따라야 함. 테스트를 실행하여 통과 또는 실패 결과를 주장해야 함. 테스트를 실행할 수 없는 경우 'BLOCKED' 상태로 전환.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add humansintheloop-dev/humansintheloop-dev-workflow-and-tools/tdd. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use tdd immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

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

tdd

Install tdd, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

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

TDD Skill (Test-Only, Anti-Cheat, Minimal Version)

This skill defines a strict but lightweight TDD workflow designed for coding agents. It enforces honesty, prevents cheating, and minimizes token usage by focusing solely on tests.


Core Anti-Cheat Contract

(Always enforced in every state)

  1. Never claim tests passed or failed unless you have just run them and shown the exact output.

  2. If you cannot run tests, enter BLOCKED immediately. Do not guess or infer results.

  3. Never modify test assertions just to make a failing test pass.

  4. Only transition between TDD states when the required test evidence has been shown.

  5. In RED, implement only the minimum code necessary to make the currently failing test pass.

  6. Every message must begin with a TDD state prefix, and the prefix must match the actual test evidence.

  7. Promote the Dependency Rule If making a failing test for the current SUT pass requires changing a dependency, you must stop and promote that dependency to be the SUT. Write a failing test for the dependency, make it pass, then return to the original SUT.

    Clarification:

    • Modifying a dependency counts as production code.
    • Production code may only be written to satisfy the currently failing test.
    • Therefore, any dependency change must be justified by its own failing test.

TDD Layer Discipline

When testing layer A that mocks layer B:

  • Layer B only needs a method signature (stub returning null or throwing UnsupportedOperationException)
  • Do NOT implement Layer B's logic until you write Layer B's tests
  • Ask: "Is the service/dependency mocked in this test?" If yes, only a stub is needed.

Example:

  • Controller test mocks CustomerService → CustomerService.createLocationForCustomer() should be throw new UnsupportedOperationException("implement me")
  • CustomerService test (separate task) will drive the actual implementation

Outside-In Development

Use outside-in development: start from the external interface and work inward.

Why: Every piece of code should be immediately callable and tested from an external perspective. Avoid creating "infrastructure only" code to be connected later.

Correct order for implementing a feature:

  1. Write test for the external interface (command handler, REST endpoint)
  2. Implement the handler/controller, which calls the service method
  3. Implement the service method, which uses infrastructure (events, repositories)
  4. Create infrastructure as needed to satisfy the test

Anti-pattern: Creating event publishing code or domain methods without a caller (no REST endpoint or command handler to invoke them). Every method should have an entry point that exercises it.


Evidence Format (Required)

Whenever tests are mentioned:

Evidence:

  • tests: pass | fail | not-run
  • last_output: <exact test output snippet>

Rules:

  • pass or fail may only be used if tests were just executed.
  • not-run must be used if tests cannot be executed.
  • Never infer test status from code.

TDD States

⚪ TDD: PLANNING

Goal:
Write a meaningful failing test that expresses the desired behavior.

Allowed actions:

  • Ask clarification questions
  • Write or update a test
  • Run tests to show failure

Pre-conditions to enter RED:

  • A test exists
  • The test was just run
  • A failing test is shown
  • The failure reflects missing/incorrect behavior

Transition:

  • If pre-conditions satisfied → RED
  • Otherwise remain in PLANNING

🔴 TDD: RED

Goal:
Make the failing test pass using the minimum implementation.

Allowed actions:

  • Analyze the failing test
  • Implement the smallest possible change
  • Run tests again
  • Justify why the implementation is minimal

Pre-conditions to enter GREEN:

  • The previously failing test now passes
  • All tests pass
  • Test output is shown

Transition:

  • If all tests pass → GREEN
  • If tests still fail → remain in RED
  • If tests cannot run → BLOCKED

🟢 TDD: GREEN

Goal: The behavior is now correct; evaluate and prepare safe refactoring.

Allowed actions:

  • Re-read the actual code changes made in this cycle
  • Identify safe refactorings
  • Explain improvement intent
  • Run tests as needed

Required Evaluation (before any transition):

  1. Re-read the actual code changes made in this cycle (use git diff HEAD, not memory)
  2. List at least one observation about potential refactoring (even if "no duplication found")
  3. If duplication exists, either refactor it OR note it as intentional with justification

Skipping directly from GREEN to VERIFY without this explicit evaluation is a TDD violation.

Pre-conditions to enter REFACTOR:

  • All tests currently pass
  • Recent test output shown
  • A refactoring goal identified

Transition:

  • If refactoring is needed → REFACTOR
  • If no refactoring needed → VERIFY

🛠️ TDD: REFACTOR

Goal:
Improve internal code structure without changing behavior.

Allowed actions:

  • Perform small safe refactorings
  • Run tests immediately after each change

Pre-conditions to exit REFACTOR:

  • Tests were run after the last change
  • All tests pass
  • Test output is shown

Transition:

  • If tests pass → VERIFY
  • If tests fail → return to RED
  • If tests cannot run → BLOCKED

✅ TDD: VERIFY

Goal:
Confirm the entire TDD cycle is complete.

Allowed actions:

  • Run the full test suite
  • Show test results
  • Summarize completed behavior

Pre-conditions to enter COMPLETE:

  • All tests pass
  • Test output is shown

Transition:

  • If all tests pass → COMPLETE
  • If any test fails → RED
  • If tests cannot run → BLOCKED

🏁 TDD: COMPLETE

Goal:
The TDD cycle for this behavior is finished.

Allowed actions:

  • Provide a concise summary
  • Stop unless the user starts a new cycle

⚠️ TDD: BLOCKED

Goal:
Tests cannot be run; you cannot proceed honestly.

Actions:

  • State explicitly why tests cannot run
  • Show the exact command the user should run
  • Ask for the output

Transition:

  • When test results are provided → return to prior state
  • Do not infer test status

🚨 TDD: VIOLATION

Goal:
The agent has broken the TDD rules.

Actions:

  1. State what rule was violated
  2. Explain the correct behavior
  3. Undo or repair the incorrect action
  4. Return to the correct state

End of Skill

관련 스킬

Looking for an alternative to tdd or another community skill for your workflow? Explore these related open-source skills.

모두 보기

openclaw-release-maintainer

Logo of openclaw
openclaw

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

333.8k
0
인공지능

widget-generator

Logo of f
f

prompts.chat 피드 시스템을 위한 사용자 지정 가능한 위젯 플러그인을 생성합니다

149.6k
0
인공지능

flags

Logo of vercel
vercel

리액트 프레임워크

138.4k
0
브라우저

pr-review

Logo of pytorch
pytorch

파이썬에서 텐서와 동적 신경망 구현 및 강력한 GPU 가속 지원

98.6k
0
개발자