Orleans.RateLimiting: Skill for Codex

.codex/skills/orleans/SKILL.md

orleans is a skill for Codex from managedcode/Orleans.RateLimiting. It costs 39 tokens per session (2,998 once invoked), scanned A, original, MIT.

A guide for building and reviewing distributed .NET applications with Microsoft Orleans, a framework for running many stateful entities across multiple servers. It covers grains, silos, storage, messaging, testing, and cloud hosting.

In plain words
What is it for?
Use it when modeling entities such as users, carts, devices, orders, sessions, or collaborative documents, and when deciding between grains, streams, reminders, transactions, and event sourcing. It also helps with testing and deploying Orleans applications.
Why use it?
It helps developers choose and configure Orleans parts without missing concerns such as state storage, entity placement, serialization, or deployment. It also supports checking Orleans-specific code and tests.

Skill for Codex

Written for Codex: installed under .codex/.

This is managedcode/Orleans.RateLimiting's own configuration. It tells Codex how to work on Orleans.RateLimiting itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Orleans.RateLimiting configures →

Reuse

Borrowing it

Nothing to install: this file belongs to managedcode/Orleans.RateLimiting. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/managedcode/Orleans.RateLimiting/main/.codex/skills/orleans/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/managedcode/Orleans.RateLimiting

Made for: Codex.

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 orleans

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/orleans.ratelimiting/orleans/github.svg)](https://agentmods.dev/skills/managedcode/orleans.ratelimiting/orleans)
Your own site
<a href="https://agentmods.dev/skills/managedcode/orleans.ratelimiting/orleans"><img src="https://agentmods.dev/badge/skills/managedcode/orleans.ratelimiting/orleans/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 orleans

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/orleans.ratelimiting/orleans"><img src="https://agentmods.dev/badge/skills/managedcode/orleans.ratelimiting/orleans.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 2,998 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.02998
Opus 5.5 $0.00016 $0.01199
Sonnet 5.5 $0.00008 $0.00600
Haiku 4.5 $0.00004 $0.00300

Measured 19d ago against content hash 5b4d2fa91f0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orleans 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 19d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.codex/skills/orleans/SKILL.md · 186 lines

How it starts

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

Microsoft Orleans

Trigger On

  • building or reviewing .NET code that uses Microsoft.Orleans.*, Grain, IGrainWith*, UseOrleans, UseOrleansClient, IGrainFactory, JournaledGrain, ITransactionalState, or Orleans silo/client builders
  • testing Orleans code with InProcessTestCluster, Aspire.Hosting.Testing, WebApplicationFactory, or shared AppHost fixtures
  • modeling high-cardinality stateful entities such as users, carts, devices, rooms, orders, digital twins, sessions, or collaborative documents
  • choosing between grains, streams, broadcast channels, reminders, stateless workers, persistence providers, placement strategies, transactions, event sourcing, and external client/frontend topologies
  • deploying or operating Orleans with Redis, Azure Storage, Cosmos DB, ADO.NET, .NET Aspire, Kubernetes, Azure Container Apps, or built-in/dashboard observability
  • designing grain serialization contracts, versioning grain interfaces, configuring custom placement, or implementing grain call filters and interceptors

Workflow

  1. Decide whether Orleans fits. Use it when the system has many loosely coupled interactive entities that can each stay small and single-threaded. Do not force Orleans onto shared-memory workloads, long batch jobs, or systems dominated by constant global coordination.

  2. Model grain boundaries around business identity. Prefer one grain per user, cart, device, room, order, or other durable entity. Never create unique grains per request — use [StatelessWorker] for stateless fan-out. Grain identity types:

    • IGrainWithGuidKey — globally unique entities
    • IGrainWithIntegerKey — relational DB integration
    • IGrainWithStringKey — flexible string keys
    • IGrainWithGuidCompoundKey / IGrainWithIntegerCompoundKey — composite identity with extension string
  3. Design coarse-grained async APIs. All grain interface methods must return Task, Task<T>, or ValueTask<T>. Use IAsyncEnumerable<T> for streaming responses. Avoid .Result, .Wait(), blocking I/O, lock-based coordination. Use Task.WhenAll for parallel cross-grain calls. Apply [ResponseTimeout("00:00:05")] on interface methods when needed.

Read the full file on GitHub · 186 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. 19d ago First seen · 186 lines · 39 tokens per session scan A 5b4d2fa91f0e

Subscribe to this mod's changes

orleans is a skill published in the GitHub repository managedcode/Orleans.RateLimiting (30 stars, last pushed 11d ago), licensed MIT. It adds 39 tokens to every session and 2,998 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-02.