personal-csharp

Installation
SKILL.md

C# Conventions

Personal C# style, structure, and runtime conventions in one place: how code is shaped (naming, layout, syntax) and how it behaves (async, I/O, exceptions, logging, DI). Style is enforced by .editorconfig (Allman braces, 120-char line limit, file-scoped namespaces) and EnforceCodeStyleInBuild=true.

Specialized concerns route through the personal-dotnet router - one table mapping each area (concurrency, performance / memory layout, design patterns, serialization, DI registration, config binding, DDD, architecture, packaging) to its focused skill. Load the skill the router names; this file stays the style and runtime baseline only.


Style and Structure

File structure

  • Max 300 lines per file. Split by extracting cohesive groups of methods into new classes.
  • Max 120 chars per line in .cs files. Count visible characters before committing. Markdown, JSON, config files exempt.
  • Partial classes only for generated code (EF migrations, designer files) or extending a generated class.
  • One top-level type per file. File name must match the type name exactly.
  • File-scoped namespaces: namespace MyApp.Services; - never the braced form.
Installs
33
Repository
envoydev/skills
First Seen
Jun 2, 2026
personal-csharp — envoydev/skills