# tdd-practices

> Claude/Codex skill by [@incubyte](https://omgskills.com/library/incubyte/index.md) · 18 stars · Updated 2026-10-16

This skill should be used when writing a TDD plan, reviewing test quality, choosing between unit and integration tests, or applying red-green-refactor. Contains outside-in double-loop, test isolation, and test naming.

## Install

```sh
git clone https://github.com/incubyte/ai-plugins /tmp/ai-plugins && ln -s /tmp/ai-plugins/bee/skills/tdd-practices ~/.claude/skills/tdd-practices
```

## From README

TDD Practices Red-Green-Refactor The fundamental TDD cycle: RED — Write a failing test that describes the behavior you want. Run it. Watch it fail. This confirms the test is actually testing something. GREEN — Write the minimum code to make the test pass. No more. Resist the urge to build ahead. REFACTOR — Clean up duplication, improve naming, extract patterns. Tests protect you from breaking anything. Each cycle should take minutes, not hours. Small cycles build confidence and momentum. Outside-In Double-Loop (Onion/Hexagonal) For architectures with clear layer boundaries: Outer loop: Integration test at the boundary (HTTP request in, response out). Stays RED until all inner layers are wired. Inner loop: Unit tests for each layer, working inward: Inbound adapter (controller/handler): test request parsing, response shaping Use case + domain: test business rules with mocked outbound ports. Domain is PURE — zero external dependencies.

## Links

- HTML page: https://omgskills.com/library/incubyte/ai-plugins/bee/skills/tdd-practices/
- GitHub: https://github.com/incubyte/ai-plugins
- Author: [@incubyte](https://omgskills.com/library/incubyte/index.md)

## More from this repo

- [ai-ergonomics](https://omgskills.com/library/incubyte/ai-plugins/bee/skills/ai-ergonomics/index.md) — This skill should be used when evaluating how well code supports LLM-assisted development.
   - [@incubyte](https://omgskills.com/library/incubyte/index.md) · 18 stars
- [ai-workflow](https://omgskills.com/library/incubyte/ai-plugins/bee/skills/ai-workflow/index.md) — This skill should be used when explaining why Bee follows spec-first TDD workflows, or when teaching mode is on.
   - [@incubyte](https://omgskills.com/library/incubyte/index.md) · 18 stars
- [architecture-patterns](https://omgskills.com/library/incubyte/ai-plugins/bee/skills/architecture-patterns/index.md) — This skill should be used when evaluating architecture options, checking dependency direction, or deciding between...
   - [@incubyte](https://omgskills.com/library/incubyte/index.md) · 18 stars
