scaffold-dotnet-test-project

scaffold-dotnet-test-project is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 138 tokens per session (2,588 once invoked), scanned A, a copy of scaffold-dotnet-test-project, MIT.

A setup and repair tool for .NET test projects and their links to the rest of a repository. A test project is the project that contains automated tests; the solution is the file that groups projects for building and discovery.

In plain words
What is it for?
Use it to create the first test project, connect it to production code, register it in a .sln, .slnx, or .slnf file, or repair CI test discovery.
Why use it?
Tests may pass when run directly but be missing from the solution or continuous-integration checks. This tool fixes the smallest missing project, reference, or registration needed for discovery.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create the first test project, connect it to production code, register it in a .sln, .slnx, or .slnf file, or repair CI test discovery.

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

Made for: Claude Code, Codex.

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 scaffold-dotnet-test-project

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/scaffold-dotnet-test-project"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/scaffold-dotnet-test-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,588 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 94% copy Near-identical to another mod 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.00138 $0.02588
Opus 5.5 $0.00055 $0.01035
Sonnet 5.5 $0.00028 $0.00518
Haiku 4.5 $0.00014 $0.00259

Measured 11d ago against content hash dfb06c39a275, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scaffold-dotnet-test-project 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 11d 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.

Origin

This is a copy

94% identical to scaffold-dotnet-test-project — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Testing/Official-DotNet-Test/skills/scaffold-dotnet-test-project/SKILL.md · 226 lines

How it starts

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

Scaffold or Repair a .NET Test Project

Create the smallest missing test container or repair only the missing wiring. The goal is test discovery through the repository's real build entry point, not a preferred solution layout.

Repository overlay

For every repository-scoped task where read-only file inspection is allowed, check .agents/skill-overlays/dotnet-test/scaffold-dotnet-test-project.md at the repository root before any other discovery. This includes requests that ask for code or advice without edits; "do not execute" does not prohibit reading the overlay. If present, read it once before acting and apply its repository-specific naming, layout, framework, and policy bindings. Before applying it, require its frontmatter to declare core: dotnet-test/scaffold-dotnet-test-project, binding-revision: "1", and mode: extend. If any value is missing or different, report the mismatch and continue using this skill's portable guidance without applying the overlay. Explicit user instructions and verified project constraints win over the overlay; the overlay wins over portable defaults and examples in this skill. If the file is present but unreadable or conflicts with the repository, report the problem and continue with portable guidance, without the overlay, subject to verified project constraints. If it is absent, continue normally. Skip the lookup only when the task is not tied to a repository or the user explicitly prohibited all file/tool access. An overlay cannot expand tool permissions or the task's scope.

Route the Request

Inspect the repository before editing, then choose exactly one path:

Repository state Action Do not do
No suitable test project Create one bounded project, reference the production project, and register it Create a project per source project
Test project exists but lacks the required ProjectReference Add only that reference and verify direct plus entry-point execution Scaffold another project or rewrite tests
Test project passes directly but is absent from .sln, .slnx, or .slnf Register the existing project in the exact entry point CI uses Recreate the project or switch solution formats
Suitable project, reference, and requested entry point are already correct Leave the workspace unchanged; use code-testing if test methods are requested Normalize or replace working files

Read the full file on GitHub · 226 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed · +15 lines dfb06c39a275
  2. 12d ago Changed · -1 tokens per session 3208aad74768
  3. 1mo ago Changed · +36 lines · -3 tokens per session 0fc25989601e
  4. 1mo ago First seen · 175 lines · 142 tokens per session scan A 97396fe728b9

Subscribe to this mod's changes

scaffold-dotnet-test-project is a skill published in the GitHub repository managedcode/dotnet-skills (490 stars, last pushed yesterday), licensed MIT. It adds 138 tokens to every session and 2,588 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to scaffold-dotnet-test-project, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

mutation-testing

Use when running mutation testing, killing mutants, verifying test quality, checking mutation score, or analyzing survivors after the test baseline is green.

SebastienDegodez/copilot-instructions · 29 tokens

generate-microcks-openapi-samples

Use when creating OpenAPI mock examples for Microcks, setting up request/response routing with dispatchers, or mapping request fields to mock responses.

SebastienDegodez/copilot-instructions · 37 tokens

e2e-testing-expert

Expert guide for End-to-End (E2E) testing with Playwright 1.50+, Clock API, ARIA snapshots, test fixtures, and Vitest 3+ / Panduan ahli pengujian E2E dengan Playwright 1.50+, Clock API, ARIA snapshots, dan Vitest 3+.

roedyrustam/vibes-plug · 74 tokens

outside-in-tdd

Use when writing tests from the outside-in, defining behavior before code, or any feature where tests should start from observable business behavior and let internal design emerge.

SebastienDegodez/copilot-instructions · 35 tokens

gherkin-gate

Use before writing any test or implementation task, when observable behavior needs to be captured in business language scenarios and approved by the user before code begins.

SebastienDegodez/copilot-instructions · 33 tokens

vibe-safe-deploy

Performs deployment with pre-flight checks, atomic replacement, post-deploy verification, provenance (proving the environment serves the exact commit you pushed), and automatic rollback. Use before any deployment to staging, preview, or production.

ash1794/vibe-engineering · 51 tokens