csharp-pro
What it does
This skill gives your AI agent expert guidance for writing modern C# and .NET applications. It is for developers building ASP.NET, Entity Framework or Blazor projects.
When to use it
- ✓When you build or refactor a C# or .NET application.
- ✓When you need async code that does not block, or help with the Task Parallel Library.
- ✓When you want clean C# code with tests using xUnit, NUnit or Moq.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/csharp-pro/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Refactor this C# service to use records and async/await, and add xUnit tests.”
5 new skills a week. 1 minute to read.
How it works
The agent uses modern C# features and sound design principles to write the code. It also aims for good performance and meaningful unit tests.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Use this skill when
- Working on csharp pro tasks or workflows
- Needing guidance, best practices, or checklists for csharp pro
Do not use this skill when
- The task is unrelated to csharp pro
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
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
- Leverage modern C# features for clean, expressive code
- Follow SOLID principles and favor composition over inheritance
- Use nullable reference types and comprehensive error handling
- Optimize for performance with span, memory, and value types
- Implement proper async patterns without blocking
- 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.
FAQ
Which frameworks does it cover?
It covers ASP.NET Core, Entity Framework and Blazor.
Which testing tools does it mention?
It mentions xUnit, NUnit, Moq and FluentAssertions.
Does it cover design patterns?
Yes, it includes SOLID principles and common enterprise patterns.
Details
Original description by 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.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8747
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.