/agentic-z:dayz-model-tools <tool> <model.p3d | recipe.json | file.blend> [options]from agentic-z
Runs DayZ model tools on MLOD .p3d and .blend files: p3d inspector, proxy editor, clothing alignment viewer, FBX export, winding/normal checks, UV atlas pipeline, .p3d-to-.glb viewer, and car classification viewer.
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; scripts run unread.
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\.
The scripts of the model work. Each tool has one how-to file in the model pack (skills/_shared/models/) with its options, its output, its limits and what its results mean; read that file before the first run. This page only says which script does what and how to start it.
Follow skills/_shared/dayz-conventions.md. The scripts read and write only the files named on their command line and need neither DayZ Tools nor the game, so they do not gate on /dayz-preflight (the stated exception in dayz-conventions.md). The one exception is worn_overlay.py: it reads vanilla clothing and runs the preflight gate when its --dz folder is on P:\.
Write outputs under output/<descriptive-folder>/ unless the model belongs to a mod in workspace/<ModName>/. Never write over the only copy of a model: build to a new file name, then run /dayz-p3d-audit on the result.
scripts/tools/py3d/, 1.6.0 or later. The scripts use that folder directly or an installed copy of it. Never pip install py3d: the PyPI package of that name is an unrelated library. install_py3d.py installs the fork from a built wheel when one is at hand; Agentic-Z ships none.viewer_core.py in scripts/tools/dayz-3d-viewer/ and load Three.js from a CDN, so the browser needs a network the first time.export_clothing_fbx.py run inside Blender (blender -b ... -P <script> -- <args>), not under plain Python.All in <skill-dir>\scripts\.
How-to: tools-p3d-inspector.md, with tools-p3d-inspector-recipe.md (the Recipe fields), tools-p3d-inspector-viewer.md (the page) and tools-p3d-inspector-round-trip.md (what a rebuild can lose).
python "<skill-dir>\scripts\p3d_inspector_extract.py" model.p3d -v -o recipe.json
python "<skill-dir>\scripts\p3d_inspector_viewer.py" recipe.json inspector.html
python "<skill-dir>\scripts\p3d_inspector_build.py" recipe_edited.json model_rebuilt.p3d -v
| Script | Does |
|---|---|
p3d_inspector_extract.py | MLOD .p3d to Recipe JSON: every LOD, memory point, axis, selection and property |
p3d_inspector_viewer.py | Recipe to a standalone page where points and axis ends can be dragged |
p3d_inspector_build.py | Edited Recipe to a new MLOD .p3d; --no-autofix on a model that rendered correctly |
Outside an agent session: scripts\dayz\p3d-inspector-extract.bat, p3d-inspector-viewer.bat, p3d-inspector-build.bat.
How-to: tools-proxy-align.md. The frame rule behind it is proxy-frames.md.
python "<skill-dir>\scripts\proxy_extract.py" host.p3d recipe.json
python "<skill-dir>\scripts\proxy_canon.py" recipe.json edits.json
python "<skill-dir>\scripts\proxy_apply.py" host.p3d edits.json host_aligned.p3d --verify
| Script | Does |
|---|---|
proxy_frame.py | The frame rule (angle sort, anchor, orientation) and the canonical triangle; used by the others |
proxy_extract.py | Host .p3d to recipe.json, with an ambiguous flag per proxy |
worn_overlay.py | Adds the worn model of one item per slot to the recipe (needs an external ODOL reader) |
proxy_canon.py | Rewrites every proxy as an unambiguous triangle; --rot Slot=AXIS:DEG per slot |
proxy_viewer.py | Recipe to an editor page with a move and rotate gizmo; exports edits.json |
proxy_apply.py | Writes the listed proxy points back into the MLOD and changes nothing else |
install_py3d.py | Installs the py3d fork from a built wheel; --dry-run prints the wheel and pip commands without running pip |
Outside an agent session: scripts\dayz\proxy-extract.bat, proxy-canon.bat, proxy-worn-overlay.bat, proxy-viewer.bat, proxy-apply.bat.
How-to: skills/_shared/wearables/references/fitting-worn-models.md (alignment viewer and artist handoff) and skills/_shared/wearables/references/autofit-on-official-rig.md. The templates for the handoff are in <skill-dir>\templates\ (model.cfg.template, README-ARTIST.template.md).
python "<skill-dir>\scripts\alignment_viewer_extract.py" garment_m.p3d --out work
python "<skill-dir>\scripts\alignment_viewer_build.py" --data work\align_data.json
python "<skill-dir>\scripts\apply_alignment_json.py" --adjust adjust.json garment_m.p3d garment_f.p3d
blender -b --python "<skill-dir>\scripts\export_clothing_fbx.py" -- --out package --texture garment_co.png garment_m.p3d garment_f.p3d
| Script | Does |
|---|---|
alignment_viewer_extract.py | Worn model to region data for the alignment page |
alignment_viewer_build.py | Writes alignment_viewer.html with sliders per region |
apply_alignment_json.py | Applies the exported adjustments to every LOD; backs each file up first |
export_clothing_fbx.py | Runs in Blender: FBX package with UVs, diffuse PNG and the bone weights |
Outside an agent session: scripts\dayz\clothing-viewer-extract.bat, clothing-viewer-build.bat, clothing-viewer-apply.bat.
How-to: tools-winding-gate.md. Run it on the source MLOD after building the .p3d and before every pack. Exit 0 is PASS, 1 a model defect with the fix printed, 2 invalid input or a binarized file.
python "<skill-dir>\scripts\check_dayz_winding.py" model.p3d
| Script | Does |
|---|---|
check_dayz_winding.py | Signed volume per closed shell and stored normals per corner, for every visual LOD |
make_fixtures.py | In winding_fixtures\: rewrites the four fixture models the gate's tests use |
Outside an agent session: scripts\dayz\check-winding.bat.
How-to: tools-uv-atlas.md (which method, the pipeline, the quality gate) and tools-uv-atlas-traps.md (the traps). The other UV files in the pack: tools-uv-mesh-health.md, tools-uv-multi-lod-atlas.md, tools-uv-organic-photograph.md, tools-uv-mlod-audit.md, tools-uv-partuv.md, tools-uv-tool-survey.md.
blender -b in.blend -P "<skill-dir>\scripts\uv_clean_atlas.py" -- out.blend out_dir tag min_faces object_name
blender -b file.blend -P "<skill-dir>\scripts\sat_gate.py" -- object_name
| Script | Does |
|---|---|
uv_clean_atlas.py | The paint atlas pipeline, stages 1 to 7 |
uv_view_charts.py, uv_straighten.py, uv_shelf_pack.py, uv_metrics.py | The stages the pipeline imports; uv_metrics.py is also the audit module |
sat_gate.py | The exact overlap gate for one object's active UV layer |
project_atlas.py | The orthographic projector of the photograph method |
export_objs_tri.py | A sanitized, triangulated OBJ for PartUV |
audit_partuv.py | Scores a PartUV result and re-packs it |
partuv_install.sh | Installs PartUV on Linux or WSL2 (bash) |
How-to: tools-3d-viewer.md, with tools-3d-viewer-formats.md (PAA and RVMAT), tools-threejs-viewers.md (the page library and testing it), tools-3d-viewer-states.md (where moving parts and LED states are defined) and tools-3d-viewer-states-build.md (the plan for playing them, not built). The tool is scripts/tools/dayz-3d-viewer, run as python -m dayz_3d_viewer; this skill ships no script for it.
How-to: skills/_shared/vehicles/rip-classify-viewer.md (the Three.js r128 files to download, the steps per car, the GLB data contract). It reviews which parts of a ripped car are kept, dropped or movable without opening Blender; the workflow it serves is skills/_shared/vehicles/ripped-car-proxy-split.md. The page is advisory: authority stays with the .blend.
blender --background --python-exit-code 1 --python "<skill-dir>\scripts\export_car_glb.py" -- --blend <car.blend> --out <dir>\car.glb
py -m http.server <port> --directory <dir>
Copy <skill-dir>\scripts\classify-viewer\index.html and a lib\ folder holding three.min.js, GLTFLoader.js and OrbitControls.js next to car.glb first; the page cannot load the GLB from file://. The human's changes are in window.DZ_DELTAS.
| Script | Does |
|---|---|
export_car_glb.py | Runs in Blender: the car's classification .blend to car.glb with the dz_* node extras and no materials; never saves the .blend; prints GLB_DONE |
classify-viewer\index.html | The page: click a part, set INCLUDE, MOVABLE or EXCLUDE with a reason, copy the changes as JSON |
How-to: blender-assembly.md (the rules, the detail pass, the integrity gate) and model-build-stages.md (a production build in checked stages). The library needs a Blender MCP server connected to the session; this repo configures none. At session start, read the file and execute it whole through the MCP's code tool instead of pasting single functions.
| Script | Does |
|---|---|
blender_helpers.py | Runs inside Blender: make_beam, make_cable, loft_profile, panel_recess, place_copies, boolean_cut, add_bevel, smart_uv, bake_map, and the gates verify_bounds, verify_overlap, verify_mesh_integrity, finalize, audit_all |
How-to: blender-visual-review.md (the capture helper, the stop policy, the delta check), blender-review-checklist.md (what to look for) and blender-winding-flips.md (catching a winding flip), with tools-vlm-judge.md (a local vision model as a pre-filter, and its calibration) and tools-vlm-checklist-format.md (the checklist JSON and --view routing). Plain Python, no packages, no Blender; vr_score.py and vr_calibrate.py need an Ollama server.
python "<skill-dir>\scripts\correction_loop.py" --history _review\history.json --json
python "<skill-dir>\scripts\vr_delta.py" _review\model__front__iter1.png _review\model__front__iter2.png --json
python "<skill-dir>\scripts\vr_score.py" ask _review\model__iso__iter3.png --checklist "<skill-dir>\scripts\checks_hardsurface.json" --model <vision-model> --json
python "<skill-dir>\scripts\vr_calibrate.py" report --shadow cal.jsonl --verdicts verdicts.json --checklist "<skill-dir>\scripts\checks_hardsurface.json"
| Script | Does |
|---|---|
correction_loop.py | The stop policy of the fix loop: reads history.json, prints keep going or stop with continue, refine-spec or request-input; exit 0 keep iterating, 1 stop, 2 unreadable history |
vr_delta.py | Compares a before and after render of the same camera: silhouette IoU, bounding box, SSIM, edges, tone; a change filter, never a verdict |
vr_score.py | Asks a local vision model the checklist questions about a render (ask) or scores it against a reference (score); logs every answer to a shadow JSONL |
vr_calibrate.py | Runs the checklist over a folder of renders (run) and reports agreement per question against your own verdicts (report) |
checks_hardsurface.json | The starter checklist for hard-surface models: 8 questions, 5 active |
Outside an agent session: scripts\dayz\render-delta.bat runs vr_delta.py.
The test_*.py files in <skill-dir>\scripts\ run under plain pytest and need no Blender: python -m pytest -q skills/dayz-model-tools.
scripts/alignment_viewer_build.py (opens in a new tab)scripts/alignment_viewer_extract.py (opens in a new tab)scripts/apply_alignment_json.py (opens in a new tab)scripts/audit_partuv.py (opens in a new tab)scripts/blender_helpers.py (opens in a new tab)scripts/check_dayz_winding.py (opens in a new tab)scripts/checks_hardsurface.json (opens in a new tab)scripts/classify-viewer/index.html (opens in a new tab)scripts/correction_loop.py (opens in a new tab)scripts/export_car_glb.py (opens in a new tab)scripts/export_clothing_fbx.py (opens in a new tab)scripts/export_objs_tri.py (opens in a new tab)scripts/install_py3d.py (opens in a new tab)scripts/p3d_inspector_build.py (opens in a new tab)scripts/p3d_inspector_extract.py (opens in a new tab)scripts/p3d_inspector_viewer.py (opens in a new tab)scripts/partuv_install.sh (opens in a new tab)scripts/project_atlas.py (opens in a new tab)scripts/proxy_apply.py (opens in a new tab)scripts/proxy_canon.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
42 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.npx claudepluginhub dayz-n-chill/agentic-z --plugin agentic-zOther plugins' skills for the same job