designing-distributed-system-tests

designing-distributed-system-tests is a skill for Claude Code, Codex from shenli/distributed-system-testing. It costs 211 tokens per session (6,466 once invoked), scanned A, original, MIT.

A test-planning guide for distributed or stateful systems—software spread across machines or storing data over time. It focuses on failures involving replication, consensus, retries, messaging, partial outages, and multiple customers or tenants.

In plain words
What is it for?
Use it to create change-specific or project-wide test plans, identify likely failure modes, choose test techniques, and produce a structured plan for a person or another tool to run.
Why use it?
Basic integration tests often miss bugs caused by timing, machine failures, duplicate requests, or lost messages.

Skill for Claude CodeCodex

Part of the distributed-system-testing plugin — 2 skills shipped together

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/shenli/distributed-system-testing/designing-distributed-system-tests
Any agent
npx skills add shenli/distributed-system-testing --skill designing-distributed-system-tests
Clone the repo
git clone --depth 1 https://github.com/shenli/distributed-system-testing

Made for: Claude Code, Codex.

Or install distributed-system-testing, the plugin that ships this one along with the rest of its 2 skills.

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 designing-distributed-system-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/shenli/distributed-system-testing/designing-distributed-system-tests.svg)](https://agentmods.dev/skills/shenli/distributed-system-testing/designing-distributed-system-tests)
Your own site
<a href="https://agentmods.dev/skills/shenli/distributed-system-testing/designing-distributed-system-tests"><img src="https://agentmods.dev/badge/skills/shenli/distributed-system-testing/designing-distributed-system-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 211 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,466 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00211 $0.06466
Opus 5 $0.00105 $0.03233
Sonnet 5 $0.00042 $0.01293
Haiku 4.5 $0.00021 $0.00647

Measured 5d ago against content hash 739f8930711d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

designing-distributed-system-tests 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 5d 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.

skills/designing-distributed-system-tests/SKILL.md · 560 lines

How it starts

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

Designing Distributed-System Tests

The default for testing distributed and stateful systems — write a few integration tests and call it done — finds a small fraction of the bugs that actually break these systems in production. This skill enforces an opinionated workflow: scope the change, generate failure-mode hypotheses that cover the categories the literature says matter most, pick techniques from a curated catalog, and emit a structured plan file that the executing-distributed-system-tests skill (or a human) can run.

Plan modes

This skill produces two shapes of plan. Decide which one applies before you start; the steps below branch on it.

  • Change-scoped — the default. Use when the caller names a commit, PR, branch-diff, or feature. The plan covers what this change could regress, scoped by its blast radius.
  • Project-wide — use when the caller asks for a "release-validation plan", "stability plan for the whole system", "test plan to enough coverage", "what should we be testing", or otherwise frames the request without a specific change. The plan covers what the system should be tested for, with an explicit inventory of existing tests and a gap analysis driving the new-scenario list.

If the framing is ambiguous, ask once before starting — the modes diverge enough that retrofitting one into the other wastes work.

Process

Follow these steps in order. Do not skip; the order matters because later steps depend on artifacts the earlier steps produce.

1. Scope the system

Read the project's entry points: README, AGENTS.md or CLAUDE.md, top-level docs/, any existing test-plan or runbook files. Note:

  • Tenancy / isolation model
  • Persistence model (what is durable, fsync contract)
  • Replication / consensus protocol, quorum, leadership
  • Ordering guarantee exposed to clients
  • Network boundaries (which RPCs / streams)
  • Retry / idempotency contract
  • Observability (logs, metrics, traces) available to an oracle

Write this as a one-paragraph SUT model. If anything is ambiguous from the repo, ask the user before proceeding — do not invent guarantees.

Read the full file on GitHub · 560 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. 5d ago First seen · 560 lines · 0 tokens per session scan A 739f8930711d

Subscribe to this mod's changes

designing-distributed-system-tests is a skill published in the GitHub repository shenli/distributed-system-testing (229 stars, last pushed 1mo ago), licensed MIT. It adds 211 tokens to every session and 6,466 once invoked, about $0.0011 per session on Opus 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-08-30.

Related

Other skills, from other repositories

docker-local-build

Build and test Kurtosis from source on local Docker. Compiles all components (engine, core, files-artifacts-expander), builds Docker images, installs the CLI, and restarts the engine. Use when developing Kurtosis and testing changes locally with Docker.

kurtosis-tech/kurtosis · 56 tokens

files-inspect

Inspect, download, upload, and debug Kurtosis file artifacts. View artifacts in an enclave, download them locally for inspection, upload local files, and troubleshoot file mounting issues. Use when services can't find expected files or configs are wrong.

kurtosis-tech/kurtosis · 51 tokens

docker-debug

Debug Kurtosis running on local Docker. Inspect engine, API container, and service logs. Diagnose container crashes, port conflicts, and networking issues. Use when kurtosis commands fail or services aren't reachable on Docker.

kurtosis-tech/kurtosis · 45 tokens

service-manage

Manage services in Kurtosis enclaves. Add, inspect, stop, start, remove, update services. View logs, shell into containers, and execute commands. Use when you need to interact with running services.

kurtosis-tech/kurtosis · 46 tokens

starlark-dev

Develop and debug Kurtosis Starlark packages. Create packages from scratch, understand the plan-based execution model, use print() debugging, handle future references, and test packages locally. Use when writing or troubleshooting .star files.

kurtosis-tech/kurtosis · 50 tokens

cli-local-build

Build and test the Kurtosis CLI from source. Compile the CLI binary locally, run it against Docker or Kubernetes engines, and iterate on CLI changes without creating a release. Use when developing or debugging CLI commands.

kurtosis-tech/kurtosis · 46 tokens