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 softspark/ai-toolkit --skill csharp-rulesgit clone --depth 1 https://github.com/softspark/ai-toolkitWrote 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/softspark/ai-toolkit/csharp-rules)<a href="https://agentmods.dev/skills/softspark/ai-toolkit/csharp-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/csharp-rules/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/softspark/ai-toolkit/csharp-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/csharp-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 195 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00055 | $0.03160 |
| Opus 5.5 | $0.00022 | $0.01264 |
| Sonnet 5.5 | $0.00011 | $0.00632 |
| Haiku 4.5 | $0.00006 | $0.00316 |
Grade A, and why
csharp-rules 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 — 283 lines — stays where its author put it; the contents beside it link to each section on GitHub.
C#/.NET Rules
These rules come from app/rules/csharp/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in C#/.NET. Apply them when writing or
reviewing C#/.NET code.
C# Coding Style
Naming
- PascalCase: classes, structs, enums, interfaces, methods, properties, events.
- camelCase: local variables, parameters, private fields.
- Prefix interfaces with
I:IUserRepository,IDisposable. - Prefix private fields with
_:private readonly ILogger _logger;. - UPPER_SNAKE: not conventional in C#. Use PascalCase for constants.
Nullable Reference Types
- Enable
<Nullable>enable</Nullable>in all projects. - Use
string?only when null is semantically meaningful. - Use
!(null-forgiving) operator sparingly -- only when compiler cannot infer. - Use
??(null-coalescing) and?.(null-conditional) for safe navigation. - Use
requiredmodifier (C# 11) on properties that must be set at initialization.
Records and Types
- Use
recordfor immutable value objects and DTOs. - Use
record structfor small, stack-allocated value types. - Use
initproperties for immutable-after-construction objects. - Use
withexpressions for non-destructive mutation of records. - Use primary constructors (C# 12) for concise class definitions.
Pattern Matching
- Use
ispattern for type checks:if (obj is string s). - Use
switchexpressions for exhaustive matching over enums/types. - Use property patterns:
user is { Age: > 18, Role: "admin" }. - Use relational patterns:
size is > 0 and < 100. - Use list patterns (C# 11):
numbers is [1, 2, .., var last].
Async/Await
- Suffix async methods with
Async:GetUserAsync(). - Return
Task<T>orValueTask<T>, nevervoid(except event handlers). - Use
awaitwithConfigureAwait(false)in library code. - Use
CancellationTokenparameters in all async public APIs. - Prefer
ValueTask<T>when synchronous completion is common.
File Organization
- One type per file. File name matches type name.
- Use file-scoped namespaces (C# 10):
namespace MyApp.Services;. - Order members: fields, constructors, properties, public methods, private methods.
- Use
global usingdirectives in a singleGlobalUsings.csfile.
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 · 283 lines · 55 tokens per session scan A 8c2c5838061d
csharp-rules is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 14d ago), licensed Apache-2.0. It adds 55 tokens to every session and 3,160 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-09-03.
csharp-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| csharp-rulessoftspark/ai-toolkit | Skill | 180 | 14d ago | Apache-2.0 | A | 55 | Claude Code |
| dotnet-csharp-advisorkhalilbenaz/claude-skills-collection | Skill | 27 | 3mo ago | MIT | A | 80 | Claude Code, Codex |
| gdextensionjame581/GodotPrompter | Skill | 1.0k | today | MIT | A | 38 | Claude Code |
| aspnet-coreclaude-dev-suite/claude-dev-suite | Skill | 51 | yesterday | MIT | A | 111 | Claude Code |
| aspnet-middlewareclaude-dev-suite/claude-dev-suite | Skill | 51 | yesterday | MIT | A | 73 | Claude Code |
| aspnet-validationclaude-dev-suite/claude-dev-suite | Skill | 51 | yesterday | MIT | A | 85 | Claude Code |
| aspnet-blazorclaude-dev-suite/claude-dev-suite | Skill | 51 | yesterday | MIT | A | 106 | Claude Code |