just-works: Skill for Claude Code

.claude/skills/csharp-coding/SKILL.md

csharp-coding is a skill for Claude Code from Dynokostya/just-works. It costs 47 tokens per session (1,249 once invoked), scanned A, original, Apache-2.0.

A set of coding instructions for C# files. C# is a programming language commonly used with the .NET platform.

In plain words
What is it for?
Use it when writing or editing C# code, especially error handling, async operations, resource cleanup, data models, or nullable code.
Why use it?
It helps avoid common errors involving exceptions, asynchronous code, dates, resources, null values, and security-related defaults.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Dynokostya/just-works's own configuration. It tells Claude Code how to work on just-works itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything just-works configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Dynokostya/just-works. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Dynokostya/just-works/main/.claude/skills/csharp-coding/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Dynokostya/just-works

Made for: Claude Code.

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-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynokostya/just-works/csharp-coding/github.svg)](https://agentmods.dev/skills/dynokostya/just-works/csharp-coding)
Your own site
<a href="https://agentmods.dev/skills/dynokostya/just-works/csharp-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/csharp-coding/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-coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/dynokostya/just-works/csharp-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/csharp-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,249 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.00047 $0.01249
Opus 5.5 $0.00019 $0.00500
Sonnet 5.5 $0.00009 $0.00250
Haiku 4.5 $0.00005 $0.00125

Measured 17d ago against content hash 5e058c52f6d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

csharp-coding 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 17d ago.

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.

.claude/skills/csharp-coding/SKILL.md · 78 lines

How it starts

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

C# Coding

Project conventions override these defaults. Read 2-3 nearby files first, and check the project's own target in the .csproj: TargetFramework, LangVersion, nullable setting, analyzer config. Use only language and library features that target supports (C# 13 needs .NET 9, C# 14 needs .NET 10).

Never rules

  • Never write an empty catch, or a catch (Exception) that neither rethrows nor logs. Catch specific types; at a boundary, log and rethrow or convert to a meaningful error.
  • Never throw ex. It resets the stack trace. Use throw;, or wrap with an inner exception: throw new XException("msg", ex).
  • Never use DateTime.Now for stored or compared timestamps. It is server-local time and breaks across time zones and DST. Take time from an injected TimeProvider (.NET 8+) so tests can control it; otherwise use DateTimeOffset.UtcNow or DateTime.UtcNow. Local time is for display only.
  • Never async void except event handlers. It cannot be awaited and its exceptions crash the process.
  • Never block on a task with .Result, .Wait(), or .GetAwaiter().GetResult(). It deadlocks in UI and ASP.NET Core contexts. Use await. If a synchronous caller truly cannot be made async, Task.Run(() => MethodAsync()).GetAwaiter().GetResult() avoids the deadlock (the work runs on a thread-pool thread with no SynchronizationContext); add a comment saying why.
  • Never use Random for tokens, keys, or session IDs. Use RandomNumberGenerator.GetBytes() / GetInt32().
  • Never concatenate or interpolate values into SQL. Use parameters (SqlCommand.Parameters or the ORM's parameterization).
  • Avoid mutable static fields that hold request or user state; they are shared across threads. Use DI, IOptions<T>, or a thread-safe type (ConcurrentDictionary, Lock-guarded state). Constants, static readonly values, and lazily built immutable caches are fine.

Resource cleanup

Use using / await using declarations for IDisposable and IAsyncDisposable objects you create. HttpClient is the exception: do not create and dispose one per call (it exhausts ports). Create clients through IHttpClientFactory, or share a long-lived instance with PooledConnectionLifetime set. Implement IDisposable only when the class owns unmanaged resources or other disposables.

Read the full file on GitHub · 78 lines

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. 17d ago Changed · -237 lines · -7 tokens per session 5e058c52f6d8
  2. 2mo ago First seen · 315 lines · 54 tokens per session scan A aee3baa57fc8

Subscribe to this mod's changes

csharp-coding is a skill published in the GitHub repository Dynokostya/just-works (14 stars, last pushed 10d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,249 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-04.

Related

csharp-coding compared with skills from other repositories

csharp-coding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
csharp-codingDynokostya/just-worksSkill1410d agoApache-2.0A47Claude Code
build-and-testmicrosoft/agent-frameworkSkill15kyesterdayMITA26Claude Code, Codex
agui-dotnet-streaming-chatag-ui-protocol/ag-uiSkill17kyesterdayMITA223Claude Code
azure-mgmt-apicenter-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA97Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill5.8kyesterdayMITA149Claude Code
migrate-dotnet8-to-dotnet9dotnet/skillsSkill5.8kyesterdayMITA176Claude Code
template-instantiationdotnet/skillsSkill5.8kyesterdayMITA168Claude Code