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.
npx skills add khalilbenaz/claude-skills-collection --skill dotnet-csharp-advisorgit clone --depth 1 https://github.com/khalilbenaz/claude-skills-collectionWrote 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.
[](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/dotnet-csharp-advisor)<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/dotnet-csharp-advisor"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/dotnet-csharp-advisor/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.
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/dotnet-csharp-advisor"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/dotnet-csharp-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.02325 |
| Opus 5.5 | $0.00032 | $0.00930 |
| Sonnet 5.5 | $0.00016 | $0.00465 |
| Haiku 4.5 | $0.00008 | $0.00232 |
Grade A, and why
dotnet-csharp-advisor 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.
.NET/C# Advisor
Workflow
1. Créer et structurer le projet
dotnet new sln -n MonProjet
dotnet new webapi -n MonProjet.Api --use-minimal-apis
dotnet new classlib -n MonProjet.Domain
dotnet new classlib -n MonProjet.Infrastructure
dotnet new xunit -n MonProjet.Tests
dotnet sln add **/*.csproj
Directory.Build.props à la racine (partagé par tous les projets) :
<Project>
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AnalysisLevel>latest-recommended</AnalysisLevel>
</PropertyGroup>
</Project>
Directory.Packages.props pour la gestion centralisée des versions NuGet :
<Project>
<PropertyGroup><ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally></PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
<PackageVersion Include="xunit" Version="2.9.0" />
</ItemGroup>
</Project>
2. Utiliser C# moderne (C# 12/13)
Records pour DTOs et Value Objects immuables :
public record CreateUserCommand(string Name, string Email);
public record UserId(Guid Value);
Primary constructors (C# 12) pour les services :
public class UserService(IUserRepository repo, ILogger<UserService> logger)
{
public async Task<User?> GetAsync(Guid id) => await repo.FindAsync(id);
}
Pattern matching exhaustif :
var label = order.Status switch
{
OrderStatus.Pending => "En attente",
OrderStatus.Shipped => "Expédié",
OrderStatus.Cancelled => "Annulé",
_ => throw new UnreachableException()
};
Raw string literals pour JSON/SQL embarqués :
var json = """
{
"key": "value"
}
""";
Critère de décision C# 12 vs 13 : cibler .NET 9 + C# 13 pour les nouveaux projets ; .NET 8 LTS si contrainte de stabilité long terme.
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.
- 2mo ago First seen · 335 lines · 80 tokens per session scan A 1cd646f920f3
dotnet-csharp-advisor is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 80 tokens to every session and 2,325 once invoked, about $0.0003 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-03.
dotnet-csharp-advisor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-csharp-advisorkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | A | 80 | Claude Code, Codex |
| csharp-patternssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 61 | Claude Code |
| java-patternssoftspark/ai-toolkit | Skill | 180 | 13d ago | Apache-2.0 | A | 48 | Claude Code |
| aspnet-coreclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 111 | Claude Code |
| aspnet-middlewareclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 73 | Claude Code |
| aspnet-signalrclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 94 | Claude Code |
| aspnet-validationclaude-dev-suite/claude-dev-suite | Skill | 51 | today | MIT | A | 85 | Claude Code |