Dayz stop test

From DayZ-n-Chill/Agentic-Z · View interactive version

Dayz stop test is an AI agent skill from the GitHub repository DayZ-n-Chill/Agentic-Z. Kills every running DayZDiag_x64.exe process (local test server and client). Use when a /dayz-launch-test session needs to stop, including when the environment is half-broken; does not gate on /dayz-preflight.

How to use this skill

Skill file

<!-- skill-dir-note -->

Path note: <skill-dir> in commands below is the absolute path of this skill's folder. When the agent loads this skill the harness exposes the skill's base directory; substitute it before running. Sibling skills are reached via <skill-dir>\..\dayz-X\.

/dayz-stop-test

Stop a running local DayZ test session by killing every DayZDiag_x64.exe process. Counterpart to /dayz-launch-test.

Follow skills/_shared/dayz-conventions.md. This skill is the abort-only exception to the preflight gate described there, so it works even with P:\ dismounted.

How to run

"<skill-dir>\stop_test.bat"

No arguments (--help or -h prints usage). Runs taskkill /IM DayZDiag_x64.exe /F. A thin .bat is enough because the whole job is one taskkill call.

Exit codes

| taskkill result | Output | Exit |

|---|---|---|

| Processes killed | One SUCCESS: line per process | 0 |

| No process running (errorlevel 128) | [OK] No DayZDiag_x64.exe processes running. only | 0 |

| Any other failure (e.g. access denied) | taskkill's error, then [FAIL] taskkill failed with errorlevel N. | N |

| --help or -h (taskkill not run) | The usage text | 0 |

| Any other argument (taskkill not run) | [FAIL] Unknown argument: <arg> (stop-test takes no arguments; see --help). | 2 |

taskkill's error output is captured and dropped only for errorlevel 128 (its "process not found" line); for every other result it is re-printed on stderr, so real failures stay visible.

Scope

Before you stop a session you did not start

taskkill /IM ends every DayZDiag_x64.exe on the machine, whoever started it. The test machine has one game port and one Steam client, so another session (the user's own play session, a second agent) may hold it. The measured cases are in skills/dayz-launch-test/references/test-machine-sharing.md, "Check who holds the machine before any kill or launch".

```powershell

Get-CimInstance Win32_Process -Filter "Name='DayZDiag_x64.exe' OR Name='DayZServer_x64.exe'" | Select-Object ProcessId, CommandLine

```

If a process loads a mod other than the one under test, ask the user before stopping it. /dayz-gate applies the same rule: it stops a session it did not start only after --yes or a yes at the prompt.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.