csharp-best-practices
14
总安装量
9
周安装量
#23390
全站排名
安装命令
npx skills add https://github.com/jeongheonk/c-sharp-custom-marketplace --skill csharp-best-practices
Agent 安装分布
claude-code
8
github-copilot
8
codex
8
opencode
8
amp
6
Skill 文档
C# Best Practices
C# 12 / .NET 8 ê¸°ì¤ ì½ë ìì± ê°ì´ëë¼ì¸ knowledge-base skill.
Overview
ì´ ì¤í¬ì ì½ë ìì± ì 참조íë ê°ì´ëë¼ì¸ì ì ê³µí©ëë¤. ì½ë 리뷰(csharp-code-review)ì ë¬ë¦¬, ìì± ì /ì¤ì ì¬ë°ë¥¸ í¨í´ì ìë´í©ëë¤.
| êµ¬ë¶ | csharp-code-review | csharp-best-practices |
|---|---|---|
| 목ì | 기존 ì½ë 리뷰/ê²í | ì½ë ìì± ì ê°ì´ëë¼ì¸ 참조 |
| ìì | ì½ë ìì± í | ì½ë ìì± ì /ì¤ |
| ì¶ë ¥ | 리뷰 리í¬í¸ | ê°ì´ëë¼ì¸ 주ì |
Arguments
$ARGUMENTS[0]: ì¡°íí í í½ (optional)- 미ì§ì ì ì ì²´ ê·ì¹ ëª©ë¡ íì
- ì:
primary-constructor,record,pattern-matching
Rules
C# 12 Features (.NET 8) â CRITICAL
ì½ë ìì± ì ë°ëì ê³ ë ¤í´ì¼ í C# 12 기ë¥:
| ê·ì¹ | íì¼ | ì¤ëª |
|---|---|---|
| Primary Constructors | rules/cs12-primary-constructor.md |
class/struct ì§ì ìì±ì 매ê°ë³ì |
| Collection Expressions | rules/cs12-collection-expression.md |
[1, 2, 3] íµí© 구문 |
| Alias Any Type | rules/cs12-alias-any-type.md |
using alias 모ë íì
|
| Lambda Default Params | rules/cs12-lambda-defaults.md |
ëë¤ ê¸°ë³¸ 매ê°ë³ì |
| Inline Arrays | rules/cs12-inline-array.md |
struct ê³ ì í¬ê¸° ë°°ì´ |
| ref readonly Parameters | rules/cs12-ref-readonly-param.md |
ref/in ëª íí API |
Modern C# (C# 9-11, .NET 8 í¸í) â MEDIUM
| ê·ì¹ | íì¼ | ë²ì |
|---|---|---|
| Record Types | rules/modern-record-type.md |
C# 9 |
| required / init | rules/modern-required-init.md |
C# 11 |
| Pattern Matching | rules/modern-pattern-matching.md |
C# 8-11 |
| List Patterns | rules/modern-list-pattern.md |
C# 11 |
| Raw String Literals | rules/modern-raw-string-literal.md |
C# 11 |
| File-scoped Namespaces | rules/modern-file-scoped-namespace.md |
C# 10 |
Execution
í í½ ì§ì ì
í´ë¹ ê·ì¹ íì¼ì ì½ê³ ê°ì´ëë¼ì¸ì ì¶ë ¥í©ëë¤.
/csharp-best-practices primary-constructor
â rules/cs12-primary-constructor.md ë´ì© ì¶ë ¥
í í½ ë¯¸ì§ì ì
ì ì²´ ê·ì¹ 목ë¡ì ìì½íì¬ ì¶ë ¥í©ëë¤.
/csharp-best-practices
â 12ê° ê·ì¹ ëª©ë¡ + ê°ë¨ ì¤ëª
ì¶ë ¥
íì¬ ì ë¬ë°ì ì¸ì
ARGUMENTS: $ARGUMENTS
ì¤í ì§ì
- ARGUMENTSê° ìì¼ë©´ í´ë¹ í í½ê³¼ 매ì¹ëë ê·ì¹ íì¼ì ì°¾ì ë´ì©ì ì¶ë ¥íì¸ì.
- ARGUMENTSê° ë¹ì´ìì¼ë©´ ì ì²´ ê·ì¹ 목ë¡ì ìì½íì¬ ì¶ë ¥íì¸ì.
- ê·ì¹ ì¶ë ¥ ì Before/After ì½ë ìì를 ë°ëì í¬í¨íì¸ì.