Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

dotnet-csharp

/dotnet-csharp

Podpowiada wzorce języka C#: rekordy, dopasowanie wzorców, async i await, DI, LINQ, serializację i analizatory Roslyn.

Repozytorium
dotnet-artisan ↗
Licencja
MIT
Ostatnia zmiana repozytorium
17.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
27
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 17.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Podpowiada wzorce języka C#: rekordy, dopasowanie wzorców, async i await, DI, LINQ, serializację i analizatory Roslyn.

Oryginalny opis (EN)

Baseline C# skill loaded for every .NET code path. Guides language patterns (records, pattern matching, primary constructors, C# 8-15), coding standards, async/await, DI, LINQ, serialization, domain modeling, concurrency, Roslyn analyzers, globalization, native interop (P/Invoke, LibraryImport, ComWrappers), WASM interop (JSImport/JSExport), and type design. Spans 25 topics. Do not use for ASP.NET endpoint architecture, UI framework patterns, or CI/CD guidance.

Jak działa

  1. Overview
  2. Routing Table
  3. Scope
  4. Out of scope
Sekcje z nagłówków SKILL.md, w oryginale · 69 linii, 730 słów
Podgląd SKILL.md
---
name: dotnet-csharp
description: Baseline C# skill loaded for every .NET code path. Guides language patterns (records, pattern matching, primary constructors, C# 8-15), coding standards, async/await, DI, LINQ, serialization, domain modeling, concurrency, Roslyn analyzers, globalization, native interop (P/Invoke, LibraryImport, ComWrappers), WASM interop (JSImport/JSExport), and type design. Spans 25 topics. Do not use for ASP.NET endpoint architecture, UI framework patterns, or CI/CD guidance.
license: MIT
user-invocable: false
---

# dotnet-csharp

## Overview

C# language patterns, coding standards, and .NET runtime features for idiomatic, performant code. This consolidated skill spans 25 topic areas. Load the appropriate companion file from `references/` based on the routing table below.

### Always-Load Baseline

These references define correctness and quality standards that apply to all C# code — load them by default whenever producing or reviewing code, regardless of what the user asked for:

- `references/coding-standards.md` — naming conventions, file layout, style rules
- `references/async-patterns.md` — async/await correctness, ConfigureAwait, cancellation propagation (nearly all .NET code uses async)
- `references/solid-principles.md` — SOLID, DRY, single responsibility, dependency inversion, anti-pattern detection
- `references/code-smells.md` — common mistakes the agent should avoid without being told (async void, DI lifetime misuse, swallowed exceptions)
- `references/dotnet-releases.md` — .NET 10/11 and C# 14/15 features, version matrix, TFM-specific code generation rules (compensates for training data cutoff)

### On-Demand References

Load these when the topic matches (see Routing Table keywords):

## Routing Table

| Topic | Keywords | Description | Companion File |
|-------|----------|-------------|----------------|
| Coding standards | naming, file layout, style rules | Baseline C# conventions (naming, layout, style rules) | references/coding-standards.md |
| Async/await | async, Task, ConfigureAwait, cancellation | async/await, Task patterns, ConfigureAwait, cancellation | references/async-patterns.md |
| Dependency injection | DI, services, scopes, keyed, lifetimes | MS DI, keyed services, scopes, decoration, lifetimes | references/dependency-injection.md |
| Configuration | Options pattern, user secrets, feature flags | Options pattern, user secrets, feature flags, IOptions\<T\> | references/configuration.md |
| Source generators | IIncrementalGenerator, GeneratedRegex, LoggerMessage | IIncrementalGenerator, GeneratedRegex, LoggerMessage, STJ | references/source-generators.md |
| Nullable reference types | annotations, migration, agent mistakes | Annotation strategies, migration, agent mistakes | references/nullable-reference-types.md |
| Serialization | System.Text.Json, Protobuf, MessagePack, AOT | System.Text.Json source generators, Protobuf, MessagePack | references/serialization.md |
| Channels | Channel\<T\>, bounded/unbounded, backpressure | Channel\<T\>, bounded/unbounded, backpressure, drain | references/channels.md |
| LINQ optimization | IQueryable vs IEnumerable, compiled queries | IQueryable vs IEnumerable, compiled queries, allocations | references/linq-optimization.md |
| Domain modeling | aggregates, value objects, domain events | Aggregates, value objects, domain events, repositories | references/domain-modeling.md |
| SOLID principles | SRP, DRY, anti-patterns, compliance checks | SOLID and DRY principles, C# anti-patterns, fixes | references/solid-principles.md |
| Concurrency | lock, SemaphoreSlim, Interlocked, concurrent collections | lock, SemaphoreSlim, Interlocked, concurrent collections | references/concurrency-patterns.md |
| Roslyn analyzers | DiagnosticAnalyzer, CodeFixProvider, multi-version | DiagnosticAnalyzer, CodeFixProvider, CodeRefactoring | references/roslyn-analyzers.md |
| Editorconfig | IDE/CA severity, AnalysisLevel, globalconfig | IDE/CA severity, AnalysisLevel, globalconfig, enforcement | references/editorconfig.md |
| File I/O | FileStream, RandomAccess, FileSystemWatcher, paths | FileStream, RandomAccess, FileSystemWatcher, MemoryMappedFile | references/file-io.md |
| Native interop | P/Invoke, LibraryImport, ComWrappers, marshalling | P/Invoke, LibraryImport, ComWrappers, marshalling, cross-platform | references/native-interop.md |
| Input validation | .NET 10 AddValidation, FluentValidation | .NET 10 AddValidation, FluentValidation, ProblemDetails | references/input-validation.md |
| Validation patterns | DataAnnotations, IValidatableObject, IValidateOptions | DataAnnotations, IValidatableObject, IValidateOptions\<T\> | references/validation-patterns.md |
| Modern patterns | records, pattern matching, primary constructors | Records, pattern matching, primary constructors, C# 12-15 | references/modern-patterns.md |
| API design | naming, parameter ordering, return types, extensions | Naming, parameter ordering, return types, error patterns | references/api-design.md |
| Type design/perf | struct vs class, sealed, Span/Memory, collections | struct vs class, sealed, Span/Memory, collections | references/type-design-performance.md |
| Code smells | anti-patterns, async misuse, DI mistakes, fixes | Anti-patterns, async misuse, DI mistakes, fixes | references/code-smells.md |
| .NET releases | .NET 10, .NET 11, C# 14, C# 15, TFM, version, union, extension blocks, field keyword | Version matrix, new features, TFM-specific code generation | references/dotnet-releases.md |
| Globalization | CultureInfo, StringComparison, TimeZoneInfo, Rune, encoding | Culture-aware coding, string comparison, time zones, character processing | references/globalization.md |
| WASM interop | JSImport, JSExport, standalone WASM, wasm-experimental, browser | JSImport/JSExport, standalone .NET WASM, browser APIs, WASM AOT | references/wasm-interop.md |

