dotnet-claude-code-kit: Instructions file for Claude Code

CLAUDE.md

dotnet-claude-code-kit CLAUDE.md is an instructions file for Claude Code from cwoodruff/dotnet-claude-code-kit. It costs 845 tokens per session, scanned A, original, MIT.

Solution instructions for a .NET web application, including its API, business-logic, database, and xUnit test projects, with rules for how those projects may depend on one another.

In plain words
What is it for?
Use them to build and test the application, run its API, check formatting, and create database migrations through the designated migration workflow.
Why use it?
They give developers the commands and coding conventions needed to build, test, run, format, and safely change the solution.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is cwoodruff/dotnet-claude-code-kit's own configuration. It tells Claude Code how to work on dotnet-claude-code-kit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotnet-claude-code-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cwoodruff/dotnet-claude-code-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cwoodruff/dotnet-claude-code-kit/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/cwoodruff/dotnet-claude-code-kit

Made for: Claude Code.

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-claude-code-kit CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cwoodruff/dotnet-claude-code-kit/claude-md/github.svg)](https://agentmods.dev/instructions/cwoodruff/dotnet-claude-code-kit/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/cwoodruff/dotnet-claude-code-kit/claude-md"><img src="https://agentmods.dev/badge/instructions/cwoodruff/dotnet-claude-code-kit/claude-md/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-claude-code-kit CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cwoodruff/dotnet-claude-code-kit/claude-md"><img src="https://agentmods.dev/badge/instructions/cwoodruff/dotnet-claude-code-kit/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 845 This file is loaded in full into every session.
When invoked 845 The same file — it is already loaded in full.
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.00845 $0.00845
Opus 5.5 $0.00338 $0.00338
Sonnet 5.5 $0.00169 $0.00169
Haiku 4.5 $0.00085 $0.00085

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

Security

Grade A, and why

dotnet-claude-code-kit CLAUDE.md 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.

CLAUDE.md · 63 lines

How it starts

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

CLAUDE.md — .NET Solution Guide

Project overview

[SolutionName] is an ASP.NET Core [10] solution: [one-sentence description].

[SolutionName]/
  [SolutionName].Api/      # ASP.NET Core Minimal API — endpoints, DI wiring, middleware
  [SolutionName].Core/     # Domain entities, interfaces, business rules (no project dependencies)
  [SolutionName].Data/     # EF Core DbContext, configurations, migrations (depends on Core only)
  [SolutionName].Tests/    # xUnit test project

Dependency direction: Api → Data → Core. Core never references Data or Api.

Build, test, and run

  • Build: dotnet build
  • Test: dotnet test --nologo
  • Run API: dotnet run --project [SolutionName].Api
  • Format check: dotnet format --verify-no-changes
  • Add a migration: use the /ef-migration skill — never hand-edit migration files

Run dotnet build after any multi-file change and fix all warnings, not just errors. Treat analyzer warnings as failures.

Conventions (always apply)

  • Target framework: net10.0. Nullable reference types are enabled; never introduce #nullable disable.
  • File-scoped namespaces, var when the type is apparent, expression-bodied members only for one-liners.
  • async/await all the way down. Never call .Result or .Wait(). Accept a CancellationToken in every async public API method and pass it through.
  • Use record types for DTOs and request/response models. Domain entities are classes.
  • Dependency injection everywhere: constructor injection only, no service locator, no new-ing services.
  • All EF Core queries in the Data project behind repository or service interfaces defined in Core.
  • Return Results.Problem(...) / TypedResults from Minimal API endpoints — correct status codes matter (201 for creation with Location header, 204 for deletes, 404 before 400 checks where relevant).
  • Logging via ILogger<T> with structured message templates ("Fetched {BookId}"), never string interpolation into the log call.

Read the full file on GitHub · 63 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 · 63 lines · 845 tokens per session scan A b12fbf4a6778

Subscribe to this mod's changes

dotnet-claude-code-kit CLAUDE.md is an instructions file published in the GitHub repository cwoodruff/dotnet-claude-code-kit (2 stars, last pushed 4mo ago), licensed MIT. It adds 845 tokens to every session, about $0.0034 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

dotnet-claude-code-kit CLAUDE.md compared with instructions from other repositories

dotnet-claude-code-kit CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-claude-code-kit CLAUDE.mdcwoodruff/dotnet-claude-code-kitInstructions file24mo agoMITA845Claude Code
plan-forge api-patterns.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA2,049GitHub Copilot
plan-forge errorhandling.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,113GitHub Copilot
graftcode graftcode-dotnet.instructions.mdgrft-dev/graftcodeInstructions file9671mo agononeA7,060GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode