スキル一覧に戻る
zadazorg

csharp-standards

by zadazorg

0🍴 0📅 2026年1月26日
GitHubで見るManusで実行

SKILL.md


name: csharp-standards description: Modern C# 14 / .NET 10 coding standards and best practices. trigger: "**/*.cs" allowed-tools: Read, Write, Edit, Bash, Grep, Glob

C# 14 / .NET 10 Coding Standards

Modern C# development standards based on CONSTITUTION.md.

Philosophy: Defensive Coding | Strict Analysis | Pragmatic DDD | Vertical Slices

Goal: Zero warnings, zero allocations on hot paths, type-safety, immutability.

Topic Files

TopicLoad When
type-architectureCreating classes, records, value objects
async-patternsWriting async code, CancellationToken
syntax-styleFormatting, naming, null handling
performanceOptimizing, collections, memory
testingWriting tests, Shouldly assertions
data-accessEF Core queries, DbContext
api-httpMinimal APIs, HTTP clients, security
architectureDI, vertical slices, validation
prohibitionsFull list of 47 forbidden patterns

Quick Rules

  • sealed internal by default
  • Records for data, Value Objects for domain primitives
  • ErrorOr instead of null or exceptions
  • Collection expressions [] not new List<T>()
  • TimeProvider not DateTime.Now
  • Shouldly not FluentAssertions (commercial)
  • K&R braces on same line, always mandatory

For detailed quick reference, see quick-ref.md.

Source of Truth

The authoritative source for all rules is CONSTITUTION.md in the repository root.

Project Templates

When user asks to update, sync, or initialize project configuration files, use these templates from the plugin:

FileTemplate Location
Directory.Build.propstemplates/Directory.Build.props
Directory.Packages.propstemplates/Directory.Packages.props
.editorconfigtemplates/.editorconfig
BannedSymbols.txttemplates/BannedSymbols.txt
Makefiletemplates/Makefile

Commands user might say:

  • "обнови мой editorconfig по стандартам"
  • "sync my Directory.Build.props"
  • "initialize project with C# standards"
  • "update config files from templates"

Workflow:

  1. Read the template file from plugin's templates/ directory
  2. Read user's current file (if exists)
  3. Show diff or ask before overwriting
  4. Write the updated file

Load specific topic files based on task context.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です