Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

csharp-conventions

БесплатноБез исполняемых скриптовНе проверен

C# code conventions covering .NET 8+/C# 12, nullable reference types, Roslyn analyzers, xUnit, record types, async/await discipline, and dependency security…

Goldziherот Goldziher★ 182 звезды на GitHub

Об этом скилле

  • .NET 8+ C# 12, file-scoped namespaces, primary constructors, <Nullable>enable</Nullable>.
  • Formatting: dotnet format + Roslyn analyzers, <TreatWarningsAsErrors>true</TreatWarningsAsErrors>.
  • Style enforcement: .editorconfig for consistent rules across team. Use an analyzer set (e.g., StyleCop.Analyzers or Roslynator).
  • Testing: xUnit with [Theory]/[InlineData], an assertion library (e.g., FluentAssertions), a coverage tool (e.g., coverlet) at 80%+.
  • Benchmarking: a benchmark harness (e.g., BenchmarkDotNet) for performance testing — never Stopwatch loops.
  • record types for immutable data, required properties, pattern matching in switch expressions.
  • Async: async/await throughout — never .Result or .Wait(), ValueTask for hot paths, avoid deadlocks.
  • Security: dotnet list package --vulnerable for CVE scanning. Zero tolerance for critical/high.
  • Dependencies: NuGet PackageReference, commit packages.lock.json, Directory.Build.props for shared config.
  • Collection expressions ([1, 2, 3]), required modifier, raw string literals for multi-line.
  • Anti-patterns: dynamic, object params, unguarded catch (Exception), #pragma warning disable.

Установить csharp-conventions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл csharp-conventions?

C# code conventions covering .NET 8+/C# 12, nullable reference types, Roslyn analyzers, xUnit, record types, async/await discipline, and dependency security. Load when writing or reviewing C# code.

Как установить скилл csharp-conventions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл csharp-conventions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить csharp-conventions с