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.
npx agentmods add skills/lugassawan/swe-workbench/language-csharpnpx skills add lugassawan/swe-workbench --skill language-csharpgit clone --depth 1 https://github.com/lugassawan/swe-workbenchWrote 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.
[](https://agentmods.dev/skills/lugassawan/swe-workbench/language-csharp)<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>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.
| Model | Per session | Once 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 |
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.
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 inDirectory.Build.props. - Keep nullable reference types enabled for new code:
<Nullable>enable</Nullable>. - Use
ImplicitUsingswhen 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
recordorreadonly record structfor 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")
};
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.
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.
- today First seen · 131 lines · 142 tokens per session scan A bf1f12a48098
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.
Other skills, from other repositories
ddd
Domain-Driven Design patterns for .NET — aggregates, value objects, strongly-typed IDs, domain events, repositories, and layer rules.
modern-csharp
C# 12–14 language features with practical patterns — primary constructors, collection expressions, records, pattern matching, nullable reference types, and more.
vertical-slice
Vertical Slice Architecture (VSA) for .NET APIs — feature-first folder structure, IEndpointGroup pattern, cross-cutting concerns, and testing approach.
aspnet-api-patterns
ASP.NET Core API patterns — controllers vs minimal API, middleware, error handling, versioning, and authentication setup.
clean-architecture
.NET clean architecture enforcement — layer rules, dependency direction, DI registration patterns, and project reference validation.
dotnet-project-init
Discovers .NET solution context — projects, frameworks, test runners, EF contexts, architecture style, and package management.