csharp

Guide C# and .NET engineering with architecture, implementation, and verification steps.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill csharp-jcetools-petra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp
Source: https://github.com/JCETools-Petra/JCE-Opencode-Tools/tree/main/config/skills/csharp
Command: npx skills add https://github.com/JCETools-Petra/JCE-Opencode-Tools --skill csharp-jcetools-petra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The C# / .NET skill helps you implement, debug, review, and verify C# and .NET work by giving consistent patterns and decision guidance across projects, APIs, data access, testing, and safety checks.

Core Features & Use Cases

  • Auto-detect for C#/.NET projects to route work when you are editing C#, .csproj, .sln, or ASP.NET-related files and need the right engineering conventions.
  • Decision trees for architecture choices covering project type (Web API, background processing, desktop UI, libraries), plus data access strategy (Dapper, EF Core, Mongo/Cosmos, caching).
  • Practical production patterns and guardrails including modern C#/.NET features (e.g., primary constructors, raw strings, pattern matching), minimal APIs, .NET Aspire orchestration, source generators, typed results, testing approaches, and an anti-pattern checklist.

Quick Start

Ask the assistant to help you design and implement a .NET 9 Minimal API endpoint for user CRUD with EF Core, typed results, and an integration test that includes cancellation token propagation.

Frequently Asked Questions about csharp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a .NET Minimal API endpoint with EF Core and typed results?

Implementing a .NET Minimal API endpoint with EF Core involves using typed results for responses and propagating cancellation tokens. This pattern provides architecture, implementation, and verification steps for correct ASP.NET Core APIs.

What is the best data access strategy for my .NET application?

The best data access strategy for .NET depends on your project needs. Evaluate decision trees covering Dapper, EF Core, Mongo/Cosmos, and caching to determine the optimal approach for your specific application architecture.

How do I structure .NET Aspire orchestration for background services and APIs?

Structuring .NET Aspire orchestration involves coordinating background services and APIs using modern C# patterns. This includes applying DI lifetimes, source-generator-friendly code, and cancellation token propagation for verifiable distributed application architecture.

Can I use modern C# features like primary constructors and pattern matching in ASP.NET Core?

Yes, you can use modern C# features like primary constructors, raw strings, and pattern matching in ASP.NET Core. These features are supported as production patterns to ship correct C# and .NET code faster.

How do I verify my C# and .NET code using the dotnet build and test checklist?

Verifying C# and .NET code requires running dotnet build and test practices. This verification checklist ensures your implementation passes architectural guardrails, anti-pattern checks, and cancellation token propagation for reliable production code.

Does this C# guidance cover desktop UI and library development?

Yes, this C# guidance covers desktop UI and library development. It provides decision trees for project types including Web APIs, background processing, desktop UI, and libraries, applying consistent engineering conventions across all scenarios.