csharp-style

Enforce Sun Lab C# coding conventions across .cs files.

3|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/Sun-Lab-NBB/ataraxis --skill csharp-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-style
Source: https://github.com/Sun-Lab-NBB/ataraxis/tree/main/plugins/automation/skills/csharp-style
Command: npx skills add https://github.com/Sun-Lab-NBB/ataraxis --skill csharp-style

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill ensures all C# code adheres to the Sun Lab's established coding conventions, improving code quality, consistency, and maintainability across projects.

Core Features & Use Cases

  • Code Formatting: Applies consistent indentation, brace style, and line length.
  • Naming Conventions: Enforces PascalCase, camelCase, and _camelCase for fields, properties, and methods.
  • Documentation Standards: Ensures comprehensive XML documentation for all code elements.
  • Unity-Specific Patterns: Guides the use of MonoBehaviour, ScriptableObject, and serialization.
  • Use Case: When writing new C# code for a Unity project, use this Skill to ensure your code follows best practices for readability and consistency, preventing common style violations.

Quick Start

Apply Sun Lab C# coding conventions to the file '/src/MyClass.cs'.

Frequently Asked Questions about csharp-style

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

FAQPage Schema
How do I enforce C# coding standards for Unity projects?

To enforce C# coding standards for Unity projects, apply conventions covering MonoBehaviour, ScriptableObject, naming, and formatting. This ensures consistent code style and readability across your .cs files.

What are the C# naming conventions for fields, properties, and methods?

C# naming conventions require PascalCase for properties and methods, camelCase for local variables, and `_camelCase` for fields. Adhering to these conventions improves code quality and maintainability.

Does this C# style guide require EditorConfig and CSharpier tooling?

Yes, adhering to C# coding conventions requires compliance with CSharpier and EditorConfig tooling standards. These tools automate consistent code style and structure across C# projects.

How do I write XML documentation for C# code elements?

Writing XML documentation for C# code requires comprehensive descriptions for all code elements. Following established coding conventions ensures your documentation standards meet project requirements for readability.

Can I use these coding conventions for C++ and Python projects too?

Yes, the tooling standards support consistent code style and structure across C++, C#, and Python projects, though the specific conventions enforced focus primarily on C# and .cs files.