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 makigjuro/cloudstack-ai-plugins --skill infrastructure-layer-rulesgit clone --depth 1 https://github.com/makigjuro/cloudstack-ai-pluginsWrote 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/makigjuro/cloudstack-ai-plugins/infrastructure-layer-rules)<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.
<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>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.00048 | $0.00738 |
| Opus 5.5 | $0.00019 | $0.00295 |
| Sonnet 5.5 | $0.00010 | $0.00148 |
| Haiku 4.5 | $0.00005 | $0.00074 |
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.
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 usingIEntityTypeConfiguration<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
PendingModelChangesWarningruntime 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:
- Expand: Add new column, deploy code that writes to both old and new
- Migrate: Backfill new column from old column
- 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.
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.
- 1mo ago First seen · 65 lines · 48 tokens per session scan A 6dfcf3bfb9b1
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.
infrastructure-layer-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| infrastructure-layer-rulesmakigjuro/cloudstack-ai-plugins | Skill | 1 | 29d ago | MIT | A | 48 | Claude Code |
| azure-postgres-tsmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 94 | Claude Code |
| phoenix-contextsoliver-kriska/claude-elixir-phoenix | Skill | 579 | yesterday | MIT | A | 46 | Claude Code |
| api-mirrorcyanheads/obsidian-mcp-server | Skill | 722 | 20d ago | Apache-2.0 | A | 68 | Claude Code |
| drizzle-orm-d1secondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 76 | Claude Code |
| cloudflare-hyperdrivesecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 45 | Claude Code |
| idempotency-handlingsecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 46 | Claude Code |