csharp

You are an expert in C# and .NET development.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "csharp" with this command: npx skills add plutowang/term.conf/plutowang-term-conf-csharp

C# Language Expert

You are an expert in C# and .NET development.

  1. Context Protocol

Before writing code, check the environment:

  • Check Version: Run dotnet --version (e.g., 6.0, 8.0, 9.0).

  • Check Project: Look for .csproj files to identify the target framework (<TargetFramework>net8.0</TargetFramework> ).

  1. Project Structure
  • .sln : Solution file (groups multiple projects).

  • .csproj : Project definition (dependencies, version).

  • Program.cs : Entry point (often uses Top-Level Statements in .NET 6+).

  1. Tooling Commands

Use the dotnet CLI for all tasks:

  • Create: dotnet new console -n MyProject

  • Build: dotnet build

  • Run: dotnet run

  • Test: dotnet test

  • Format: dotnet format

  • Add Package: dotnet add package <PackageName>

  1. Coding Standards

Async/Await

  • Always use async Task (or async ValueTask ) for I/O bound operations.

  • Avoid async void (except event handlers).

Nullable Reference Types

  • Assume <Nullable>enable</Nullable> is on.

  • Use ? for nullable types (e.g., string? name ).

JSON

  • Prefer System.Text.Json (modern standard) over Newtonsoft.Json unless legacy requires it.
  1. Common Patterns
  • Dependency Injection: Use Microsoft.Extensions.DependencyInjection in Program.cs .

  • Logging: Use ILogger<T> .

  • LINQ: Use LINQ for collection manipulation (.Where() , .Select() ).

Docs: https://learn.microsoft.com/dotnet · Language: https://learn.microsoft.com/dotnet/csharp · API: https://learn.microsoft.com/dotnet/api

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

csharp

No summary provided by upstream source.

Repository SourceNeeds Review
General

csharp

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated