
distributed-system-testing — Updated!
AI-agent skills for distributed-systems testing
Distributed Systems Testing Skills
Two skills that help an AI coding agent design meaningful tests, run them, and explain the results for systems that store data or run across multiple processes or machines.
Start with a product promise—such as “once saving succeeds, the data is still there after a restart”—and turn it into tests your agent can run and check. Use these skills for databases, queues, workflow engines, and services where retries, simultaneous requests, or failures could lose or duplicate data. A service running on one machine can benefit too.
You do not need to be a testing expert. Describe the feature and what should remain true; the design skill helps choose the tests and explain why they matter.
The skills are Markdown instructions, templates, and reference material. Your coding agent follows them using your project's test tools and runtime. This repository does not bundle a database test runner or a ready-made cluster.
| Skill | Give it | It produces |
|---|---|---|
| Design tests | A codebase and the change or feature you want to test | A plan explaining what to test, how to check it, and how much testing to do |
| Execute tests | A plan and a test environment | Results, supporting logs and data, steps to reproduce failures, and a report |
You can use the design skill on its own. Execution is a separate step that reads the saved plan, so you can review the work and its cost before running it.
Start with the quick start, Codex setup, or test environment guide.
Quick start
1. Install the skills
Paste this into your coding agent:
Read https://raw.githubusercontent.com/shenli/distributed-system-testing/main/INSTALL.md
and follow the instructions to install or update
distributed-testing-skills for this agent.
The installation guide uses a shared checkout at
~/.local/share/distributed-testing-skills/ and configures pointers or
symlinks for your agent. Reuse the same prompt to update. The explicit paths
in the prompts below also let you load a skill without automatic discovery.
Substitute your install path if you chose a different location.
For Claude Code, the repository also includes a plugin installation option:
/plugin marketplace add shenli/distributed-system-testing
/plugin install distributed-testing-skills@distributed-testing-skills
2. Design a plan in your project's directory
Start your agent in the repository you want to test. For a specific change:
Use ~/.local/share/distributed-testing-skills/skills/designing-distributed-system-tests/SKILL.md
Design a test plan for the current branch's changes to adding log entries,
retrying failed requests, and recovering after a crash.
Reuse the existing tests and setup instructions.
Save the plan to docs/testing-plans/append-recovery.md.
Replace the example feature with yours. For a broader review, ask for a project-wide plan and name the parts to include. That mode reviews existing tests and identifies missing coverage across the system rather than one change.
Review the promises being checked, proposed tests, required tools, and run times. A documentation typo or similarly low-impact change should get a lightweight testing recommendation instead of a distributed test plan.
3. Run the plan against a disposable test environment
Use ~/.local/share/distributed-testing-skills/skills/executing-distributed-system-tests/SKILL.md
Run the small initial checks (the smoke tier) from
docs/testing-plans/append-recovery.md against this project's local test
environment. Keep temporary test scripts and results under
./test-sessions/. Use default mode; do not modify project source files.
Report what ran, what failed, and what remains untested.
The execution skill discovers existing tools, asks what is available in your environment, then verifies the requirements. Missing dependencies or ineffective simulated failures must be reported rather than silently counted as successful tests. Start small, then request the longer, more thorough runs defined in the plan.
See USAGE.md for detailed prompts, custom output paths, and author mode.
For Codex users
Run the installation prompt above in Codex. The guide links both skill folders
from the shared checkout into ~/.agents/skills/, where Codex discovers them.
For a project-only installation, use that project's .agents/skills/ instead.
These locations and symlink support are described in the
official Codex skills documentation.
Open the project you want to test. In Codex CLI or the IDE extension, use
/skills to check that both skills appear, or type $ to select one. If a newly
installed skill does not appear, restart Codex. You can also use the explicit
file-path prompts in the quick start. See the
official invocation guidance.
For example, ask Codex to design a plan:
$designing-distributed-system-tests
Design a test plan for this project's retry and recovery behavior.
I have Docker locally and can run disposable containers.
Start with normal operation, then simultaneous requests and restarts.
Save the plan to docs/testing-plans/retry-recovery.md.
After reviewing it, run the initial tests:
$executing-distributed-system-tests
Run the smoke tier of docs/testing-plans/retry-recovery.md.
Use default mode and save results under ./test-sessions/.
Docker is available; use the project's documented container setup.
Report any missing tools or permissions and which tests they prevent.
Installing a skill supplies instructions, not Docker, remote access, or a test cluster. Codex must be able to reach the environment where commands will run. For remote testing, give it the test hosts, your existing connection method, and the project's setup commands. If access is unavailable, it can still design the plan, but cannot report that remote tests ran.
Choose and prepare a test environment
Use the smallest setup that can answer your question. These are starting points to adapt to your application, not hardware requirements or bundled deployment recipes.
| Goal | Suggested setup | What it can tell you |
|---|---|---|
| Find correctness bugs quickly | Your laptop, the project's runtime, and disposable local processes or containers | Whether requests, retries, transactions, and restarts behave correctly in that setup |
| Compare performance between versions | A quiet, dedicated test machine; a separate machine to send requests when measuring a service | Whether a change affects speed or resource use under the same conditions |
| Test failures across machines | Separate test hosts or VMs, one server instance per host, plus a separate test controller | How the system handles one server stopping or communication between servers breaking |
Local correctness tests
Start with the project's existing setup instructions. Install its required language/runtime and, if it uses containers, Docker or another supported container runtime. Give each instance its own ports and data directory or volume. Use a dedicated test database and a repeatable way to reset its data.