language-csharp

language-csharp is a skill for Claude Code, Codex from lugassawan/swe-workbench. It costs 142 tokens per session (1,291 once invoked), scanned A, original, MIT.

C# and .NET idioms — .NET 8 LTS, C# NRT, records, value semantics, switch expressions, async/await, Task, ValueTask, CancellationToken, ConfigureAwait, IOptions , LINQ, Span , ArrayPool, hot path, allocation profiling, and performance. Auto-load when working with .cs files, .csproj, .sln, Directory.Build.props, or…

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/lugassawan/swe-workbench/language-csharp
Any agent
npx skills add lugassawan/swe-workbench --skill language-csharp
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

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 language-csharp

README.md
[![agentmods](https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-csharp.svg)](https://agentmods.dev/skills/lugassawan/swe-workbench/language-csharp)
Your own site
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-csharp"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-csharp.svg" alt="Measured on agentmods" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,291 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00142 $0.01291
Opus 5 $0.00071 $0.00646
Sonnet 5 $0.00028 $0.00258
Haiku 4.5 $0.00014 $0.00129

Measured today against content hash bf1f12a48098, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

language-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 today.

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.

skills/language-csharp/SKILL.md · 131 lines

How it starts

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

C# / .NET

.NET 8 project shape

  • Prefer SDK-style projects with explicit TargetFramework (net8.0) and shared defaults in Directory.Build.props.
  • Keep nullable reference types enabled for new code: <Nullable>enable</Nullable>.
  • Use ImplicitUsings when the repository already does; avoid hand-maintaining noisy common imports.
  • Keep application, domain, infrastructure, and test projects separate when boundaries are real, not just for ceremony.
<PropertyGroup>
  <TargetFramework>net8.0</TargetFramework>
  <Nullable>enable</Nullable>
  <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Nullable reference types

  • Treat warnings as design feedback, not noise. Model absence with T?, required, or a domain type.
  • Validate nullable inputs at boundaries; keep internals non-null where possible.
  • Use ArgumentNullException.ThrowIfNull(value) for guard clauses.
  • Avoid ! except when bridging a framework or serializer limitation; leave a short reason.
public sealed class User
{
    public required string Email { get; init; }
    public string? DisplayName { get; init; }
}

Records and value semantics

  • Use record or readonly record struct for immutable value-like data.
  • Use classes for identity, lifecycle, mutation, or behavior-heavy objects.
  • Be deliberate with with: it is copy-with-change, not validation unless constructors enforce invariants.
public sealed record Money(decimal Amount, string Currency);

var discounted = price with { Amount = price.Amount * 0.9m };

Pattern matching

  • Use patterns for shape-based branching, parsing, and closed domain states.
  • Prefer switch expressions when every case returns a value.
  • Keep guards (when) simple; complex decisions deserve named methods.
return command switch
{
    CreateUser(var email) when email.Contains('@') => Create(email),
    DeleteUser(var id) => Delete(id),
    _ => throw new InvalidOperationException("unsupported command")
};

Read the full file on GitHub · 131 lines

Files

What ships with it

1 file 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. today First seen · 131 lines · 142 tokens per session scan A bf1f12a48098

Subscribe to this mod's changes

language-csharp is a skill published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed yesterday), licensed MIT. It adds 142 tokens to every session and 1,291 once invoked, about $0.0007 per session on Opus 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.