From tdd
Enforces TDD cycle (Red: failing test, Green: minimal code, Refactor) for new functions, features, bug fixes, refactoring. Includes Elixir backend and TypeScript frontend test patterns.
npx claudepluginhub thebushidocollective/han --plugin tddThis skill is limited to using the following tools:
Red → Green → Refactor cycle for all code changes.
Enforces strict TDD for features and bugfixes: RED (write minimal failing test), GREEN (minimal passing code), REFACTOR. No production code without failing test first.
Enforces strict TDD: write failing test first for features, bugfixes, refactors; verify red, implement green minimally, refactor. Prevents production code before tests.
Enforces strict TDD: write minimal failing test first for features/bugfixes/refactors, verify failure, add minimal passing code, refactor while green. Prevents untested code.
Share bugs, ideas, or general feedback.
Red → Green → Refactor cycle for all code changes.
✅ Always use TDD for:
❌ Skip TDD for:
# Start with test
test "calculates total with tax" do
result = Calculator.calculate_total([100, 200])
assert Money.equal?(result, Money.new(:USD, 324))
end
# Run test - should FAIL
mix test
# Just enough to pass
def calculate_total(prices) do
prices |> Enum.sum() |> Kernel.*(1.08) |> Money.new(:USD)
end
Extract constants, improve naming, etc.
test/path/module_test.exsapps/api/test/your_app/task/task_test.exsComponentName.test.tsxmobile/libraries/atorasu/atoms/Button/Button.test.tsx# Backend
mix test path/to/test.exs
# Frontend
yarn test path/to/test.tsx