akka-net-testing-patterns

akka-net-testing-patterns is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 51 tokens per session (2,114 once invoked), scanned A, a copy of akka-net-testing-patterns, MIT.

A testing guide for Akka.NET actors, which are objects that communicate by sending messages, in modern .NET applications. It covers unit tests, integration tests, dependency injection, message checking, persistence, recovery, supervision, and cluster sharding.

In plain words
What is it for?
Use it to test actor interactions, persistent actors, state recovery, lifecycle behavior, external services, and locally simulated cluster sharding.
Why use it?
It helps developers choose suitable testing patterns for actor systems and verify both message flows and saved state. It also explains when to use the newer hosting-based test tools or the traditional test kit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

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.

agentmods
npx agentmods add skills/comeonoliver/skillshub/akka-testing-patterns
Any agent
npx skills add ComeOnOliver/skillshub --skill akka-testing-patterns
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, 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 akka-net-testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/akka-testing-patterns.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/akka-testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/akka-testing-patterns"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/akka-testing-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00051 $0.02114
Opus 5 $0.00026 $0.01057
Sonnet 5 $0.00010 $0.00423
Haiku 4.5 $0.00005 $0.00211

Measured 6d ago against content hash 195bd22cd45d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

akka-net-testing-patterns 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 6d 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

This is a copy

100% identical to akka-net-testing-patterns — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/Aaronontheweb/dotnet-skills/akka-testing-patterns/SKILL.md · 255 lines

How it starts

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

Akka.NET Testing Patterns

When to Use This Skill

Use this skill when:

  • Writing unit tests for Akka.NET actors
  • Testing persistent actors with event sourcing
  • Verifying actor interactions and message flows
  • Testing actor supervision and lifecycle
  • Mocking external dependencies in actor tests
  • Testing cluster sharding behavior locally
  • Verifying actor state recovery and persistence

Reference Files

Choosing Your Testing Approach

Use Akka.Hosting.TestKit (Recommended for 95% of Use Cases)

When:

  • Building modern .NET applications with Microsoft.Extensions.DependencyInjection
  • Using Akka.Hosting for actor configuration in production
  • Need to inject services into actors (IOptions, DbContext, ILogger, HTTP clients, etc.)
  • Testing applications that use ASP.NET Core, Worker Services, or .NET Aspire
  • Working with modern Akka.NET projects (Akka.NET v1.5+)

Advantages:

  • Native dependency injection support - override services with fakes in tests
  • Configuration parity with production (same extension methods work in tests)
  • Clean separation between actor logic and infrastructure
  • Type-safe actor registry for retrieving actors

Use Traditional Akka.TestKit

When:

  • Contributing to Akka.NET core library development
  • Working in environments without Microsoft.Extensions (console apps, legacy systems)
  • Legacy codebases using manual Props creation without DI

See anti-patterns-and-reference.md for traditional TestKit patterns.


Core Principles (Akka.Hosting.TestKit)

  1. Inherit from Akka.Hosting.TestKit.TestKit - This is a framework base class, not a user-defined one
  2. Override ConfigureServices() - Replace real services with fakes/mocks
  3. Override ConfigureAkka() - Configure actors using the same extension methods as production
  4. Use ActorRegistry - Type-safe retrieval of actor references
  5. Composition over Inheritance - Fake services as fields, not base classes
  6. No Custom Base Classes - Use method overrides, not inheritance hierarchies
  7. Test One Actor at a Time - Use TestProbes for dependencies
  8. Match Production Patterns - Same extension methods, different AkkaExecutionMode

Read the full file on GitHub · 255 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. 6d ago First seen · 255 lines · 51 tokens per session scan A 195bd22cd45d

Subscribe to this mod's changes

akka-net-testing-patterns is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 2,114 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to akka-net-testing-patterns, differing in 1 line, and is treated as a copy.