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.
npx claude-code-templates@latest --agent programming-languages/c-sharp-proWhat 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-pro2Manually: put the files in place
.claude/agents/c-sharp-pro.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/c-sharp-pro.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/c-sharp-pro.mdCursor also reads .claude/agents/
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.