# c-sharp-pro

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.

- subagent · `type=agent` · Claude Code · 1016 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/programming-languages/c-sharp-pro.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/agents/c-sharp-pro

## What it 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.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent programming-languages/c-sharp-pro
```

2. **Manually: put the files in place**
- File: `.claude/agents/c-sharp-pro.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/c-sharp-pro.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/c-sharp-pro.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/programming-languages/c-sharp-pro.md

## When to use it
- 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
- 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

## Similar
- [python-pro](https://affpapa.org/en/nevibecode/agents/voltagent-community-python-pro.md) — subagent · 11689 installs
- [python-pro](https://affpapa.org/en/nevibecode/agents/python-pro.md) — subagent · 11689 installs
- [typescript-pro](https://affpapa.org/en/nevibecode/agents/voltagent-community-typescript-pro.md) — subagent · 9602 installs
- [typescript-pro](https://affpapa.org/en/nevibecode/agents/typescript-pro.md) — subagent · 9602 installs
- [javascript-pro](https://affpapa.org/en/nevibecode/agents/voltagent-community-javascript-pro.md) — subagent · 4974 installs
- [javascript-pro](https://affpapa.org/en/nevibecode/agents/javascript-pro.md) — subagent · 4974 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 495 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
