domain-layer-rules

domain-layer-rules is a skill for Claude Code from makigjuro/cloudstack-ai-plugins. It costs 39 tokens per session (413 once invoked), scanned A, original, MIT.

A set of rules for the domain layer of a C# application. This layer contains business concepts and rules without depending on databases, web frameworks, or other outside systems.

In plain words
What is it for?
It helps define entities, aggregate roots, value objects, domain events, and repository interfaces using the project's conventions.
Why use it?
It keeps core business logic independent, easier to test, and less tied to technical infrastructure.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the dotnet-architect plugin — 14 skills, 1 agent shipped together

Good fit It helps define entities, aggregate roots, value objects, domain events, and repository interfaces using the project's conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules
Install

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.

Any agent
npx skills add makigjuro/cloudstack-ai-plugins --skill domain-layer-rules
Clone the repo
git clone --depth 1 https://github.com/makigjuro/cloudstack-ai-plugins

Made for: Claude Code.

Or install dotnet-architect, the plugin that ships this one along with the rest of its 14 skills, 1 agent.

Wrote 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.

agentmods badge for domain-layer-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules/github.svg)](https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules)
Your own site
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/domain-layer-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.

agentmods 80×15 button for domain-layer-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/domain-layer-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00413
Opus 5.5 $0.00016 $0.00165
Sonnet 5.5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00041

Measured 1mo ago against content hash 057f2056ede6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

domain-layer-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 1mo 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.

plugins/dotnet-architect/skills/domain-layer-rules/SKILL.md · 43 lines

What it actually says

Domain Layer Rules

Zero External Dependencies

  • No references to Infrastructure, Host, EF Core, ASP.NET, or any framework
  • Only pure C# and domain abstractions

Entities

  • Inherit from Entity<TId> where TId is a strongly-typed value object
  • Identity equality based on ID only
  • Protected parameterless constructor for EF Core deserialization
  • Private or protected constructor taking TId id that calls base(id); create instances through static factory methods

Aggregate Roots

  • Inherit from AggregateRoot<TId> which extends Entity<TId>
  • Use static factory methods for creation: public static Order Create(TenantId tenantId, string description, ...)
  • Raise domain events inside factory methods and state-changing methods: RaiseDomainEvent(new OrderCreatedEvent(...))
  • Only aggregate roots are directly persisted via repositories

Value Objects

  • Inherit from abstract ValueObject
  • Implement GetEqualityComponents() returning IEnumerable<object?>
  • Immutable: use init properties or readonly fields
  • Examples: OrderId, TenantId, Money, Address

Domain Events

  • Inherit from DomainEvent abstract base class
  • Named in past tense: OrderCreatedEvent, PaymentProcessedEvent
  • Raised via RaiseDomainEvent() inside aggregate root methods
  • Contain only the data needed by consumers (IDs, timestamps, key values)

Repository Interfaces

  • Defined in Domain as ports: IOrderRepository, ICustomerRepository
  • Separate command repos (mutations) from query repos (reads) for CQRS
  • Async signatures with CancellationToken
Changes

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.

  1. 1mo ago First seen · 43 lines · 39 tokens per session scan A 057f2056ede6

Subscribe to this mod's changes

domain-layer-rules is a skill published in the GitHub repository makigjuro/cloudstack-ai-plugins (1 stars, last pushed 29d ago), licensed MIT. It adds 39 tokens to every session and 413 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-10-21.

Related

domain-layer-rules compared with skills from other repositories

domain-layer-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
domain-layer-rulesmakigjuro/cloudstack-ai-pluginsSkill129d agoMITA39Claude Code
rider-searchJSungMin/rider-mcp-enforcerSkill41mo agoMITA60Claude Code
generate-code-csAzure/azure-sdk-for-netSkill6.1ktodayMITA26Claude Code, Codex
translate-a-sampleAzure/azure-sdk-for-netSkill6.1ktodayMITA90Claude Code, Codex
author-testAzure/azure-sdk-for-netSkill6.1ktodayMITA68Claude Code, Codex
azure-maps-search-dotnetmicrosoft/skillsSkill3.3ktodayMITA91Claude Code
azure-resource-manager-postgresql-dotnetmicrosoft/skillsSkill3.3ktodayMITA97Claude Code