infrastructure-layer-rules

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

A set of rules for the infrastructure part of a .NET application. It covers database access with EF Core, repository code, dependency injection, external services, and database migrations, which are tracked changes to the database structure.

In plain words
What is it for?
Use it when editing repositories, DbContext classes, entity mappings, service registrations, or EF Core migrations. It is intended for infrastructure projects in applications split into services.
Why use it?
It keeps database and service code organized and helps ensure that model changes are recorded and can be applied safely. It also sets consistent patterns for reading, writing, and configuring data.

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 Use it when editing repositories, DbContext classes, entity mappings, service registrations, or EF Core migrations. It is intended for infrastructure projects in applications split into services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makigjuro/cloudstack-ai-plugins/infrastructure-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 infrastructure-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 infrastructure-layer-rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/makigjuro/cloudstack-ai-plugins/infrastructure-layer-rules"><img src="https://agentmods.dev/badge/skills/makigjuro/cloudstack-ai-plugins/infrastructure-layer-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 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.00048 $0.00738
Opus 5.5 $0.00019 $0.00295
Sonnet 5.5 $0.00010 $0.00148
Haiku 4.5 $0.00005 $0.00074

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

Security

Grade A, and why

infrastructure-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/infrastructure-layer-rules/SKILL.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Infrastructure Layer Rules

Repository Implementation

  • Implement both command and query repository interfaces from Domain
  • A single class can implement both: OrderRepository : IOrderRepository, IOrderQueryRepository
  • Use EF Core for writes, Dapper for read-optimized queries where needed
  • Pagination returns (IReadOnlyCollection<T> Items, int TotalCount) tuples

EF Core Configuration

  • Entity configurations in Persistence/Configurations/ folder using IEntityTypeConfiguration<T>
  • Auto-apply via modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly())
  • Each service has its own schema: modelBuilder.HasDefaultSchema("order_service")
  • Ignore domain events: modelBuilder.Ignore<DomainEvent>()
  • Value object conversions defined in entity configurations

DbContext

  • One DbContext per microservice, inherits from DbContext
  • DbSets for aggregate roots only
  • Protected parameterless constructor not needed (DI handles instantiation)

EF Core Migrations

  • Create a migration whenever you add or modify entities, configurations, or DbSets
  • Run dotnet ef migrations add {Name} --project {Infrastructure} --startup-project {Host} immediately after model changes
  • Never commit entity/configuration changes without the corresponding migration
  • Review generated migrations before committing -- verify only expected changes are included
  • Skipping migrations causes PendingModelChangesWarning runtime errors

Zero-Downtime Migration Patterns

When modifying existing schemas in production, use the expand/contract pattern to avoid downtime:

Adding a column: Safe -- add as nullable or with a default value. Backfill data in a separate migration if needed.

Renaming a column: Unsafe as a single step. Instead:

  1. Expand: Add new column, deploy code that writes to both old and new
  2. Migrate: Backfill new column from old column
  3. Contract: Remove reads from old column, then drop it in a later migration

Dropping a column: Unsafe -- remove all code references first, deploy, then drop the column in a subsequent migration.

Read the full file on GitHub · 65 lines

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 · 65 lines · 48 tokens per session scan A 6dfcf3bfb9b1

Subscribe to this mod's changes

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

infrastructure-layer-rules compared with skills from other repositories

infrastructure-layer-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
infrastructure-layer-rulesmakigjuro/cloudstack-ai-pluginsSkill129d agoMITA48Claude Code
azure-postgres-tsmicrosoft/skillsSkill3.3kyesterdayMITA94Claude Code
phoenix-contextsoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA46Claude Code
api-mirrorcyanheads/obsidian-mcp-serverSkill72220d agoApache-2.0A68Claude Code
drizzle-orm-d1secondsky/claude-skillsSkill257yesterdayMITA76Claude Code
cloudflare-hyperdrivesecondsky/claude-skillsSkill257yesterdayMITA45Claude Code
idempotency-handlingsecondsky/claude-skillsSkill257yesterdayMITA46Claude Code