Skip to main content
plugin CX Codex

dotnet-contribution — Claude Code plugin for .NET development

This plugin adds an agent and a skill for C#, ASP.NET Core, Entity Framework Core, and Dapper work. Use them to plan APIs, review code, or choose a data-access approach.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install dotnet-contribution@claude-code-workflows
Open on GitHub

What dotnet-contribution does

The plugin includes the dotnet-architect agent for API design, code review, and architecture decisions, plus the dotnet-backend-patterns skill covering services, repositories, dependency injection, caching, and tests. It also ships service and repository templates, along with EF Core and Dapper reference guides.

Ask the agent to plan a REST API or inspect an EF Core query for N+1 issues. The skill can guide a Dapper repository implementation. Other subjects include Minimal APIs and controllers, transactions, Redis caching, and integration tests with WebApplicationFactory. These are patterns and templates, not a ready-made application.

The compatibility table lists .NET 8.0+, C# 12+, ASP.NET Core 8.0+, and EF Core 8.0+. It also lists SQL Server 2019+ and Redis 6.0+. Projects on earlier versions may not match the plugin’s examples.

What it helps with

  • design a REST API for order management
  • review async code for issues
  • spot N+1 problems in an EF Core query
  • choose EF Core or Dapper for a read scenario
  • build a Dapper repository from the provided patterns

Example prompts for the agent

  • Ask dotnet-architect to design a REST API for orders with DTOs and validation.
  • Have dotnet-architect check this EF Core query for N+1 issues.
  • Use dotnet-backend-patterns to implement a repository with Dapper.

How to install dotnet-contribution

Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install dotnet-contribution@claude-code-workflows

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about dotnet-contribution

How do I install dotnet-contribution in Claude Code?

Run these commands in order: /plugin marketplace add wshobson/agents, then /plugin install dotnet-contribution@claude-code-workflows.

What does dotnet-contribution do?

It adds an agent for architecture decisions and code review, plus a skill with .NET backend patterns. The plugin also includes service and repository templates and guides for EF Core and Dapper.

Which .NET versions does dotnet-contribution target?

Its compatibility table lists .NET 8.0+, C# 12+, ASP.NET Core 8.0+, and EF Core 8.0+. It lists SQL Server 2019+ and Redis 6.0+ as well.

Source text

dotnet-contribution · MIT
# .NET Backend Development Plugin

A comprehensive plugin for .NET backend development with C#, ASP.NET Core, Entity Framework Core, and Dapper.

## Overview

This plugin provides agents, skills, and patterns for building production-grade .NET applications. It focuses on modern C# (12/13), ASP.NET Core 8+, and enterprise development patterns.

## Contents

### Agents

| Agent              | Model  | Description                                                                        |
| ------------------ | ------ | ---------------------------------------------------------------------------------- |
| `dotnet-architect` | Sonnet | Expert .NET architect for API development, code review, and architecture decisions |

### Skills

| Skill                     | Description                                                                 |
| ------------------------- | --------------------------------------------------------------------------- |
| `dotnet-backend-patterns` | Comprehensive patterns for services, repositories, DI, caching, and testing |

### Assets

- `service-template.cs` - Complete service implementation with Result pattern, validation, caching
- `repository-template.cs` - Repository implementations with Dapper and EF Core

### References

- `ef-core-best-practices.md` - EF Core optimization guide
- `dapper-patterns.md` - Advanced Dapper usage patterns

## Usage

### With Claude Code CLI

```bash
# General .NET architecture help
claude -p "Act as dotnet-architect and design a caching strategy for my product catalog"

# Code review
claude -p "Act as dotnet-architect and review this async code for issues"

# Implementation help
claude -p "Use dotnet-backend-patterns skill to implement a repository with Dapper"
```

### Example Prompts

1. **API Design**

   ```
   Act as dotnet-architect. Design a REST API for order management with proper
   DTOs, validation, and error handling.
   ```

2. **Performance Review**

   ```
   Act as dotnet-architect. Review this EF Core query for N+1 problems and
   suggest optimizations.
   ```

3. **Architecture Decision**
   ```
   Act as dotnet-architect. Should I use EF Core or Dapper for this high-throughput
   read scenario? Explain trade-offs.
   ```

## Topics Covered

### C# Language

- Async/await patterns and pitfalls
- LINQ optimization
- Records and immutability
- Pattern matching
- Nullable reference types
- Memory-efficient programming

### ASP.NET Core

- Minimal APIs and Controllers
- Dependency Injection (Scoped, Singleton, Transient, Keyed)
- Configuration with IOptions
- Middleware pipeline
- Authentication/Authorization
- Health checks

### Data Access

- Entity Framework Core best practices
- Dapper for high-performance queries
- Repository pattern
- Unit of Work
- Connection management
- Transaction handling

### Caching

- IMemoryCache
- IDistributedCache with Redis
- Multi-level caching
- Cache invalidation
- Distributed locking

### Testing

- xUnit fundamentals
- Moq for mocking
- Integration tests with WebApplicationFactory
- Test patterns and best practices

## Stack Compatibility

| Technology            | Version |
| --------------------- | ------- |
| .NET                  | 8.0+    |
| C#                    | 12+     |
| ASP.NET Core          | 8.0+    |
| Entity Framework Core | 8.0+    |
| SQL Server            | 2019+   |
| Redis                 | 6.0+    |

## Contributing

Contributions welcome! Please ensure:

- Code examples compile and follow C# conventions
- Patterns are production-tested
- Documentation is clear and includes examples

## License

MIT License - See repository root for details.

© Seth Hobson · MIT · wshobson/agents

Similar plugins

All plugins for Backend and APIs →

From the same set371

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