From csharp-marketplace
C# 12 / .NET 8 기준 코드 작성 가이드라인. 코드 작성 전/중에 참조하는 knowledge-base skill. Modern C# 기능과 베스트 프랙티스를 자동 주입.
How this skill is triggered — by the user, by Claude, or both
Slash command
/csharp-marketplace:csharp-best-practicesThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
C# 12 / .NET 8 기준 코드 작성 가이드라인 knowledge-base skill.
rules/cs12-alias-any-type.mdrules/cs12-collection-expression.mdrules/cs12-inline-array.mdrules/cs12-lambda-defaults.mdrules/cs12-primary-constructor.mdrules/cs12-ref-readonly-param.mdrules/modern-file-scoped-namespace.mdrules/modern-list-pattern.mdrules/modern-pattern-matching.mdrules/modern-raw-string-literal.mdrules/modern-record-type.mdrules/modern-required-init.mdC# 12 / .NET 8 기준 코드 작성 가이드라인 knowledge-base skill.
이 스킬은 코드 작성 시 참조하는 가이드라인을 제공합니다. 코드 리뷰(csharp-code-review)와 달리, 작성 전/중에 올바른 패턴을 안내합니다.
| 구분 | csharp-code-review | csharp-best-practices |
|---|---|---|
| 목적 | 기존 코드 리뷰/검토 | 코드 작성 시 가이드라인 참조 |
| 시점 | 코드 작성 후 | 코드 작성 전/중 |
| 출력 | 리뷰 리포트 | 가이드라인 주입 |
$ARGUMENTS[0]: 조회할 토픽 (optional)
primary-constructor, record, pattern-matching코드 작성 시 반드시 고려해야 할 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 |
| 규칙 | 파일 | 버전 |
|---|---|---|
| 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 |
해당 규칙 파일을 읽고 가이드라인을 출력합니다.
/csharp-best-practices primary-constructor
→ rules/cs12-primary-constructor.md 내용 출력
전체 규칙 목록을 요약하여 출력합니다.
/csharp-best-practices
→ 12개 규칙 목록 + 간단 설명 출력
ARGUMENTS: $ARGUMENTS
npx claudepluginhub jeongheonk/c-sharp-custom-marketplace --plugin csharp-marketplaceGuides use of modern C# language features for .NET 10 and C# 14, including primary constructors, collection expressions, records, pattern matching, spans, and the field keyword.
Write modern, high-performance C# code using records, pattern matching, value objects, async/await, Span<T>/Memory<T>, and best-practice API design patterns. Emphasizes functional-style programming with C# 12+ features. Use when writing new C# code or refactoring existing code, designing public APIs for libraries or services, optimizing performance-critical code paths, or building async/await-heavy applications.
Develops modern C# and .NET applications using records, pattern matching, async/await, and enterprise patterns. Includes testing with xUnit/NUnit, performance optimization, and NuGet configuration.