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.
git clone --depth 1 https://github.com/adonai-labs/agent-runwayWrote 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/rules/adonai-labs/agent-runway/dotnet-core)<a href="https://agentmods.dev/rules/adonai-labs/agent-runway/dotnet-core"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/dotnet-core/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/rules/adonai-labs/agent-runway/dotnet-core"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/dotnet-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.01754 |
| Opus 5.5 | $0.00000 | $0.00702 |
| Sonnet 5.5 | $0.00000 | $0.00351 |
| Haiku 4.5 | $0.00000 | $0.00175 |
Grade A, and why
dotnet-core 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 3mo 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
.NET and C# Development Guidelines
Directives for .NET Core and C# development. Use Australian English spelling throughout.
Naming Conventions
- Public members: PascalCase (classes, methods, properties, constants)
- Private fields: camelCase with leading underscore (
_userRepository) - Constants: UPPER_CASE or PascalCase for public API constants
- Interfaces: Prefix with
I(e.g.IUserRepository) - Async methods: Suffix with
Async(e.g.GetUserByIdAsync) - File names: Match primary type (e.g.
UserService.cs)
Modern C# Features
- Records: Prefer records for immutable DTOs, value objects, and API responses. Use positional syntax for simple data; add computed properties or
withexpressions when needed. - Pattern matching: Use switch expressions and property patterns instead of long if-else chains. Prefer pattern matching in exception handlers for mapping to HTTP status codes.
- Nullable reference types: Enable
<Nullable>enable</Nullable>. UseT?for optional returns; avoidnull!except where framework requires it. Validate constructor parameters with?? throw new ArgumentNullException(nameof(param)). - Primary constructors: Use for DI-injected services and simple DTOs where it reduces boilerplate.
Async/Await Rules
- Use
async/awaitfor all I/O (database, HTTP, file system). Never use.Resultor.Wait()— they block and can deadlock. - Use
Task.WhenAllfor independent parallel operations; avoid sequential awaits when operations are independent. - Use
ConfigureAwait(false)only in library code, not in ASP.NET Core request handlers. - Never use
async voidexcept for event handlers.
Dependency Injection
- Register services by interface. Use
AddScopedfor DbContext and request-scoped services;AddSingletonfor caches and configuration;AddTransientfor stateless, lightweight services. - Prefer constructor injection. Validate dependencies with
?? throw new ArgumentNullException(nameof(x)). - Use extension methods (e.g.
AddApplicationServices) to group registrations.
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.
- 3mo ago First seen · 119 lines · 0 tokens per session scan A 1cde6a8bb9c4
dotnet-core is a cursor rule published in the GitHub repository adonai-labs/agent-runway (2 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,754 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.
dotnet-core compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-coreadonai-labs/agent-runway | Cursor rule | 2 | 4d ago | MIT | A | 0 | Cursor |
| optimize-dry-solid-principles-cursorrules-prompt-fPatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 150 | Cursor |
| code-optimizationleshchenko1979/fast-mcp-telegram | Cursor rule | 50 | 9d ago | MIT | A | 0 | Cursor |
| agent-masterSurya8991/AgentMaster | Cursor rule | 2 | 12d ago | MIT | B | 211 | Cursor |
| ai-dev-os-reviewyunbow/ai-dev-os-plugin-cursor | Cursor rule | 2 | 8mo ago | MIT | A | 56 | Cursor |
| Accessibility-ReviewTheSethRose/DevRules | Cursor rule | 26 | 1y ago | MIT | A | 0 | Cursor |
| checkysfAskri/archguardian | Cursor rule | 4 | 9mo ago | MIT | A | 0 | Cursor |