/agentic-z:dayz-gate build <ModName> [--yes] [--json] | ingame <ModName> [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--settle S] [--ready-pattern REGEX] [--test-bridge] [--yes] [--json] | behavior <ModName> [--checks FILE] [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--done-timeout S] [--ready-pattern REGEX] [--prepare-only | --logs [FILE ...]] [--yes] [--json] | visual <ModName> [--shots FILE] [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--threshold R] [--ready-pattern REGEX] [--compare [DIR] | --accept [DIR] [--shot ID ... [--replace-failed]]] [--yes] [--json]from agentic-z
Runs build, in-game, behavior, and visual gates as scripts with PASS/FAIL results. Use when gating a finished mod wave or checking a mod builds, loads, works, and looks correct in DayZ.
Ships in agentic-z. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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\.
Script versions of the dayz-build-checker and dayz-ingame-tester gates, plus a behavior gate that tests what each new item does and a visual gate that compares screenshots of the game with the expected look. They run the existing skill scripts as subprocesses and apply the same rules those agents follow, so a wave costs one command and a short report instead of two agent runs. The gates gate on /dayz-preflight through the scripts they call.
Follow skills/_shared/dayz-conventions.md.
python "<skill-dir>\gate.py" build <ModName> [--yes] [--json]
python "<skill-dir>\gate.py" ingame <ModName> [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--settle S] [--ready-pattern REGEX] [--test-bridge] [--yes] [--json]
python "<skill-dir>\gate.py" behavior <ModName> [--checks FILE] [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--done-timeout S] [--ready-pattern REGEX] [--yes] [--json]
python "<skill-dir>\gate.py" behavior <ModName> [--checks FILE] [--deps CF ...] [--server <instance>] --prepare-only [--json]
python "<skill-dir>\gate.py" behavior <ModName> [--checks FILE] [--server <instance>] --logs [FILE ...] [--json]
python "<skill-dir>\gate.py" visual <ModName> [--shots FILE] [--deps CF ...] [--server <instance>] [--port N] [--timeout S] [--threshold R] [--ready-pattern REGEX] [--yes] [--json]
python "<skill-dir>\gate.py" visual <ModName> [--shots FILE] [--threshold R] --compare [DIR] [--json]
python "<skill-dir>\gate.py" visual <ModName> [--shots FILE] [--threshold R] --accept [DIR] [--shot ID ... [--replace-failed]] [--json]
| Argument | Notes |
|---|---|
<ModName> | A mod under workspace/<ModName>/ in the project cached by /dayz-init. |
--deps | ingame, behavior (also with --prepare-only, for its launch command), visual: dependency mods in load order, with or without @ (--deps CF). Required when config.cpp's requiredAddons lists anything not starting with DZ_; map each to the @mod under P:\Mods\ that ships it. |
--server | ingame, behavior, visual: instance added with /dayz-add-server (default chernarus). --port default 2302. |
--timeout | ingame, behavior, visual: seconds to wait for the client to reach the mission (default 300). |
--settle | ingame only: seconds to keep reading after that, to catch spawn-time errors (default 30). visual has no --settle: it reads until its last shot is taken. |
--test-bridge | ingame only: also load the AZ_TestBridge test mod (packed for the run, removed after) and check that both peers answer a ping once the client is in the mission. A bridge that does not answer is ERROR (exit 2), not the mod's FAIL; when the mod itself fails, its FAIL stands. v1 checks only that both peers answer. See dayz-launch-test/references/test-bridge.md. |
--done-timeout | behavior only: the most seconds to wait for the test mission's DONE line after the client joins (default 600). The gate stops as soon as that line appears. |
--ready-pattern | ingame, behavior and visual in-game runs: regex in the client script log that means the mission is running. Default Creating Mission: mpmissions\__cur_mp., printed by vanilla CreateMission() (P:\scripts\5_mission\somemission.c:3) when the client joins. |
--checks | behavior: the checks file. Default output/<ModName>-plan/behavior-checks.json, which dayz-mod-architect writes with the plan. |
--prepare-only | behavior: write the instance copy and stop. The first line is PREPARED (exit 0), then the /dayz-launch-test command for the copy with the --deps mods ahead of the mod (launch in --json). A mod that needs --deps and got none is refused (exit 2) before the copy is written. |
--logs | behavior: judge the logs of a session that already ran instead of launching one. With no files it reads the copy's server script logs. |
--shots | visual: the shots file. Default output/<ModName>-plan/visual-shots.json. |
--threshold | visual runs, --compare and --accept: the share of pixels, 0 to 1, that may differ for a shot that sets no threshold of its own. It beats the shots file's threshold; the default is 0.01. |
--compare | visual: compare captures already taken instead of launching. With no folder it uses the newest run. |
--accept | visual: copy captures into the baselines. With no folder it uses the newest run; --shot limits it to some shots (--shot without --accept is refused, exit 2). A shot named with --shot that has no capture in the run is refused (exit 2); without --shot, shots with no capture are skipped, their baselines stay as they were, and they are named on a skipped, no capture line (skipped in --json). Each baseline it replaces is first copied to baseline/.prev/<id>.<date_time>.png (listed under backups in --json). It compares each capture with its current baseline first, the same way the gate does, and when any of them FAILs it refuses (exit 2) and copies nothing. The first line is ACCEPTED (exit 0). |
--replace-failed | visual --accept --shot <id> ... only (refused otherwise, exit 2): accept the named shots even when their capture FAILs against the current baseline, after you have looked at the capture and its diff. |
--yes | build, ingame, behavior, visual runs that stop a session: stop a DayZDiag_x64.exe session the gate did not start without asking. Without it the gate asks [y/N] on an interactive terminal and, with no terminal (an agent or a pipe), refuses with ERROR (exit 2) and leaves the session running, since it may be your own play session. The session the gate launches itself is always stopped without asking. |
--json | Print the full report as JSON after the verdict line. |
The first line is the verdict: PASS (exit 0), FAIL (exit 1) or ERROR (exit 2: bad arguments, no cached project, /dayz-stop-test failed, a session the gate did not start is running and was not confirmed, a dependency list is needed, --accept refused a capture that fails against its baseline, or the gate crashed). Then a short summary, or with --json:
{
"verdict": "FAIL", "mode": "ingame", "mod": "MyVest",
"steps": [{"step": "stop-session", "result": "no DayZDiag session running"}, {"step": "dayz-launch-test", "rc": 0}, ...],
"ready": {"file": "script_<date>_<time>.log", "line": 214, "text": "SCRIPT : Creating Mission: mpmissions\\__cur_mp.chernarusplus\\mission.c"},
"failures": [{
"category": "null_pointer", "file": ".server\\!ClientDiagLogs\\script_...log", "line": 230,
"text": "SCRIPT (E): NULL pointer to instance", "context": ["Class: 'MyVest_Helper'", "Stack trace:", "MyVest/scripts/4_World/vest.c:42"],
"points_to": ["MyVest/scripts/4_World/vest.c"], "count": 1,
"triage": {"status": "known", "id": "null-pointer", "fix": "...", "owner_agent": "dayz-script-specialist", "fingerprint": "..."}
}],
"warnings": [...], "noise": [...], "baseline": ["...older vanilla-only RPT..."],
"source_findings": [...]
}
Each failure carries triage: known (with id, meaning, fix and owner_agent) or new (send it to dayz-mod-debugger). Owner user means the user has to act (mount P:, install tools); owner dayz-orchestrator means a skill run fixes it. On a FAIL, source_findings lists known defects found in the mod's source (a modded class with an extends clause, a config.cpp without CfgPatches); they don't change the verdict. Warnings and noise are deduplicated and capped at 30 entries each.
Every PASS or FAIL is stored for /dayz-health under .server/!Health/<ModName>/results/ (a build run stores its lint step too), and the mod's health page is rebuilt. The report then gains "health", the path of the page's Markdown file. If storing fails, the report gains "health_error" instead and the verdict stays the same. An ERROR and --prepare-only store nothing.
build does/dayz-lint <ModName> first, both of its stages: the mod setup checks (config.cpp, CfgPatches, $PBOPREFIX$, script modules, files) and the code rules of the script validator (Enforce Script, .layout, inputs.xml, .rvmat). Any lint error, from either stage, is a FAIL (category lint, file and line from the lint finding) and the gate stops there, leaving a running session alone. A setup finding is triaged by its lint-<rule> entry in known-errors.json. A code finding keeps the triage lint gave it (id lint-<rule id in lower case>, with the owner and fix from lint's own table, unless a catalog or learned entry matches it), so it is never reported as new. Lint warnings join the report's warnings, and the report gains "lint": {"verdict", "errors", "warnings"}. The gate passes no --external-scripts, so for a mod that depends on another mod the rule ES-UNDEFINED-CLASS-REF is not checked here; run /dayz-lint <ModName> --external-scripts <folder> for its verdict.DayZDiag_x64.exe with /dayz-stop-test (a session holds the PBO open), only after --yes or a yes at the prompt (see --yes)./dayz-build-pbo <ModName>. FAIL on a non-zero exit (every [FAIL] line is quoted with its hint), or on any AddonBuilder line after the command echo that reports an error, or a warning about missing files, textures or unknown classes.skills/_shared/conventions/config.md): with no config.cpp and a payload in workspace/<ModName>/Addons/*.pbo, the build is skipped and /dayz-deploy-pbo <ModName> runs instead; it must exit 0, and every [FAIL] and every [WARN] about a missing .bisign fails the gate. A bundle with a linker config.cpp gets both, build first.ingame does.server/<instance>/Profiles/ and .server/!ClientDiagLogs/, then runs /dayz-launch-test <deps...> <ModName> --server <instance>. A launch refusal is a FAIL with its [FAIL] lines.--settle seconds, or --timeout (FAIL: no ready signal). It stops early on a Can't compile ... script module line, a new crash*.log, or a server or client process exiting (FAIL: crash).
With --test-bridge, step 1 also packs @AZ_TestBridge and passes --test-bridge <token>, and step 2 pings both peers once both wrote their hello; the report gets a test-bridge step./dayz-stop-test, then judges only the lines written after step 1, with the dayz-ingame-tester rules:
0x00020005, 0x00020017, 0x00020013, 0x00010002), persistence storage the server cannot read (Serious stream damage, Failed to read modstorage, Scripted variables corrupted) and a server that shuts itself down ([Server] :: termination in:, BattlEye initialization failed); NULL pointer and Can't find errors only when they name the mod. The category of each line is listed in triage.md.$PBOPREFIX$ root, or a class the mod declares (top-level classes in config.cpp's Cfg* blocks and non-modded script classes).CLI params: line has no @<ModName> (plus the script logs created within 30 s after that RPT). Noise is listed, not failed. With no such run the line is a warning.behavior doesReads the checks file and refuses a bad one (exit 2) before touching anything. Stops any running session.
Copies .server/<instance>/ to .server/<instance>-behavior/: serverDZ.cfg, mission/ without its storage_* persistence folders, the <template>/ junction that /dayz-launch-test needs, and the settings in Profiles/ (every file and folder except logs and crash dumps: *.log, *.RPT, *.mdmp, *.bidmp, crash*), so a mod or CF/COT that reads its config from the server profile behaves as it does on the instance. A previous copy is replaced: its own logs stay and its settings are overwritten by the instance's. Your own instance is never changed.
Adds a test mission to the copy's init.c: the class AZ_BehaviorTest above main() and an AZ_BehaviorTest.Start(); call as the last line of main().
Runs the ingame flow on the copy, so every ingame rule still applies. The test mission waits for the first player (up to 240 s), waits 10 s more, empties the player's hands and clothing slots, then runs one check per second and prints to the server script log:
[AZ-BEHAVIOR] START <count>
[AZ-BEHAVIOR] PASS <check id>
[AZ-BEHAVIOR] FAIL <check id> <reason>
[AZ-BEHAVIOR] DONE
Reads those lines. A check passes only on its PASS line. A FAIL line, or no line at all (the mission never started, or a script error stopped it first), fails the check. A new START line starts over, so the newest run in the logs wins. When there is no START line at all and the session shows nothing else wrong (the client joined, no crash, no script error), the verdict is ERROR, not FAIL: the gate's own test mission did not run, so it says nothing about the mod.
The report adds checks (one entry per check with status, reason, file and line) and behavior (started, done, and unexpected ids that are not in the checks file). Each failed check is a failure with category behavior and its check id; triage marks it new, so it goes to dayz-mod-debugger with the reason line.
dayz-mod-architect writes one check per feature, each with an id, a feature, an item and one of the actions spawn, hands, wear, attach or cargo. The format and what each action does are in checks-file.md; read it before writing or fixing a checks file.
behavior <ModName> --deps <Dep1> [<Dep2> ...] --prepare-only writes the copy and prints the launch command: /dayz-launch-test <Dep1> [<Dep2> ...] <ModName> --server <instance>-behavior, with the dependency mods in load order before the mod (the launch script takes them as names ahead of the mod, not as a --deps flag). Run it, stop the session with /dayz-stop-test, then judge it with behavior <ModName> --logs.
visual doesAZ_VisualHelper (the files in <skill-dir>\visual_helper\), into P:\Mods\@AZ_VisualHelper\ and loads it after your mod for this session only; it is removed when the session ends, even after a failure. The helper sets a fixed scene from inside the game. On the server it sets noon on June 21 and clear weather (no overcast, fog, volumetric fog, rain, snow or wind), and tells the engine not to change it. On the client it closes the pause menu vanilla opens when the window is not active at mission start, hides the HUD and quickbar, and switches to a still camera at the centre of the map facing north. It prints [AZ-VISUAL] SCENE (server) and [AZ-VISUAL] CAMERA (client); a run without either line fails with [visual:no-scene].ingame flow on your instance with the helper loaded, so every ingame rule still applies. The shot clock starts 15 seconds after the client joins, when the scene is set. At each shot's at second on that clock it captures the client window in the background with Windows' PrintWindow (full-content mode), which reads the window's own picture wherever it sits. It never moves your mouse or brings the window to the front, so you can keep working. It saves each capture to output/<ModName>-visual/runs/<date_time>/<id>.png. The session stops two seconds after the last shot.output/<ModName>-visual/baseline/<id>.png. Both images are shrunk to 640 pixels wide, which averages away single pixel noise. A pixel counts as changed when its colour distance, weighted toward brightness the way the eye sees it (the pixelmatch measure), is above a tenth of the largest possible. A shot fails when the share of changed pixels is above its threshold. Areas in its ignore list are left out.<id>.diff.png next to each capture: the baseline in pale grey, changed pixels in red and ignored areas in blue.Each shot ends as one of these:
| Status | Means | Failure text |
|---|---|---|
PASS | the share of changed pixels is at or under the threshold | |
FAIL | too many pixels changed, or the capture is a different size from the baseline | [visual:diff] <id>: ... |
NEW | the shot has no baseline yet | [visual:no-baseline] <id>: ... |
MISSING | no capture: the window was hidden or minimized, or the session ended first | [visual:no-capture] <id>: ... |
Every status but PASS fails the gate. The report adds shots (one entry per shot with status, ratio, threshold, capture, baseline, diff and reason) and visual (the run and baseline folders). Triage marks each failure known with owner user, because only a person can say whether a new look is right: look at the capture and the diff, then accept it with --accept --shot <id> (add --replace-failed for a FAIL) or send it to the specialist who owns that part of the screen.
The first run of a shot is always NEW. Look at its capture, accept it, and later runs compare against it. All of output/ is ignored by git, the baselines as well as the runs: to version the baselines, force-add the baseline folder (git add -f) or keep a copy somewhere else. To undo an accept, copy the shot's newest baseline/.prev/<id>.<date_time>.png back to baseline/<id>.png.
Each shot has an id, a feature and an at second, with an optional threshold and ignore areas. The format is in shots-file.md; read it before writing or fixing a shots file.
triage.py matches each failure line against known-errors.json and the project's learned file. Run it on its own for any log, or on a log the user pasted (--stdin or --text); after a reviewer has diagnosed a new result, record it so the next run sees it as known:
python "<skill-dir>\triage.py" <log-file> [...] [--mod <ModName>] [--mod-dir workspace\<ModName>] [--json]
python "<skill-dir>\triage.py" --stdin --json < pasted.txt
python "<skill-dir>\triage.py" --learn <id> --fingerprint "<fingerprint or raw log line>" [--meaning "..." --fix "..." --owner <agent>]
How lines are fingerprinted, which lines count as errors and which vanilla lines never do, what to do with each result of a pasted log, and the rules for --learn are in triage.md; read it before triaging a pasted log or recording a diagnosis.
The gate judges log lines; it cannot tell that the run itself was not a valid test. The measured cases are in the references of the /dayz-launch-test skill:
| The gate shows | Read |
|---|---|
| The server or client does not start or connect, a client that dies before it logs, a kick code | skills/dayz-launch-test/references/troubleshooting.md; skills/dayz-launch-test/references/client-startup-failures.md |
A storage failure, a PASS that did not test the change (stale or locked PBO, an old signature, storage written by another mod set) | skills/dayz-launch-test/references/build-and-storage-traps.md |
A scripted check that cannot fail, or a verdict from a run whose -mod= line is not what you meant | skills/dayz-launch-test/references/test-cell-evidence.md |
CreateMission or the mission flow needs --ready-pattern.error, failed, undefined base class, and warning lines that mention missing, not found or unknown class), since AddonBuilder, CfgConvert and Binarize word their messages differently. A non-zero exit with no matching line still fails, with the last 25 output lines as the failure's context.requiredAddons to @mods is not automatic; pass --deps.AZ_BehaviorTest class uses is checked against its vanilla declaration in P:\scripts, and test_behavior.py pins that list with the path and line of each, so an unchecked call fails the tests before it can reach a game. The injector and parser are tested on fixture missions and logs. If the mission still fails to start live, the gate reports ERROR rather than FAIL only when the session shows no other failure (step 5 above). An Enforce compile error in the injected init.c is itself such a failure when a vanilla baseline session exists and does not show it, so the verdict is then FAIL with that compile line; read the line before blaming the mod. After the first live run, look for [AZ-BEHAVIOR] START in .server/<instance>-behavior/Profiles/script*.log.MakeScreenshot (P:\scripts\1_core\proto\proto.c:142) made the ScreenShots folder in live runs but never wrote a file, so the capture is taken from outside the game with PrintWindow. That works while the client window is covered by other windows, but not while it is minimized (a minimized window draws nothing): such a shot, or an all-black capture, is MISSING. Two live sessions gave captures that differed by 0.33% of pixels, under the default 1% threshold.ignore areas.py -m pip install -r "<skill-dir>\requirements.txt".--yes for the user: a running DayZDiag_x64.exe the gate did not start may be their play session. On that ERROR, ask them to close it or to agree to the gate stopping it.known-errors.json from --learn; learned fingerprints are per project.storage_1 to clear a storage failure without asking the user: it resets their world and characters.--accept a capture nobody has looked at, and don't pass --replace-failed for the user; the baseline is the expected look.behavior.py (opens in a new tab)checks-file.md (opens in a new tab)fixtures/behavior/checks.json (opens in a new tab)fixtures/behavior/instance/mission/db/globals.xml (opens in a new tab)fixtures/behavior/instance/mission/init.c (opens in a new tab)fixtures/behavior/instance/mission/storage_1/README.txt (opens in a new tab)fixtures/behavior/instance/serverDZ.cfg (opens in a new tab)fixtures/behavior/logs/script_fail.log (opens in a new tab)fixtures/behavior/logs/script_pass.log (opens in a new tab)fixtures/behavior/logs/script_two_runs.log (opens in a new tab)fixtures/visual/baseline/hud.png (opens in a new tab)fixtures/visual/baseline/menu.png (opens in a new tab)fixtures/visual/hud_small.png (opens in a new tab)fixtures/visual/run_fail/hud.png (opens in a new tab)fixtures/visual/run_fail/menu.png (opens in a new tab)fixtures/visual/run_pass/hud.png (opens in a new tab)fixtures/visual/run_pass/menu.png (opens in a new tab)fixtures/visual/visual-shots.json (opens in a new tab)gate.py (opens in a new tab)known-errors.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dayz-n-chill/agentic-z --plugin agentic-z42 skills in this plugin
/dayz-add-scaffoldAdds missing DayZ mod scaffold pieces (config.cpp, $PBOPREFIX$, Workbench gproj, README, folders) to a folder already in workspace/ without overwriting files, and can create its P:\ link. Use when a workspace mod lacks scaffold pieces or its P: link, such as a hand-cloned or older mod./dayz-add-serverSets up an isolated DayZ test server instance under .server/<instance>/ with its own mission copy, serverDZ.cfg and profiles. Use when you need a new test instance before /dayz-launch-test (for example chernarus or chernarus-hardcore), or to refresh the mission after a DayZ update./dayz-animation-pipelineRuns the DayZ animation tools: writes a model.cfg from one JSON description, writes and inspects SEAnim and RTM files, solves a vehicle rider pose from model anchors, builds the weapon animation and grip viewers, samples a Blender scene against a motion contract and validates it, and retargets Mixamo clips inside Blender (experimental). Use when one of these scripts has to run. The knowledge behind them (model.cfg animations, graphs, clips, items and weapons in hands, rider poses, Blender, realistic motion, building doors) is the animation pack, skills/_shared/animation/README.md./dayz-askAnswers a plain English question about vanilla DayZ with checked path:line citations. Use when the user asks how vanilla does something, where it lives, or what a vanilla class or config value does./dayz-balanceCompares a DayZ mod's item stats with similar vanilla items and flags outliers with file:line and the vanilla median. Use it after writing item configs, or when the user asks whether an item is overpowered, too heavy or balanced./dayz-build-imagesetPacks PNG sprites from a mod's .gui-sources/<setname>/ folders into a DayZ .imageset definition and .paa atlas under gui/imagesets/. Use when a mod's HUD or menu icons need to become an imageset that .layout files can reference.Other plugins' skills for the same job