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 Arasz/ai-raccoon --skill dotnet-domain-modelinggit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/dotnet-domain-modeling)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/dotnet-domain-modeling"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-domain-modeling/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/arasz/ai-raccoon/dotnet-domain-modeling"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/dotnet-domain-modeling.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.00085 | $0.04481 |
| Opus 5.5 | $0.00034 | $0.01792 |
| Sonnet 5.5 | $0.00017 | $0.00896 |
| Haiku 4.5 | $0.00009 | $0.00448 |
Grade A, and why
dotnet-domain-modeling 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 yesterday.
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 — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.
.NET Domain Modeling
Immutable domain models in C# using sealed records, CommunityToolkit.Diagnostics guard clauses, and pure-domain TDD.
When to Use
- Building DDD aggregates, entities, value objects in C#
- Domain layer must stay pure (no infra, HTTP, persistence, LLM dependencies)
- State machine / lifecycle transitions on domain objects
- Policy objects that evaluate decisions based on aggregate state + confidence thresholds
- Extension-point interfaces (repository, monitor, adapter)
Immutable Record Pattern
Structure
using CommunityToolkit.Diagnostics;
namespace MyApp.Domain.Feature;
/// <summary>Brief doc comment — state contract, not rationale.</summary>
public sealed record MyAggregate
{
public required string Id { get; init; }
public required string UserId { get; init; } // partition key
public MyStatus Status { get; init; } = MyStatus.Draft;
public required DateTimeOffset CreatedAt { get; init; }
// Immutable transition: guard + return new instance
public MyAggregate Activate()
{
if (Status != MyStatus.Draft)
ThrowHelper.ThrowInvalidOperationException(
$"Cannot activate from '{Status}'; only 'Draft' is allowed.");
return this with { Status = MyStatus.Active };
}
}
Conventions
| Convention | Example |
|---|---|
sealed record |
No inheritance, value semantics, with expressions |
required properties |
Mandatory fields enforced at compile time |
| Default values on optional | Status { get; init; } = Status.Draft; |
| Methods return new instance | return this with { ... }; — never mutate |
| Guard at entry | ThrowHelper.Throw* or Guard.* |
| Factory methods | static MyAggregate Create(...) for known entry points |
| camelCase JSON | Use [JsonPropertyName("camelCase")] if serialized |
| Minimal doc comments | 1–3 lines, state contract not rationale |
Constructor-validated records: read
references/constructor-validated-records.mdwhen designing constructor-validated record types.
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/common-file-layout.md 1.4 KB
- references/communitytoolkit-guard-pitfalls.md 2.9 KB
- references/communitytoolkit-guards-full.md 5.0 KB
- references/constructor-validated-records.md 2.2 KB
- references/cosmos-persistence-implementation.md 22 KB
- references/csharp-string-interpolation-gotchas.md 2.9 KB
- references/deterministic-classification-pipeline.md 10 KB
- references/durable-functions-orchestration-pitfalls.md 9.9 KB
- references/durable-functions-orchestrations.md 1.8 KB
- references/durable-functions-testing-patterns.md 11 KB
- references/exception-problemdetails-wiring.md 1.7 KB
- references/financial-domain-modeling.md 6.8 KB
- references/fluentvalidation-nested-validators.md 5.6 KB
- references/high-performance-logging.md 1.3 KB
- references/http-endpoint-testing-patterns.md 11 KB
- references/infrastructure-adapter-pattern.md 10 KB
- references/ingest-wiring-pattern.md 5.4 KB
- references/injectable-components-pattern.md 4.2 KB
- references/intervention-sources.md 641 B
- references/lifecycle-completeness-matrix.md 1.2 KB
- references/project-gotchas.md 12 KB
- references/pure-domain-project-scaffolding.md 5.5 KB
- references/recommendation-engine-pattern.md 7.3 KB
- references/signal-correlation-and-bootstrap-import.md 9.8 KB
- references/state-machine-pattern.md 1.0 KB
- references/state-machine-policy-testing.md 8.8 KB
- references/tdd-workflow-domain-models.md 3.6 KB
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.
- yesterday First seen · 316 lines · 85 tokens per session scan A e6ab36b5c7f1
dotnet-domain-modeling is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 4,481 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-12-05.
dotnet-domain-modeling compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dotnet-domain-modelingArasz/ai-raccoon | Skill | 7 | today | MIT | A | 85 | Claude Code, Codex |
| nw-fp-fsharpnWave-ai/nWave | Skill | 638 | 16d ago | MIT | A | 21 | Claude Code |
| nw-pbt-dotnetnWave-ai/nWave | Skill | 638 | 16d ago | MIT | A | 25 | Claude Code |
| tddcodewithmukesh/dotnet-claude-kit | Skill | 853 | 1mo ago | MIT | A | 81 | Claude Code |
| http-client-migrationGen-Verse/PAST-Bench | Skill | 40 | 4mo ago | Apache-2.0 | A | 14 | Claude Code, Codex |
| dotnet-pinvokerootcastleco/rei-skills | Skill | 11 | 5d ago | none | A | 119 | Claude Code, Codex |
| azure-eventgrid-dotnetrootcastleco/rei-skills | Skill | 11 | 5d ago | none | A | 80 | Claude Code, Codex |