Skip to main content

csharp

Use when: write or review modern, idiomatic C# with async, nullable reference types, and clean structure.

Datos de origen

Repositorio
kimtth/agent-skill-100-lines-or-less
Última actividad en el origen
26 de junio de 2026 a las 02:15
Idioma detectado de SKILL.md
inglés
Estrellas
2
Forks
0

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
csharp
description
Use when: write or review modern, idiomatic C# with async, nullable reference types, and clean structure.
Goal: modern C# that is null-safe, async-correct, and testable. Use for: - new classes, services, or APIs in C#/.NET - reviewing async usage, nullability, and structure - modernizing legacy patterns to current language features Workflow: 1. Enable nullable reference types and honor the warnings. 2. Use async/await end to end; never block on async code. 3. Model data with records and pattern matching. 4. Prefer immutable types and expression-bodied members. 5. Inject dependencies; program to interfaces, not concretions. 6. Verify with the test runner, analyzers, and dotnet format. Idioms: - records for value-like data - LINQ for transformations over manual loops - pattern matching and switch expressions - using declarations for IDisposable - CancellationToken threaded through async APIs Rules: - never call .Result/.Wait() on a Task; await it - treat nullable warnings as errors to fix - pass CancellationToken to cancellable operations - keep methods small; depend on abstractions for testability
Ver en GitHub