Skip to main content
subagent

c-sharp-pro — Claude Code subagent: what it does, how to install

A dedicated subagent for C# 12 and 13, ASP.NET Core, and EF Core. It writes modern .NET code, structures Clean Architecture, and prepares integration test suites.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent programming-languages/c-sharp-pro
Open on GitHub

What c-sharp-pro does

This subagent assists with .NET software development. It targets modern C# 12 and 13 syntax, handling collection expressions, pattern matching, and primary constructors. When setting up persistent storage, the agent applies Entity Framework Core or Dapper, organizing codebases into vertical slices or Clean Architecture patterns.

The subagent operates using the Read, Write, Edit, and Bash tools in Claude Code. It configures unit testing through xUnit or NUnit with Moq, plus integration suites based on TestContainers and WebApplicationFactory. For microservice communication, it relies on gRPC and MassTransit.

The agent prioritizes built-in .NET runtime features over external packages whenever a native alternative exists. It will avoid adding third-party dependencies unless the standard platform libraries cannot address the problem.

What it helps with

  • Refactor legacy .NET code to C# 12 and 13 collection expressions
  • Scaffold ASP.NET Core minimal APIs following Clean Architecture principles
  • Write integration tests using WebApplicationFactory and TestContainers
  • Profile memory allocation and execution speed with BenchmarkDotNet

Example prompts for the agent

  • Scaffold a clean architecture layout for a new ASP.NET Core microservice
  • Refactor this service class to use C# 13 primary constructors and collection expressions
  • Create integration tests for the authentication endpoint using WebApplicationFactory

How to install c-sharp-pro

1claude-code-templates

npx claude-code-templates@latest --agent programming-languages/c-sharp-pro

2Manually: put the files in place

.claude/agents/c-sharp-pro.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about c-sharp-pro

How to install c-sharp-pro in Claude Code?

Run npx claude-code-templates@latest --agent programming-languages/c-sharp-pro in your terminal. You can also place the configuration file directly at .claude/agents/c-sharp-pro.md.

What does the c-sharp-pro subagent do?

It generates idiomatic C# code, builds ASP.NET Core APIs, and configures automated test suites. The agent prevents asynchronous deadlocks and follows official Microsoft guidelines.

Which tools does c-sharp-pro require?

It relies on Read, Write, Edit, and Bash to inspect files, edit source code, and run build commands in your environment.

Similar subagents

All subagents for Programming languages →

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor