← スキル一覧に戻る

csharp-standards
by zadazorg
⭐ 0🍴 0📅 2026年1月26日
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
| Topic | Load When |
|---|---|
| type-architecture | Creating classes, records, value objects |
| async-patterns | Writing async code, CancellationToken |
| syntax-style | Formatting, naming, null handling |
| performance | Optimizing, collections, memory |
| testing | Writing tests, Shouldly assertions |
| data-access | EF Core queries, DbContext |
| api-http | Minimal APIs, HTTP clients, security |
| architecture | DI, vertical slices, validation |
| prohibitions | Full 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
[]notnew 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:
| File | Template Location |
|---|---|
Directory.Build.props | templates/Directory.Build.props |
Directory.Packages.props | templates/Directory.Packages.props |
.editorconfig | templates/.editorconfig |
BannedSymbols.txt | templates/BannedSymbols.txt |
Makefile | templates/Makefile |
Commands user might say:
- "обнови мой editorconfig по стандартам"
- "sync my Directory.Build.props"
- "initialize project with C# standards"
- "update config files from templates"
Workflow:
- Read the template file from plugin's
templates/directory - Read user's current file (if exists)
- Show diff or ask before overwriting
- 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
レビュー
💬
レビュー機能は近日公開予定です