csharp-guide

Provide C# and .NET 8+ coding standards and patterns for AI-assisted development.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill csharp-guide
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: csharp-guide
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/csharp-guide
Command: npx skills add https://github.com/ar4mirez/samuel --skill csharp-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guardrails, patterns, and best practices for C#/.NET development, ensuring consistency, maintainability, and adherence to project-specific coding standards.

Core Features & Use Cases

  • Language Standards: Enforces C# 12+ and .NET 8+ best practices, including nullable reference types, async/await, and LINQ.
  • Project Structure: Outlines a recommended layered architecture for .NET applications.
  • Testing & Tooling: Guides on unit/integration testing with xUnit, NSubstitute, and FluentAssertions, along with essential .NET CLI commands and editorconfig settings.
  • Use Case: When starting a new .NET project or onboarding a new developer, this Skill serves as the definitive guide to ensure all code written aligns with established quality and architectural principles.

Quick Start

Follow the C# guide to set up nullable reference types and async/await patterns in your .NET project.

Frequently Asked Questions about csharp-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for async/await and nullable reference types in C# 12?▼

Best practices for C# 12 involve enabling nullable reference types to enforce null safety and using async/await patterns to prevent blocking calls. This ensures consistency and maintainability across .NET 8+ applications.

How do I structure a .NET 8 project to follow standard architecture and coding standards?▼

To structure a .NET 8 project, follow a recommended layered architecture that separates concerns effectively. Adhering to these coding standards ensures all code aligns with established quality and architectural principles.

How do I set up unit testing in .NET using xUnit, NSubstitute, and FluentAssertions?▼

Set up .NET unit testing by configuring xUnit as the test runner, NSubstitute for mocking dependencies, and FluentAssertions for readable assertions. This combination provides comprehensive guardrails for testing standards.

Can I use this C# guide to enforce consistent code style and analysis in my environment?▼

Yes, you can enforce consistent code style and analysis by applying the provided editorconfig configurations. These settings ensure adherence to C# language guardrails and project-specific coding standards across your environment.

Does this C# development guide support dependency injection and LINQ guidelines?▼

Yes, the C# development guide supports dependency injection and provides specific LINQ guidelines. It covers essential .NET CLI commands and patterns to ensure maintainable code in .NET 8+ environments.

What is the recommended way to start a new .NET project using established coding standards?▼

The recommended way to start a new .NET project is to use this guide to set up nullable reference types, configure async/await patterns, and establish project structure. This ensures initial code aligns with quality principles.