## Scope

- C# language features (C# 8-15)
- .NET runtime patterns (async, DI, config, serialization, channels, LINQ)
- Code quality (analyzers, editorconfig, code smells, SOLID)
- Type design and domain modeling
- File I/O and native interop
- Globalization (string comparison, CultureInfo, time zones, character processing, encoding)
- Input validation at the model level (DataAnnotations, IValidatableObject, FluentValidation, Options validation)

## Out of scope

- ASP.NET Core / web API patterns (request-level validation, endpoint filters) -> `dotnet-api`
- UI framework patterns -> `dotnet-ui`
- Testing patterns -> `dotnet-testing`
- Build/MSBuild/project setup -> `dotnet-tooling`
- Performance profiling tools -> `dotnet-tooling`
Pliki w paczce (27)
  • SKILL.md 7 KB
  • agents/openai.yaml 1 KB
  • references/api-design.md 14 KB
  • references/async-patterns.md 10 KB
  • references/channels.md 15 KB
  • references/code-smells.md 17 KB
  • references/coding-standards.md 5 KB
  • references/concurrency-patterns.md 15 KB
  • references/configuration.md 12 KB
  • references/dependency-injection.md 10 KB
  • references/domain-modeling.md 21 KB
  • references/dotnet-releases.md 7 KB
  • references/editorconfig.md 15 KB
  • references/file-io.md 18 KB
  • references/globalization.md 15 KB
  • references/input-validation.md 23 KB
  • references/linq-optimization.md 14 KB
  • references/modern-patterns.md 11 KB
  • references/native-interop.md 18 KB
  • references/nullable-reference-types.md 9 KB
  • references/roslyn-analyzers.md 21 KB
  • references/serialization.md 13 KB
  • references/solid-principles.md 16 KB
  • references/source-generators.md 18 KB
  • references/type-design-performance.md 13 KB
  • references/validation-patterns.md 20 KB
  • references/wasm-interop.md 10 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · novotnyllc/dotnet-artisan90MIT
fenzel999/dotnet-artisan90MIT

Migawka bazy z 13.11.2026 · wersja paczki e1a6cebae6c9 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100csharp-expert
    Wspiera tworzenie kodu w C# na .NET 8+: ASP.NET Core, LINQ, async/await i wzorce korporacyjne.
  • 95csharp
    Opisuje funkcje C# 12, takie jak rekordy, dopasowanie wzorców, nullable reference types, LINQ i async/await.
  • 100csharp
    Pomaga programować w C# i .NET: LINQ, async/await, dopasowanie wzorców, rekordy, Entity Framework Core i usługi ASP.NET Core, w tym optymalizacja pamięci typami span i memory.
  • 100csharp-idioms
    Opisuje nowoczesne idiomy C# 10+ i .NET: nullable reference types, rekordy, dopasowanie wzorców, async z CancellationToken, wydajność LINQ i wstrzykiwanie zależności.
  • 100csharp-linq-modern-dotnet
    Pisze czytelne przekształcenia danych w C# przez składnię LINQ, rekordy i dopasowanie wzorców.
  • 95lang-csharp
    Pisze i przegląda nowoczesny C# na .NET 10: asynchroniczność, nullable reference types, LINQ, zwalnianie zasobów i testy w xUnit.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.