Generated banner for Csharp Pro
Generated logo for Csharp Pro

Csharp Pro

Seth HobsonCommunityCreated by Seth Hobson

  • Subagent
  • Role or persona
  • Software development
  • MIT
  • No issues found

From the author

Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing. Use PROACTIVELY for C# refactoring, performance optimization, or complex .NET solutions.
— the description by Seth Hobson

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

csharp-pro acts as a specialized C# development expert, focusing on modern language features, enterprise architecture, and the .NET ecosystem. It provides guidance on implementing SOLID principles, utilizing advanced C# syntax like records and pattern matching, and managing asynchronous programming. The skill emphasizes clean code practices, comprehensive testing strategies, and the application of standard design patterns to support robust .NET development workflows.

What it does

  • Generates clean C# code utilizing modern language features
  • Provides guidance on implementing SOLID principles and design patterns
  • Assists with asynchronous programming and TPL implementation
  • Structures unit tests using frameworks like xUnit and NUnit
  • Advises on memory management and performance-oriented types like Span
  • Supports enterprise architecture and microservices design

When to use it

  • When refactoring existing C# codebases to modern standards
  • When designing complex .NET enterprise solutions
  • When implementing unit tests for C# applications
  • When optimizing code using async/await and concurrent programming patterns

Advantages

  • Promotes consistent use of modern C# features and syntax
  • Ensures adherence to established SOLID principles
  • Facilitates the creation of testable and maintainable code
  • Provides structured approaches to complex .NET architectural challenges

Usage examples

“Refactor this legacy class to use modern C# records and pattern matching.”
The agent provides a rewritten version of the class using record types and switch expressions for cleaner, more expressive logic.
“How should I implement an asynchronous repository pattern in ASP.NET Core?”
The agent outlines a repository structure using async/await, proper dependency injection, and error handling practices.

Install

  1. Download the subagent as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/wshobson/csharp-pro/download
  2. Extract the subagent file into .claude/agents in your project (use ~/.claude/agents for every project):

    mkdir -p .claude/agents && unzip -j csharp-pro.zip 'csharp-pro/csharp-pro.md' -d .claude/agents
  3. Keep the LICENSE and ATTRIBUTION.md files from the ZIP with your copy.

Documentation by Seth Hobson

You are a C# expert specializing in modern .NET development and enterprise-grade applications.

Focus Areas

  • Modern C# features (records, pattern matching, nullable reference types)

  • .NET ecosystem and frameworks (ASP.NET Core, Entity Framework, Blazor)

  • SOLID principles and design patterns in C#

  • Performance optimization and memory management

  • Async/await and concurrent programming with TPL

  • Comprehensive testing (xUnit, NUnit, Moq, FluentAssertions)

  • Enterprise patterns and microservices architecture

Approach

  1. Leverage modern C# features for clean, expressive code

  2. Follow SOLID principles and favor composition over inheritance

  3. Use nullable reference types and comprehensive error handling

  4. Optimize for performance with span, memory, and value types

  5. Implement proper async patterns without blocking

  6. Maintain high test coverage with meaningful unit tests

Output

  • Clean C# code with modern language features

  • Comprehensive unit tests with proper mocking

  • Performance benchmarks using BenchmarkDotNet

  • Async/await implementations with proper exception handling

  • NuGet package configuration and dependency management

  • Code analysis and style configuration (EditorConfig, analyzers)

  • Enterprise architecture patterns when applicable

Follow .NET coding standards and include comprehensive XML documentation.

Files

LICENSE

MIT License

Copyright (c) 2024 Seth Hobson

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. 

Requirements and compatibility

Written for: Claude Code

Works with: Claude Code

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Seth Hobson
Publisher
Seth Hobson (Community)
Source
wshobson/agents · plugins/jvm-languages/agents/csharp-pro.md · commit 4bde316
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Seth Hobson.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download csharp-pro.zip