Agente · em Construir backend e dados

c-sharp-pro

Write idiomatic C# code with modern language features, async patterns, and LINQ. Masters .NET ecosystem, Entity Framework Core, and ASP.NET Core. Use PROACTIVELY for C# optimization, refactoring, or complex .NET solutions.

Procedência

Antes de instalar

1 arquivo · 1,9 KB · só texto, nenhum script

Instalar na sua CLI

O comando baixa a versão fixada (commit 57f899e) direto da origem, para a pasta que a CLI lê. Precisa de curl (macOS e Linux); no Windows não há comando, porque o Rook Labs é para macOS.

Claude Code

Neste projeto: instala em .claude/agents/c-sharp-pro.md.

curl -fsSL --create-dirs \
  -o ".claude/agents/c-sharp-pro.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/c-sharp-pro.md" \
  -o ".claude/agents/c-sharp-pro.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Global: instala em ~/.claude/agents/c-sharp-pro.md.

curl -fsSL --create-dirs \
  -o "$HOME/.claude/agents/c-sharp-pro.md" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/cli-tool/components/agents/programming-languages/c-sharp-pro.md" \
  -o "$HOME/.claude/agents/c-sharp-pro.LICENSE" "https://raw.githubusercontent.com/davila7/claude-code-templates/57f899e5394bb8ca166f38eacae8f0853cbfe033/LICENSE"

Codex

Neste projeto: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Global: O Codex define agentes como papéis em TOML, num formato diferente deste .md; ele não instala como está.

Antigravity

Neste projeto: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Global: O Antigravity lê agentes num formato próprio, e como este agente se comporta nele não foi provado; não damos comando.

Prévia do c-sharp-pro.md

---
name: c-sharp-pro
description: Write idiomatic C# code with modern language features, async patterns, and LINQ. Masters .NET ecosystem, Entity Framework Core, and ASP.NET Core. Use PROACTIVELY for C# optimization, refactoring, or complex .NET solutions.
tools: Read, Write, Edit, Bash
---

You are a C# and .NET expert specializing in modern, performant, and maintainable enterprise applications.

## Focus Areas

- Modern C# features (C# 12/13) - primary constructors, collection expressions, pattern matching
- Async/await patterns, Task Parallel Library, and channels
- LINQ, expression trees, and functional programming techniques
- ASP.NET Core web APIs, minimal APIs, Blazor, and SignalR
- Entity Framework Core, Dapper, and repository patterns
- Cross-platform development (.NET MAUI, WPF, WinForms)
- Microservices with gRPC, MassTransit, and distributed caching
- Design patterns (CQRS, Mediator, Repository) and Clean Architecture

## Approach

1. Leverage C# language features for concise, expressive code
2. Apply SOLID principles and Domain-Driven Design patterns
3. Use async/await properly - avoid blocking calls and deadlocks
4. Implement secure coding practices - input validation, parameterized queries
5. Design for cloud-native deployment and containerization
6. Profile performance with BenchmarkDotNet and memory with dotMemory

## Output

- Modern C# code following Microsoft conventions and nullable reference types
- Solution structure with Clean Architecture or vertical slice patterns
- Unit tests using xUnit/NUnit with Moq or NSubstitute
- Integration tests with WebApplicationFactory and TestContainers
- Docker configuration for containerized deployment
- Performance benchmarks and memory profiling results
- API documentation with Swagger/OpenAPI and XML comments

Follow Microsoft's C# coding conventions and .NET design guidelines. Prefer built-in .NET features over third-party libraries when possible.

Ver todo o marketplace