Skills for Real Engineers. Straight from my .agents directory.
akka-net-testing-patterns
Agent skill fromAaronontheweb/dotnet-skills
Write unit and integration tests for Akka.NET actors using modern Akka.Hosting.TestKit patterns. Covers dependency injection, TestProbes, persistence testing, and actor interaction verification. Includes guidance on when to use traditional TestKit.
How to install akka-net-testing-patterns
npx skills add Aaronontheweb/dotnet-skills# or add only this skill to Claude Code: copy the folder
skills/akka-testing-patterns/
# into
~/.claude/skills/akka-testing-patterns/ (all projects)
.claude/skills/akka-testing-patterns/ (one project)
1# Akka.NET Testing Patterns23## When to Use This Skill45Use this skill when:6- Writing unit tests for Akka.NET actors7- Testing persistent actors with event sourcing8- Verifying actor interactions and message flows9- Testing actor supervision and lifecycle10- Mocking external dependencies in actor tests11- Testing cluster sharding behavior locally12- Verifying actor state recovery and persistence1314## Reference Files1516- [examples.md](examples.md): Complete code samples for all testing patterns (Patterns 1-8 plus Reminders)17- [anti-patterns-and-reference.md](anti-patterns-and-reference.md): Anti-patterns, traditional TestKit, CI/CD integration1819## Choosing Your Testing Approach2021### Use Akka.Hosting.TestKit (Recommended for 95% of Use Cases)2223**When:**24- Building modern .NET applications with `Microsoft.Extensions.DependencyInjection`25- Using Akka.Hosting for actor configuration in production26- Need to inject services into actors (`IOptions`, `DbContext`, `ILogger`, HTTP clients, etc.)27- Testing applications that use ASP.NET Core, Worker Services, or .NET Aspire28- Working with modern Akka.NET projects (Akka.NET v1.5+)2930**Advantages:**31- Native dependency injection support - override services with fakes in tests32- Configuration parity with production (same extension methods work in tests)33- Clean separation between actor logic and infrastructure34- Type-safe actor registry for retrieving actors3536### Use Traditional Akka.TestKit3738**When:**39…
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
