Coding Standards

Enforce mandatory C# coding standards for the Nexus Agent project.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/diazvaldiviav/Nexus-agent --skill coding-standards-diazvaldiviav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Coding Standards
Source: https://github.com/diazvaldiviav/Nexus-agent/tree/main/.claude/skills/coding-standards
Command: npx skills add https://github.com/diazvaldiviav/Nexus-agent --skill coding-standards-diazvaldiviav

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures all C# code within the Nexus Agent project adheres to a consistent, high-quality standard, reducing bugs and improving maintainability.

Core Features & Use Cases

  • C# Language Standards: Covers nullability, async/await, type annotations, and naming conventions.
  • Class Patterns: Provides templates for Services, Models (POCOs), and ViewModels.
  • Error Handling: Mandates descriptive error messages and proper exception handling.
  • File Organization: Defines a clear directory structure and file size limits.
  • Configuration & DI: Enforces the use of configuration files and Dependency Injection.
  • Use Case: When writing a new service, refer to this Skill to ensure it follows the established patterns for dependency injection, async operations, and error handling, making it easily understandable by other team members.

Quick Start

Ensure all new C# code follows the naming conventions and async/await patterns outlined in this skill.

Frequently Asked Questions about Coding Standards

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#?

C# coding standards mandate enabling nullable reference types and following strict async/await patterns to prevent deadlocks. These practices ensure robust error handling and maintain consistent code quality across services.

How do I organize C# services, models, and ViewModels in a .NET project?

Organizing C# services, models, and ViewModels requires adhering to defined class patterns and file size limits. This structure separates business logic from data representation to improve project maintainability.

How do I set up dependency injection and configuration for C# services?

Setting up dependency injection and configuration involves registering services in the DI container and binding settings from configuration files. This approach enforces loose coupling and centralizes management of application parameters.

What is the standard for error handling and exceptions in C# .NET applications?

Standard error handling in C# .NET applications requires implementing descriptive error messages and proper exception catching. This ensures failures are traceable and prevents unhandled crashes during async operations.

Do I need to follow specific naming conventions when refactoring C# code?

Yes, refactoring C# code requires following established naming conventions and type annotations to maintain consistency. Adhering to these standards reduces bugs and ensures the codebase remains easily understandable.

Can I use these C# coding standards for projects outside of the Nexus Agent?

These C# coding standards are designed for the Nexus Agent project but provide a strong baseline for any .NET application. The patterns for dependency injection, file organization, and error handling are universally applicable.