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 agentmods add rules/adonai-labs/agent-runway/dotnet-coregit 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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.01754 |
| Opus 5 | $0.00000 | $0.00877 |
| Sonnet 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 4d 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.
- 4d 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 14d 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.
Other cursor rules, from other repositories
archgate-governance
Archgate ADR governance — enforces architecture decision records.
cursorrules
When the user asks you to generate diagrams, analyze code structure, or visualize architecture, follow this analysis pipeline. Use terminal commands (rg, find, cat) for all file operations.
arch4
Keep Arch4 architecture maps current.
cursorrules
You are working with a React Native (Expo) architecture reference project. Read the skill files before generating any code.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
frontend-architecture
Vite + React SPA architecture - directory layout, providers, bundle splitting. Tailwind styling in tailwind.mdc.