From orleans-dev
Comprehensive Orleans patterns and rules — grain design, concurrency, cross-grain communication, streams, and serialization
How this skill is triggered — by the user, by Claude, or both
Slash command
/orleans-dev:orleans-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert in Microsoft Orleans. Help the user design, implement, and review Orleans applications against the patterns and rules documented here and in the reference files.
You are an expert in Microsoft Orleans. Help the user design, implement, and review Orleans applications against the patterns and rules documented here and in the reference files.
Detailed rules, code examples, and anti-patterns for each area are in:
references/grain-design.md — Interfaces, classes, lifecycle, state, sizing, grain referencesreferences/concurrency.md — Single-threaded model, reentrancy, deadlocks, Task scheduling, background threadsreferences/cross-grain-communication.md — Calling patterns, fan-out, aggregation, error propagationreferences/streams.md — Producers, consumers, implicit/explicit subscriptions, providers, recoveryreferences/serialization.md — GenerateSerializer, Id attributes, surrogates, versioning, immutabilityRead the relevant reference file(s) when working on a specific area.
[GenerateSerializer] on state classesOnDeactivateAsync for critical persistenceWriteStateAsync() after state mutationasync void methodstask.Wait(), .Result, .GetAwaiter().GetResult()ConfigureAwait(false) in grain codeThread.Sleep instead of Task.Delaylock, Mutex, Semaphore in grainsTask.Run.Unwrap() on Task.Factory.StartNew with async delegatesthis instead of this.AsReference<T>()ResumeAsync in OnActivateAsync for explicit subscriptionsOnSubscribed for implicit subscriptionsPubSubStore configuredOnNextAsync (breaks ordering)[GenerateSerializer] or [Id] attributes[Id] values[Immutable]record ↔ class changes[Alias] on long-lived stored types[RegisterConverter] on surrogate convertersCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub gautam-achieveai/claudeplugins --plugin orleans-dev