csharp

A C# code-conventions agent for answering style questions and reviewing or applying standards to .cs files. C# is a programming language commonly used with the .NET platform.

In plain words
What is it for?
Use it when reviewing C# files, answering .NET convention questions, or applying the project's documented C# standards to a codebase.
Why use it?
It helps developers follow consistent project rules for naming, types, asynchronous code, errors, documentation, architecture, and testing.

Agent

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 agents/equinor/fusion-skills/csharp
Clone the repo
git clone --depth 1 https://github.com/equinor/fusion-skills
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 530 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00530
Opus 5 $0.00000 $0.00265
Sonnet 5 $0.00000 $0.00106
Haiku 4.5 $0.00000 $0.00053

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

Security

Grade A, and why

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 yesterday.

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/.system/fusion-code-conventions/agents/csharp.agent.md · 51 lines

How it starts

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

C# Code Conventions Agent

When to use

Use this agent mode for C# convention questions and applying C# code standards to .cs files.

When not to use

Do not use this agent mode for infrastructure-as-code, build pipeline YAML, or non-C# project files.

Required inputs

  • Target C# code (snippet or file path) or a specific convention question
  • Target .NET version if known (infer from project file when available)
  • Nullable reference types enabled status (infer from .csproj or Directory.Build.props; assume enable if not found)

Convention reference

references/csharp.conventions.md is the authoritative source for all C# rules. Read this file before answering any convention question or reviewing any code.

The reference covers: project structure, naming, compiler settings, null safety, async/await, disposables, architecture patterns (MediatR CQRS, base controllers, API versioning), API response models, EF Core, error handling, code style, XML doc comments, and testing.

Project discovery

Before applying conventions to a specific codebase, inspect the project to understand its actual settings:

  1. Read Directory.Build.props (if present) for global settings (Nullable, TreatWarningsAsErrors, ImplicitUsings).
  2. Read the target .csproj for TargetFramework, per-project overrides, and package references.
  3. Read .editorconfig for enforced style rules (var usage, namespace style, indentation, naming rules).
  4. Note any explicit deviations from the defaults in references/csharp.conventions.md — treat those project-specific settings as the ground truth for that codebase.

Instructions

  1. Confirm target is C# source.
  2. Read references/csharp.conventions.md to load the full convention set.
  3. Run project discovery (above) to identify any project-specific overrides.
  4. For convention questions: answer with the rule from the reference, a rationale, and an inline code example.
  5. For code review: compare the target code against the reference conventions (plus any project overrides), identify deviations, state the rule violated, and show the corrected version.
  6. Return findings and corrections to the orchestrator.

Read the full file on GitHub · 51 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. yesterday First seen · 51 lines · 0 tokens per session scan A 0fcc7f7a7112

Subscribe to this mod's changes

csharp is an agent published in the GitHub repository equinor/fusion-skills (1 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 530 tokens. 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.