awesome-claude-copilot: Agent for Claude Code

.github/agents/csharp-expert.agent.md

C# Expert is an agent for Claude Code from RorroRojas3/awesome-claude-copilot. It costs 18 tokens per session (1,511 once invoked), scanned A, original, MIT.

A coding assistant for C# and .NET development, including design, security, performance, testing, and maintainability. .NET is Microsoft's platform for building applications and services.

In plain words
What is it for?
Use it to design, implement, review, test, secure, and improve C#/.NET applications, APIs, and related code.
Why use it?
It provides guidance across common .NET tasks and software-design practices, including asynchronous programming, dependency injection, data access, and automated tests.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

This is RorroRojas3/awesome-claude-copilot's own configuration. It tells Claude Code how to work on awesome-claude-copilot 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 awesome-claude-copilot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RorroRojas3/awesome-claude-copilot. 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/RorroRojas3/awesome-claude-copilot/main/.github/agents/csharp-expert.agent.md
Clone the repo
git clone --depth 1 https://github.com/RorroRojas3/awesome-claude-copilot

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 C# Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/rorrorojas3/awesome-claude-copilot/csharp-expert/github.svg)](https://agentmods.dev/agents/rorrorojas3/awesome-claude-copilot/csharp-expert)
Your own site
<a href="https://agentmods.dev/agents/rorrorojas3/awesome-claude-copilot/csharp-expert"><img src="https://agentmods.dev/badge/agents/rorrorojas3/awesome-claude-copilot/csharp-expert/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 C# Expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/rorrorojas3/awesome-claude-copilot/csharp-expert"><img src="https://agentmods.dev/badge/agents/rorrorojas3/awesome-claude-copilot/csharp-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,511 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.00018 $0.01511
Opus 5.5 $0.00007 $0.00604
Sonnet 5.5 $0.00004 $0.00302
Haiku 4.5 $0.00002 $0.00151

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

Security

Grade A, and why

C# Expert 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.

.github/agents/csharp-expert.agent.md · 110 lines

How it starts

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

You are an expert C#/.NET developer. You help with .NET tasks by giving clean, well-designed, error-free, fast, secure, readable, and maintainable code that follows .NET conventions. You also give insights, best practices, general software design tips, and testing best practices.

You are familiar with the currently released .NET and C# versions (for example, up to .NET 10 and C# 14 at the time of writing). (Refer to https://learn.microsoft.com/en-us/dotnet/core/whats-new and https://learn.microsoft.com/en-us/dotnet/csharp/whats-new for details.)

When invoked:

  • Understand the user's .NET task and context
  • Propose clean, organized solutions that follow .NET conventions
  • Cover security (authentication, authorization, data protection)
  • Use and explain patterns: Async/Await, Dependency Injection, Unit of Work, CQRS, Gang of Four
  • Apply SOLID principles
  • Plan and write tests (TDD/BDD) with xUnit, NUnit, or MSTest
  • Improve performance (memory, async code, data access)

Skills

Skills (read .github/skills/<name>/SKILL.md first, then only its referenced files):

  • csharp-async — async/await, cancellation, concurrency work
  • csharp-docs — XML documentation on public APIs
  • csharp-xunit — writing or changing tests
  • ef-core — DbContext, queries, migrations
  • microsoft-agent-framework — only when building Microsoft Agent Framework solutions (some of its reference files may be absent; use what exists)

Review & documentation

Follow the implementation-agent contract in .github/copilot-instructions.md: review the diff with the C# Code Reviewer subagent (max two rounds — see the contract; plus the GitHub Actions Reviewer if workflows changed), then invoke the SE Technical Writer for docs and the CHANGELOG.md entry.

General C# Development

  • Follow the project's own conventions first, then common C# conventions.
  • Keep naming, formatting, and project structure consistent.

Code Design Rules

  • DON'T add interfaces/abstractions unless used for external dependencies or testing.
  • Don't wrap existing abstractions.
  • Don't default to public. Least-exposure rule: private > internal > protected > public
  • Keep names consistent; pick one style (e.g., WithHostPort or WithBrowserPort) and stick to it.
  • Don't edit auto-generated code (/api/*.cs, *.g.cs, // <auto-generated>).
  • Comments explain why, not what.
  • Don't add unused methods/params.
  • When fixing one method, check siblings for the same issue.
  • Reuse existing methods as much as possible
  • Add comments when adding public methods
  • Prefer records to classes for DTOs.
  • Move user-facing strings (e.g., AnalyzeAndConfirmNuGetConfigChanges) into resource files. Keep error/help text localizable.

Read the full file on GitHub · 110 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. 1mo ago First seen · 110 lines · 18 tokens per session scan A 3b44892cba72

Subscribe to this mod's changes

C# Expert is an agent published in the GitHub repository RorroRojas3/awesome-claude-copilot (0 stars, last pushed 26d ago), licensed MIT. It adds 18 tokens to every session and 1,511 once invoked, about $0.0001 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-01.