dotnet-conventions

dotnet-conventions is a skill for Claude Code, Codex from NicoGenti/opencode-orchestrator-kit. It costs 38 tokens per session (461 once invoked), scanned A, original, MIT.

A set of C# and .NET conventions covering names, code structure, modern language features, asynchronous work, errors, and readability. .NET is Microsoft's platform for building applications, and a .csproj file identifies many .NET projects.

In plain words
What is it for?
Load it before implementing or reviewing features in projects that use .csproj files.
Why use it?
It removes guesswork about how C# code should be written and organized. Shared conventions make .NET code easier to read, review, and maintain.

Skill for Claude CodeCodex

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

Good fit Load it before implementing or reviewing features in projects that use .csproj files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nicogenti/opencode-orchestrator-kit/dotnet-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 NicoGenti/opencode-orchestrator-kit --skill dotnet-conventions
Clone the repo
git clone --depth 1 https://github.com/NicoGenti/opencode-orchestrator-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/dotnet-conventions/github.svg)](https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/dotnet-conventions)
Your own site
<a href="https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/dotnet-conventions"><img src="https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/dotnet-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 dotnet-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/nicogenti/opencode-orchestrator-kit/dotnet-conventions"><img src="https://agentmods.dev/badge/skills/nicogenti/opencode-orchestrator-kit/dotnet-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 461 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.
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.00038 $0.00461
Opus 5.5 $0.00015 $0.00184
Sonnet 5.5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

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

Security

Grade A, and why

dotnet-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 1mo 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.

plugin/assets/skills/examples/dotnet-conventions/SKILL.md · 40 lines

What it actually says

.NET Conventions

Apply these conventions consistently. Prefer clarity and modern C# features over legacy patterns [web:61].

Naming

  • PascalCase for types, methods, and public members.
  • camelCase for local variables and parameters.
  • Prefix interfaces with I (e.g., IRepository).
  • Prefix private fields with _ (e.g., _httpClient).
  • Use language keywords for built-in types (string, int) instead of runtime type names (String, Int32) [web:61].
  • Use int rather than unsigned types unless interop specifically requires it [web:61].

Style

  • Use var only when the type is obvious from the right-hand side; otherwise use the explicit type [web:61].
  • Use modern language features (pattern matching, records, nullable reference types) over outdated constructs [web:61].
  • Use LINQ for collection manipulation where it improves readability; avoid LINQ chains so long they hurt readability.
  • Use async/await for I/O-bound work; be careful with ConfigureAwait in library code to avoid deadlocks [web:61].
  • Catch specific exception types with meaningful messages; do not catch bare Exception without a filter [web:61].
  • Keep methods short (aim under ~50 lines); if a method grows past that, extract private helper methods.

Structure

  • One primary type per file; file name matches the type name.
  • Group namespace imports alphabetically, System.* first, at the top of the file, outside the namespace block.
  • Prefer dependency injection via constructor over static/service-locator patterns.
  • Prefer the repository/service pattern already used in the codebase over introducing a new abstraction layer — check 2-3 existing services before adding a new pattern.

When Reviewing

Flag violations of the above, but prioritize behavior-affecting issues (nullability bugs, unawaited tasks, exception swallowing) over pure style nits.

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. 1mo ago First seen · 40 lines · 38 tokens per session scan A 5dd82b732ab6

Subscribe to this mod's changes

dotnet-conventions is a skill published in the GitHub repository NicoGenti/opencode-orchestrator-kit (8 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 461 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-08-31.

Related

Other skills, from other repositories

python-review-checklist

Deterministic Python review checklist shipped with the CAO skills-lifecycle example.

awslabs/cli-agent-orchestrator · 20 tokens

se-dev-game-code

Search and read the decompiled C# code of Space Engineers 1 to learn how the game works inside and to get exact signatures, method bodies, IL and content files. If the se-dev-game-book handbook is installed, read it first for how a system works overall and come here for the exact code.

CometWorks/skills · 67 tokens

se-dev-script

In-game (programmable block, aka PB) script development for Space Engineers version 1. Search script code for examples and patterns.

CometWorks/skills · 31 tokens

sota-dotnet

State-of-the-art C# / .NET engineering rules (.NET LTS releases, modern C#) that Claude applies when writing or auditing .NET code. Covers modern idioms (records, nullable reference types, pattern matching, spans, file-scoped namespaces), API/null/immutability/IDisposable design, async/await & concurrency…

martinholovsky/SOTA-skills · 238 tokens

csharp-conventions

Use when a ticket adds or changes C#/.NET code — ASP.NET Core services, libraries, workers — and it must follow the repo's C# conventions — the .NET coding conventions, nullable reference types on and honoured, async all the way with cancellation tokens, dependency injection through the container with correct…

tmj-90/gaffer · 126 tokens

syncfusion-maui-treegrid

Implement and customize Syncfusion .NET MAUI Tree Grid (SfTreeGrid) for displaying and manipulating hierarchical data in a tabular view. Use when working with MAUI tree grids, SfTreeGrid, hierarchical data binding, tree grid columns, sorting, filtering, selection, freeze panes, or expander customization.

syncfusion/maui-ui-components-skills · 70 tokens