test

A test-first workflow for .NET code, also called TDD, where tests describe the expected behavior before the implementation is written. The code is then added and checked until the tests pass; bug fixes begin with a test that reproduces the bug.

In plain words
What is it for?
Use it for new features and bug fixes, including integration work such as HTTP endpoints, database queries, browser-based Blazor or Razor pages, and Avalonia views.
Why use it?
Writing the test first clarifies the intended behavior and provides evidence that a bug is fixed. Running the tests throughout the change also helps detect regressions, meaning old behavior breaking unexpectedly.

Command

Part of the dotnet-skills plugin — 24 skills, 9 commands, 4 agents shipped together

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.

agentmods
npx agentmods add commands/peterblazejewicz/claude-plugins/test
Clone the repo
git clone --depth 1 https://github.com/peterblazejewicz/claude-plugins

Or install dotnet-skills, the plugin that ships this one along with the rest of its 24 skills, 9 commands, 4 agents.

Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 396 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00030 $0.00396
Opus 5 $0.00015 $0.00198
Sonnet 5 $0.00006 $0.00079
Haiku 4.5 $0.00003 $0.00040

Measured 3d ago against content hash 21d45a14bb59, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test 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 3d 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.

plugins/dotnet-skills/commands/test.md · 29 lines

What it actually says

Invoke the dotnet-skills:test-driven-development skill.

For new features:

  1. Write xUnit or MSTest tests that describe the expected behavior (they should FAIL)
  2. Implement the C# code to make them pass
  3. Refactor while keeping tests green — run dotnet test after each change

For bug fixes (Prove-It pattern):

  1. Write a test that reproduces the bug (must FAIL)
  2. Confirm the test fails: dotnet test --filter FullyQualifiedName~<NewTest>
  3. Implement the fix
  4. Confirm the test passes
  5. Run the full test suite for regressions: dotnet test

For integration-boundary issues — HTTP endpoints, EF Core queries against a real database, Blazor/Razor pages in a real browser, or Avalonia views — also invoke dotnet-skills:integration-testing-dotnet to cover WebApplicationFactory<T>, Testcontainers, Microsoft.Playwright, and Avalonia.Headless.XUnit.


Source & Modifications

  • Upstream: addyosmani/agent-skills.claude/commands/test.md at pinned SHA 44dac80
  • Status: modified (skill references retargeted to the dotnet-skills: prefix; critical substitution: upstream's agent-skills:browser-testing-with-devtools does not exist downstream — rewritten as dotnet-skills:integration-testing-dotnet, which covers the four .NET integration boundaries; framework labels changed from generic "tests" to "xUnit or MSTest tests"; commands use dotnet test --filter FullyQualifiedName~... for single-test runs)
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. 3d ago First seen · 29 lines · 30 tokens per session scan A 21d45a14bb59

Subscribe to this mod's changes

test is a command published in the GitHub repository peterblazejewicz/claude-plugins (7 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 396 once invoked, about $0.0002 per session on Opus 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-31.