csharp

csharp is a skill for Claude Code, Codex from jnPiyush/AgentX. It costs 50 tokens per session (1,598 once invoked), scanned A, original, Apache-2.0.

A guide to building applications with C# and .NET, including web APIs, background services, desktop apps, and libraries. .NET is Microsoft's development platform for running these programs.

In plain words
What is it for?
Use it to create .NET applications and APIs, use Entity Framework Core, configure dependency injection and nullable reference types, and build background or cross-platform applications.
Why use it?
It helps apply consistent patterns for asynchronous work, database access, dependency injection, nullable values, and performance. It also supports choosing an appropriate .NET application structure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to create .NET applications and APIs, use Entity Framework Core, configure dependency injection and nullable reference types, and build background or cross-platform applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnpiyush/agentx/csharp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jnPiyush/AgentX --skill csharp
Clone the repo
git clone --depth 1 https://github.com/jnPiyush/AgentX

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for csharp

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnpiyush/agentx/csharp/github.svg)](https://agentmods.dev/skills/jnpiyush/agentx/csharp)
Your own site
<a href="https://agentmods.dev/skills/jnpiyush/agentx/csharp"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/csharp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for csharp

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnpiyush/agentx/csharp"><img src="https://agentmods.dev/badge/skills/jnpiyush/agentx/csharp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,598 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.01598
Opus 5.5 $0.00020 $0.00639
Sonnet 5.5 $0.00010 $0.00320
Haiku 4.5 $0.00005 $0.00160

Measured 2mo ago against content hash 9ca724f3bc7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

csharp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/scaffold-solution.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/languages/csharp/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C# / .NET Development

Purpose: Production-ready C# and .NET development standards for building secure, performant, maintainable applications. Audience: Engineers building .NET applications with C#, ASP.NET Core, Entity Framework Core. Standard: Follows github/awesome-copilot .NET development patterns.


When to Use This Skill

  • Building .NET applications with C#
  • Writing async/await code patterns
  • Using Entity Framework Core for data access
  • Implementing dependency injection
  • Configuring nullable reference types

Decision Tree

C# Project Decision
+-- Building a web API?
|   +-- REST API? -> ASP.NET Core Minimal API or Controllers
|   +-- gRPC service? -> ASP.NET Core gRPC
+-- Data access needed?
|   +-- Relational DB? -> Entity Framework Core
|   +-- NoSQL / document? -> Azure Cosmos DB SDK
|   +-- Simple queries? -> Dapper
+-- Background processing?
|   +-- Scheduled jobs? -> IHostedService / BackgroundService
|   +-- Message-driven? -> Azure Service Bus + Worker Service
+-- Desktop / cross-platform UI?
|   +-- Cross-platform? -> .NET MAUI
|   +-- Windows only? -> WPF or WinForms
+-- Library / shared code? -> .NET Class Library with NuGet packaging

Prerequisites

  • .NET 8+ SDK installed
  • C# 12+ language features
  • IDE with C# support

Quick Reference

Need Solution Pattern
Async code Use async/await everywhere async Task<T> GetDataAsync()
Null safety Enable nullable reference types <Nullable>enable</Nullable>
Error handling Use Result types or exceptions try-catch with specific types
DI Constructor injection with interfaces IServiceCollection
Testing xUnit, NUnit, or TUnit [Fact], [Test]
Logging ILogger<T> with structured logging _logger.LogInformation("User {UserId}", id)

C# Language Version

Current: C# 14 (.NET 10+) Minimum: C# 8 (.NET Core 3.1+)

Read the full file on GitHub · 174 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed 9ca724f3bc7a
  2. 2mo ago First seen · 174 lines · 50 tokens per session scan A 2501b00478f1

Subscribe to this mod's changes

csharp is a skill published in the GitHub repository jnPiyush/AgentX (19 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 1,598 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

csharp compared with skills from other repositories

csharp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
csharpjnPiyush/AgentXSkill19todayApache-2.0A50Claude Code, Codex
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill22ktodayMITA223Claude Code
azure-maps-search-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA91Claude Code
create-datadriven-aspnetcoredotnet/skillsSkill6.4ktodayMITA147Claude Code
azure-mgmt-apicenter-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA97Claude Code
azure-ai-voicelive-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA92Claude Code
akka-hosting-actor-patternsAaronontheweb/dotnet-skillsSkill1.3ktodayMITA51Claude Code