csharp-conventions

csharp-conventions is a skill for Claude Code, Codex from Goldziher/ai-rulez. It costs 53 tokens per session (370 once invoked), scanned A, original, MIT.

A set of rules for modern C# and .NET development, covering code style, asynchronous programming, testing, and dependency security.

In plain words
What is it for?
Use it when creating or reviewing .NET applications and libraries, including tests, performance benchmarks, build settings, and package management.
Why use it?
It helps catch null-related bugs, blocked asynchronous code, inconsistent style, and vulnerable packages before they reach users.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or reviewing .NET applications and libraries, including tests, performance benchmarks, build settings, and package management.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldziher/ai-rulez/csharp-conventions
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 Goldziher/ai-rulez --skill csharp-conventions
Clone the repo
git clone --depth 1 https://github.com/Goldziher/ai-rulez

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldziher/ai-rulez/csharp-conventions"><img src="https://agentmods.dev/badge/skills/goldziher/ai-rulez/csharp-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 370 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.00053 $0.00370
Opus 5 $0.00026 $0.00185
Sonnet 5 $0.00011 $0.00074
Haiku 4.5 $0.00005 $0.00037

Measured 9d ago against content hash 7fccb480f02b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

csharp-conventions 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 9d 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.

internal/builtins/languages/csharp/skills/csharp-conventions/SKILL.md · 17 lines

What it actually says

  • .NET 8+ C# 12, file-scoped namespaces, primary constructors, <Nullable>enable</Nullable>.
  • Formatting: dotnet format + Roslyn analyzers, <TreatWarningsAsErrors>true</TreatWarningsAsErrors>.
  • Style enforcement: .editorconfig for consistent rules across team. Use an analyzer set (e.g., StyleCop.Analyzers or Roslynator).
  • Testing: xUnit with [Theory]/[InlineData], an assertion library (e.g., FluentAssertions), a coverage tool (e.g., coverlet) at 80%+.
  • Benchmarking: a benchmark harness (e.g., BenchmarkDotNet) for performance testing — never Stopwatch loops.
  • record types for immutable data, required properties, pattern matching in switch expressions.
  • Async: async/await throughout — never .Result or .Wait(), ValueTask for hot paths, avoid deadlocks.
  • Security: dotnet list package --vulnerable for CVE scanning. Zero tolerance for critical/high.
  • Dependencies: NuGet PackageReference, commit packages.lock.json, Directory.Build.props for shared config.
  • Collection expressions ([1, 2, 3]), required modifier, raw string literals for multi-line.
  • Anti-patterns: dynamic, object params, unguarded catch (Exception), #pragma warning disable.
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. 9d ago First seen · 17 lines · 53 tokens per session scan A 7fccb480f02b

Subscribe to this mod's changes

csharp-conventions is a skill published in the GitHub repository Goldziher/ai-rulez (140 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 370 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

gh-skill

Manage agent skills with gh skill. Use this skill to discover, preview, install, update, and publish Agent Skills so an agent can self-manage the skills available in its environment.

cli/cli · 41 tokens

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

printing-press-import

Bring a published CLI from the public library into the internal library so it's identical to a freshly-generated copy — module path reverted, manuscripts placed alongside, ready for /printing-press-polish or /printing-press-emboss. Use when the public library has a CLI you don't have locally, or to recover from a…

mvanhorn/cli-printing-press · 104 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

video-production

Produce programmable videos with Remotion using scene planning, asset orchestration, and validation gates for automated, brand-consistent video content.

Marve10s/Better-Fullstack · 29 tokens

octo-mail

OCTO Agent Mail operations for reading, searching, policy-aware sending, preparing drafts, and checking delivery status exclusively through octo-cli.

Mininglamp-OSS/octo-cli · 32 tokens