Skills for Real Engineers. Straight from my .agents directory.
akka-hosting-actor-patterns
Agent skill fromAaronontheweb/dotnet-skills
Patterns for building entity actors with Akka.Hosting - GenericChildPerEntityParent, message extractors, cluster sharding abstraction, akka-reminders, and ITimeProvider. Supports both local testing and clustered production modes.
How to install akka-hosting-actor-patterns
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/akka-hosting-actor-patterns/
# into
~/.claude/skills/akka-hosting-actor-patterns/ (all projects)
.claude/skills/akka-hosting-actor-patterns/ (one project)
1# Akka.Hosting Actor Patterns23## When to Use This Skill45Use this skill when:6- Building entity actors that represent domain objects (users, orders, invoices, etc.)7- Need actors that work in both unit tests (no clustering) and production (cluster sharding)8- Setting up scheduled tasks with akka-reminders9- Registering actors with Akka.Hosting extension methods10- Creating reusable actor configuration patterns1112## Core Principles13141. **Execution Mode Abstraction** - Same actor code runs locally (tests) or clustered (production)152. **GenericChildPerEntityParent for Local** - Mimics sharding semantics without cluster overhead163. **Message Extractors for Routing** - Reuse Akka.Cluster.Sharding's IMessageExtractor interface174. **Akka.Hosting Extension Methods** - Fluent configuration that composes well185. **ITimeProvider for Testability** - Use ActorSystem.Scheduler instead of DateTime.Now1920## Execution Modes2122Define an enum to control actor behavior:2324```csharp25/// <summary>26/// Determines how Akka.NET should be configured27/// </summary>28public enum AkkaExecutionMode29{30 /// <summary>31 /// Pure local actor system - no remoting, no clustering.32 /// Use GenericChildPerEntityParent instead of ShardRegion.33 /// Ideal for unit tests and simple scenarios.34 /// </summary>35 LocalTest,3637 /// <summary>38 /// Full clustering with ShardRegion.39 /// Use for integration testing and production.40 /// </summary>41 Clustered42}43```4445## GenericChildPerEntityParent46…
Excerpt shown under the repository's MIT license.
More skills in dotnet-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
