tdd

tdd is a skill for Claude Code from codewithmukesh/dotnet-claude-kit. It costs 81 tokens per session (1,271 once invoked), scanned A, original, MIT.

A test-first development workflow for .NET 10. Test-driven development means writing a failing test first, adding the smallest implementation that passes it, and then improving the code.

In plain words
What is it for?
Use it to develop features, reproduce and fix bugs, and add behavior with xUnit tests, real HTTP integration tests, containerized databases, snapshot comparisons, and controlled time.
Why use it?
It provides evidence that a feature or bug fix works before it is considered finished, while keeping the implementation tied to expected behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotnet-claude-kit plugin — 46 skills, 10 agents, 2 hooks, 1 MCP server shipped together

not rated 782repo +17 2mo ago A scan Socket: passSnyk: passSkillSpector: pass 81 tokens original MIT

Good fit Use it to develop features, reproduce and fix bugs, and add behavior with xUnit tests, real HTTP integration tests, containerized databases, snapshot comparisons, and controlled time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codewithmukesh/dotnet-claude-kit/tdd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add codewithmukesh/dotnet-claude-kit --skill tdd
Clone the repo
git clone --depth 1 https://github.com/codewithmukesh/dotnet-claude-kit

Made for: Claude Code.

Or install dotnet-claude-kit, the plugin that ships this one along with the rest of its 46 skills, 10 agents, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd

README.md
[![agentmods](https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/tdd/github.svg)](https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/tdd)
Your own site
<a href="https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/tdd"><img src="https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/tdd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd

Your own site · 80×15
<a href="https://agentmods.dev/skills/codewithmukesh/dotnet-claude-kit/tdd"><img src="https://agentmods.dev/badge/skills/codewithmukesh/dotnet-claude-kit/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,271 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 17 Aug 2026
  • Snyk pass 17 Aug 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01271
Opus 5.5 $0.00032 $0.00508
Sonnet 5.5 $0.00016 $0.00254
Haiku 4.5 $0.00008 $0.00127

Measured 1mo ago against content hash 6d33aa1c3995, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tdd/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/tdd -- Red-Green-Refactor for .NET

What

Guides a strict test-driven development cycle for .NET features. Instead of writing implementation first and bolting on tests after, this command flips the order: write a failing test that defines the desired behavior, implement the minimum code to make it pass, then refactor with confidence.

Every cycle uses the .NET testing stack:

  • xUnit v3 -- Test framework with [Fact] and [Theory]
  • WebApplicationFactory -- Integration tests against the real HTTP pipeline
  • Testcontainers -- Real databases (PostgreSQL, SQL Server) in tests
  • Verify -- Snapshot testing for complex response structures
  • FakeTimeProvider -- Deterministic time in tests

When

  • User says "TDD", "test-driven", "let's TDD this", "write the test first"
  • Building a new feature with clear acceptance criteria
  • Fixing a bug (write a test that reproduces the bug first, then fix)
  • Adding behavior to an existing feature (test the new behavior first)
  • Any time the user wants proof that code works before it ships

Skip TDD for: Trivial config changes, scaffolding without logic, documentation.

How

Cycle: Red -> Green -> Refactor

Each feature goes through one or more TDD cycles. A cycle covers one discrete behavior.

Step 1: Red -- Write the Failing Test

Write a test that describes the desired behavior. The test MUST fail because the implementation does not exist yet.

[Fact]
public async Task CreateOrder_WithValidItems_Returns201WithOrderId()
{
    // Arrange
    var client = _factory.CreateClient();
    var request = new CreateOrderRequest([
        new OrderItemRequest("SKU-001", 2, 29.99m)
    ]);

    // Act
    var response = await client.PostAsJsonAsync("/api/orders", request);

    // Assert — plain xUnit Assert (FluentAssertions v8+ requires a commercial license)
    Assert.Equal(HttpStatusCode.Created, response.StatusCode);
    var result = await response.Content.ReadFromJsonAsync<CreateOrderResponse>();
    Assert.NotNull(result);
    Assert.NotEqual(Guid.Empty, result.OrderId);
}

Read the full file on GitHub · 165 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 165 lines · 81 tokens per session scan A 6d33aa1c3995

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository codewithmukesh/dotnet-claude-kit (782 stars, last pushed 2mo ago), licensed MIT. It adds 81 tokens to every session and 1,271 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nw-fp-fsharp

F# language-specific patterns, Railway-Oriented Programming, and Computation Expressions.

nWave-ai/nWave · 21 tokens

test-driven-development

Drives .NET/C# development with tests — RED/GREEN/REFACTOR with xUnit (v2 or v3) or MSTest, the Prove-It Pattern for bug fixes, the test pyramid with WebApplicationFactory for integration and Playwright/Avalonia.Headless for E2E. Supports both VSTest and Microsoft.Testing.Platform (MTP) runners. Use when implementing…

peterblazejewicz/claude-plugins · 103 tokens

dotnet-tdd

.NET Core TDD workflow using xUnit, Moq, and FluentAssertions. Guides the Plan-Test-Implement-Review cycle for C# code. Use when user says "write tests first", "TDD", "Red-Green-Refactor", "unit test this handler", or asks to implement a feature test-driven. Do NOT use for integration tests, E2E tests, BDD/Gherkin…

cuongtl1992/vibe-skills · 108 tokens

csharp-tdd-develop

A guide for developing C# and .NET software with test-driven development, or TDD, where tests are written before the code. It follows the Red-Green-Refactor cycle and delegates work to sub-agents.

JeongHeonK/c-sharp-custom-marketplace · 43 tokens

kotlin-testing

Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

affaan-m/ECC · 38 tokens

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest, diagnosing failing or flaky tests, or adding coverage/sanitizers.

affaan-m/ECC · 34 tokens