csharp-best-practice

csharp-best-practice is a skill for Codex from klh/speedy-claude. It costs 72 tokens per session (693 once invoked), scanned A, original, MIT.

A guide for reviewing and improving C# code using common conventions for naming, structure, testing, and development tools.

In plain words
What is it for?
Use it for C# code reviews, refactoring priorities, test and tooling guidance, and maintainability improvements.
Why use it?
It helps replace ad hoc style choices with advice suited to the project's C# version, runtime, and framework.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for C# code reviews, refactoring priorities, test and tooling guidance, and maintainability improvements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/klh/speedy-claude/csharp-best-practice
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 klh/speedy-claude --skill csharp-best-practice
Clone the repo
git clone --depth 1 https://github.com/klh/speedy-claude

Made for: 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-best-practice

README.md
[![agentmods](https://agentmods.dev/badge/skills/klh/speedy-claude/csharp-best-practice/github.svg)](https://agentmods.dev/skills/klh/speedy-claude/csharp-best-practice)
Your own site
<a href="https://agentmods.dev/skills/klh/speedy-claude/csharp-best-practice"><img src="https://agentmods.dev/badge/skills/klh/speedy-claude/csharp-best-practice/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-best-practice

Your own site · 80×15
<a href="https://agentmods.dev/skills/klh/speedy-claude/csharp-best-practice"><img src="https://agentmods.dev/badge/skills/klh/speedy-claude/csharp-best-practice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 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.00072 $0.00693
Opus 5 $0.00036 $0.00347
Sonnet 5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00069

Measured 8d ago against content hash d03ff2b25855, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

csharp-best-practice 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/csharp-best-practice/SKILL.md · 75 lines

How it starts

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

C# Best Practice

Use this skill to review or improve C# work using common ecosystem conventions instead of ad hoc local habits.

Intent Router

Need Load
core conventions, tooling defaults, and review checklist for C# references/best-practices.md

Quick Start

  1. Confirm the target version, dialect, runtime, framework, or vendor before recommending changes.
  2. Prefer existing project conventions when they are already enforced and internally consistent.
  3. Apply the default guidance in references/best-practices.md for naming, structure, testing, and tooling.
  4. Recommend the smallest change set that improves clarity, safety, and maintainability.

Workflow

  • Identify the runtime, dialect, or host environment before making specific recommendations.
  • Separate language-level guidance from framework-, vendor-, or platform-specific conventions.
  • Prioritize correctness, readability, changeability, and operability before micro-optimizations.
  • Note the automation path: formatter, linter, type checker, compiler flags, or test runner.
  • Call out the highest-leverage refactors first instead of producing style-only churn.

Typical Focus Areas

  • naming, layout, and public API clarity
  • boundary handling, state management, and error paths
  • dependency direction, module structure, and test seams
  • tooling, CI checks, and repeatable local verification
  • performance, portability, or safety constraints only when they materially affect the design

Outputs to Prefer

  • summarize the governing constraints before detailed recommendations
  • group findings by severity, maintenance impact, or migration effort
  • recommend concrete edits, checks, or follow-up tests
  • preserve externally visible behavior unless the request explicitly allows semantic changes

Common Requests

Read the full file on GitHub · 75 lines

Files

What ships with it

3 files 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.

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. 8d ago First seen · 75 lines · 72 tokens per session scan A d03ff2b25855

Subscribe to this mod's changes

csharp-best-practice is a skill published in the GitHub repository klh/speedy-claude (11 stars, last pushed 2d ago), licensed MIT. It adds 72 tokens to every session and 693 once invoked, about $0.0004 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-04.

Related

Other skills, from other repositories

analyzing-dotnet-performance

Scans .NET code for 50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I/O with tiered severity classification. Use when analyzing .NET code for optimization opportunities, reviewing hot paths, or auditing allocation-heavy patterns.

dotnet/skills · 64 tokens

code-review-csharp

Perform structured code reviews of C# source code covering naming conventions, performance, security, readability, and .NET best practices. Trigger phrases include "review this C# code", "check my C# for best practices", "analyze this C# class", "find issues in my C# code".

pnp/copilot-prompts · 66 tokens

de-sloppify

Systematic code cleanup pipeline for .NET projects. Runs 7 ordered steps: formatting, unused usings, analyzer warnings, dead code removal, TODO resolution, sealed class audit, and CancellationToken propagation. Each step is verified independently with tests between phases. Load this skill when: "clean up"…

codewithmukesh/dotnet-claude-kit · 115 tokens

refactoring-csharp

Rename and refactor C# symbols in a .NET solution or multi-solution monorepo with a one-shot Roslyn CLI. Use when the user asks to rename a symbol, preview impact, update references across a solution, or refactor shared projects across several solutions.

CodeAlive-AI/ai-driven-development · 60 tokens

resharper-clt

Use the free official JetBrains ReSharper Command Line Tools for .NET repositories. USE FOR: jb inspectcode; jb cleanupcode; stronger C# inspections, cleanup profiles, and CI-friendly JetBrains analysis. DO NOT USE FOR: replacing tests with inspection output; ad-hoc formatting-only work when the repo intentionally…

managedcode/dotnet-skills · 107 tokens

roslynator

Use the open-source free Roslynator analyzer packages and optional CLI for .NET. USE FOR: Roslynator.Analyzers setup; Roslynator CLI checks or cleanup; C# linting, static analysis, and code-fix automation. DO NOT USE FOR: overlapping analyzer packs with no consolidation plan; formatting-only work owned by another…

managedcode/dotnet-skills · 107 tokens