dotnet-test-api

dotnet-test-api is a skill for Claude Code from landim32/awesome-ai-skills. It costs 126 tokens per session (3,876 once invoked), scanned A, original, MIT.

A manager for automated tests that check a .NET application's external REST API, using xUnit, Flurl.Http, and FluentAssertions.

In plain words
What is it for?
Use it to create or extend an .ApiTests project, test controllers through HTTP requests, configure authentication, and run tests against environments such as staging.
Why use it?
It keeps API integration tests separate from unit tests and lets a shared fixture authenticate once for a test session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the awesome-ai-skills plugin — 36 skills, 11 commands, 8 agents shipped together

Good fit Use it to create or extend an .ApiTests project, test controllers through HTTP requests, configure authentication, and run tests against environments such as staging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landim32/awesome-ai-skills/dotnet-test-api
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 landim32/awesome-ai-skills --skill dotnet-test-api
Clone the repo
git clone --depth 1 https://github.com/landim32/awesome-ai-skills

Made for: Claude Code.

Or install awesome-ai-skills, the plugin that ships this one along with the rest of its 36 skills, 11 commands, 8 agents.

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 dotnet-test-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test-api/github.svg)](https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test-api)
Your own site
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test-api"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test-api/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 dotnet-test-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/landim32/awesome-ai-skills/dotnet-test-api"><img src="https://agentmods.dev/badge/skills/landim32/awesome-ai-skills/dotnet-test-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,876 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.
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.00126 $0.03876
Opus 5.5 $0.00050 $0.01550
Sonnet 5.5 $0.00025 $0.00775
Haiku 4.5 $0.00013 $0.00388

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

Security

Grade A, and why

dotnet-test-api 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 2mo 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/dotnet-test-api/SKILL.md · 399 lines

How it starts

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

.NET API Test Project Manager (xUnit + Flurl + FluentAssertions)

You help developers create and maintain a dedicated <Solution>.ApiTests project for external API integration tests, cleanly separate from the unit-test project managed by the dotnet-test skill.

Input

The user describes an intent like:

  • create API tests for ScratchApi — boot a new <Solution>.ApiTests from scratch.
  • add tests for OrderController — append Controllers/OrderControllerTests.cs and grow Helpers/TestDataHelper.cs on demand.
  • switch auth preset to NAuth — rewrite the fixture using the NAuth preset.
  • run tests against staging — guidance on overriding config via environment variables.

Before generating, classify the intent into one of these four flows.

Pre-conditions

Before producing any file, read:

  1. The solution file <Solution>.sln to enumerate projects.
  2. Candidate DTO projects — see ## DTO Project Detection for the suffix scan.
  3. Whether <Solution>.ApiTests/ already exists. If yes, never overwrite csproj, fixtures, or existing controller files — only append new ones.
  4. Controller classes under <Solution>.API/Controllers/ (or equivalent) to discover routes, [Authorize]/[AllowAnonymous] attributes, and DTOs used by public endpoints.
  5. The target framework of the solution (default net8.0; if different, adjust package versions accordingly).

Project Layout Convention

Single project per solution, named <Solution>.ApiTests, sitting at the solution root alongside <Solution>.Tests:

<Solution>/
├── <Solution>.sln
├── <Solution>.Tests/                 ← unit tests (managed by `dotnet-test`)
└── <Solution>.ApiTests/              ← this skill
    ├── <Solution>.ApiTests.csproj
    ├── appsettings.Test.json         ← placeholders for secrets
    ├── Fixtures/
    │   ├── ApiTestFixture.cs
    │   └── ApiTestCollection.cs
    ├── Controllers/
    │   └── <Name>ControllerTests.cs  ← one per controller, added on demand
    └── Helpers/
        └── TestDataHelper.cs         ← grows per controller

Read the full file on GitHub · 399 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. 2mo ago First seen · 399 lines · 126 tokens per session scan A 5065dd33b1d0

Subscribe to this mod's changes

dotnet-test-api is a skill published in the GitHub repository landim32/awesome-ai-skills (1 stars, last pushed 4mo ago), licensed MIT. It adds 126 tokens to every session and 3,876 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

playwright-expert

Use when writing E2E tests with Playwright, setting up test infrastructure, or debugging flaky browser tests. Invoke to write test scripts, create page objects, configure test fixtures, set up reporters, add CI integration, implement API mocking, or perform visual regression testing. Trigger terms: Playwright, E2E…

Jeffallan/claude-skills · 94 tokens

test-master

Generates test files, creates mocking strategies, analyzes code coverage, designs test architectures, and produces test plans and defect reports across functional, performance, and security testing disciplines. Use when writing unit tests, integration tests, or E2E tests; creating test strategies or automation…

Jeffallan/claude-skills · 104 tokens

chaos-engineer

Designs chaos experiments, creates failure injection frameworks, and facilitates game day exercises for distributed systems — producing runbooks, experiment manifests, rollback procedures, and post-mortem templates. Use when designing chaos experiments, implementing failure injection frameworks, or conducting game day…

Jeffallan/claude-skills · 88 tokens

critique

Adversarial design critique of the current work. Render it, look at it, and argue for rejection. Run after the gates are green, never instead of them.

plugin87/ux-ui-agent-skills · 37 tokens

api-tester

A tool for creating and checking API tests from the real API contract and implementation. An API is the agreed way that software sends requests and receives responses.

laolaoshiren/claude-code-skills-zh · 86 tokens

endpoint-probe

Probes each major Agent Monitor API route — /api/stats, /api/analytics, /api/sessions, /api/pricing/cost, /api/workflows/runs, /api/cc-config/overview — and reports each one's HTTP status, latency, and response shape, flagging which are reachable. Use to verify a dashboard install is wired up correctly.

hoangsonww/Claude-Code-Agent-Monitor · 80 tokens