/agentic-z:dayz-import-mod --source <path|github-link> [--name <ModName>] [--author <handle>] [--scaffold | --no-scaffold]from agentic-z
Links an external DayZ mod folder into the workspace or clones a GitHub repo, creating P:\<ModName>\ junctions so build/launch/clean skills work on it. Scans for missing scaffold files and offers to add them.
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\.
Bring an existing DayZ mod into Agentic-Z without copying it. The skill creates a directory link at workspace/<ModName>/ pointing at your external folder (and the matching P:\<ModName>\ junction) so all the DayZ skills - /dayz-build-pbo, /dayz-launch-workbench, /dayz-clean-workspace, etc. - operate on it like a native scaffold. Then it scans for missing scaffold pieces and asks per-piece whether to fill them in.
Use this when:
C:\Users\you\repos\MyMod, D:\dayz-stuff\MyMod, etc.) and don't want to move or duplicate it inside the Agentic-Z workspace.Paste a GitHub link instead of a path and the repo is cloned straight into workspace/<ModName>/ (see "GitHub links" below). A Steam Workshop link is refused.
Alternative: clone your mod directly into workspace/<ModName>/. It then still needs the P:\<ModName>\ link that build and launch skills check for: run /dayz-add-scaffold <ModName> --piece junction, then /dayz-add-scaffold <ModName> for any missing scaffold files.
Follow skills/_shared/dayz-conventions.md.
python "<skill-dir>\import_mod.py" [--source <path>] [--name <ModName>] [--scaffold | --no-scaffold] [--author <handle>]
| Argument | Required? | Notes |
|---|---|---|
--source <path> | yes (or interactive) | Path to the existing mod folder (absolute or relative, ~ expanded), or a GitHub link to clone. If omitted on an interactive console, the skill prompts Path or GitHub link:; the answer goes through the same Workshop and GitHub-link checks as --source. |
--name <ModName> | no | Override the name the mod is imported under. Defaults to the source folder's basename, validated against [A-Za-z][A-Za-z0-9_]{0,63}. Required if the basename has spaces or other invalid characters. |
--scaffold | no | Auto-yes for every "scaffold this missing piece?" prompt. Required for non-TTY use when missing pieces would otherwise prompt. |
--no-scaffold | no | Auto-no - link only, never write into the source folder. |
--author <handle> | no | Author handle for a scaffolded config.cpp, cached for future runs. Same resolution chain as /dayz-new-mod (flag, cache, prompt) and used only when config.cpp is written. Pass it on a non-TTY run with --scaffold when no handle is cached yet. |
--source or the prompt, refuses a Steam Workshop link, then gates on /dayz-preflight.<repo>/workspace/, not be a UNC path).--name or source basename), validates the name pattern.workspace/<Name>/ already exists, or if P:\<Name>\ exists pointing somewhere else (auto-cleans a stale link pointing at our about-to-be-created workspace/<Name>/).
Also refuses, before linking anything, when scaffold pieces are missing, stdin is not an interactive console, and neither --scaffold nor --no-scaffold was passed.workspace/<Name> → source path (symlink, junction fallback).P:\<Name>\ → workspace/<Name> (matching /dayz-new-mod's pattern, so /dayz-clean-workspace can detect it via the existing junction-target check). If this fails, the workspace link is rolled back.
Then, like /dayz-new-mod, points the /dayz-init project cache at this project and records <Name> as the active /dayz-init mod (last_intent.mod_name in dayz-init-state.json).config.cpp, $PBOPREFIX$, workbench/dayz.gproj).--scaffold → write it--no-scaffold → skipAdd to your source folder? [y/N]:/dayz-add-scaffold's writer, called in-process (one writer for both skills, and preflight runs only once). If a write fails or the writer skips the piece (for example config.cpp needs an author handle, none is cached and --author was not passed on a non-TTY run, or workbench/ is skipped because DayZ Tools is not detected), the links stay in place, the skill names each failed piece with its retry command (/dayz-add-scaffold <ModName> --piece <piece>) and exits 1.--source (and the prompt) also takes a GitHub link (github.com/<owner>/<repo>, optionally /tree/<branch> or /tree/<branch>/<folder>) or any other git remote. git must be on PATH.
workspace/<ModName>/ and gets the same junction and scaffold check. The name comes from the repo (or --name)..imports\<owner>__<repo>__<branch>\ and links the subfolder as the mod./dayz-clean-workspace refuses a folder that holds .git; the import prints the rmdir commands to remove a clone by hand.Accepted link forms, naming, clone reuse and cleanup steps: references/github-and-cleanup.md.
A Steam Workshop link (steamcommunity.com/sharedfiles/filedetails/?id=... or steam://url/CommunityFilePage/...) is refused before preflight runs. A Workshop item holds the packed mod: PBOs with binarized models and configs, often signed or protected by its author, so there is no source in it to work on. The message says to import your own source folder or repo instead, or to ask the author for the source and their permission. To learn from the packed mod without importing it, see "Studying a packed mod" below.
For a mod you have only as PBOs (a Workshop download, a third-party release), classify each PBO from its header first. It never extracts or decompresses anything, so it is safe on a read-only Workshop folder, and like the rest of the study it does not need P:\:
python "<skill-dir>\pbo_inventory.py" <file.pbo | folder> [more ...] [--json] [--no-trailer]
| Argument | Required? | Notes |
|---|---|---|
<file.pbo | folder> | yes, one or more | A folder is searched for .pbo files at any depth. |
--json | no | One JSON list with every field per PBO, for the study's ledger. |
--no-trailer | no | Skips the checksum trailer, which hashes the whole file; use it on very large PBOs. |
It reads each header with dayz-build-pbo\pbo_entries.py and prints, per PBO:
[OK] ...\addons\TheirMod.pbo
prefix: TheirMod entries: 4 payload: 12,345 bytes
kind: deployable mod (config plus scripts, models or layouts)
types: .bin 1, .c 1, .p3d 1, .paa 1
1 PBO(s): 1 mod
| Kind | Rule | Meaning |
|---|---|---|
| deployable mod | A non-empty config.bin or config.cpp, plus at least one .c, .p3d or .layout | Worth the full sweep. |
| config-only | A non-empty config and none of those | Mounts but ships no code or model. A scripts mod packed without its .c files looks like this (the post-build gates reference of /dayz-build-pbo). |
| source asset distribution | No usable config, and archives or source art (.rar, .zip, .7z, .fbx, .blend, .max, .obj, .psd, .spp, .tga) | Nothing the game loads. Catalog it; do not sweep it as a mod. |
| data only | No config and no source art | Loaded only if another PBO refers to its files. |
Warnings: an empty config entry, compressed entries (prove the extractor decoded them), GUID-like or unsafe entry names (path traversal, a drive letter, a Windows device name, a control character: signs of obfuscation or of a PBO that should not be extracted over existing files), and a missing checksum trailer. Exit code 1 when a file is not a readable PBO or none was found, otherwise 0. Outside an agent session, scripts\dayz\pbo-inventory.bat runs it with the same arguments.
Then extract with Mikero's ExtractPbo into a scratch folder and sweep the files with a path:line ledger until no new pattern turns up. Findings are facts about that mod, never copied files.
| Question | File |
|---|---|
| Which git links are accepted, how clones are named and reused, and how an import is removed? | references/github-and-cleanup.md |
| How do I extract a packed mod and sweep it, step by step, and when has the study converged? | references/study-a-packed-mod.md |
What goes in the study's queue.md, seen.json, findings.jsonl and skill_changes.md, how is novelty classified, where does a finding go, and what does the final report hold? | references/extraction-ledger.md |
What goes wrong (trusting names, a class the recovery dropped, an extraction that left the payload compressed), how do I read a .p3d without py3d, and what changes on Linux? | references/extraction-pitfalls.md |
... (preflight output)
Path or GitHub link: C:\Users\me\repos\MyMod
[OK] Source validated: C:\Users\me\repos\MyMod
[INFO] Derived mod name: MyMod
[OK] workspace\MyMod -> C:\Users\me\repos\MyMod (junction)
[OK] P:\MyMod -> workspace\MyMod (junction)
Scaffolding check:
[OK] config.cpp present
[WARN] $PBOPREFIX$ missing (needed for /dayz-build-pbo)
[WARN] workbench/dayz.gproj missing (needed for /dayz-launch-workbench --mod)
Add $PBOPREFIX$ to your source folder? [y/N]: y
[OK] $PBOPREFIX$ written
Add workbench/dayz.gproj to your source folder? [y/N]: y
[OK] workbench/dayz.gproj written (mod paths + filesystem mounts injected)
[OK] workbench/DayZSetting.xml copied
Next steps:
- Open in Workbench: /dayz-launch-workbench --mod MyMod
- Build: /dayz-build-pbo MyMod
- Remove the import (keeps your source intact): /dayz-clean-workspace --mod MyMod
An existing $PBOPREFIX$ must hold exactly the mod name, because /dayz-build-pbo packs under that prefix and refuses anything else. Many published mods use a prefix such as Author\MyMod. The import still finishes, but the check prints a warning and the build step names the fix:
Scaffolding check:
[OK] config.cpp present
[OK] $PBOPREFIX$ present
[WARN] $PBOPREFIX$ is 'Author\MyMod', not 'MyMod', so /dayz-build-pbo will refuse it.
Set the file to the single line MyMod and make config.cpp paths start with MyMod\.
...
Next steps:
- Build: set $PBOPREFIX$ to MyMod, then /dayz-build-pbo MyMod
/dayz-preflight returns non-zero (typically P:\ not mounted).--source (or the prompted answer) is a Steam Workshop link.--source missing and stdin isn't an interactive console (checked before preflight, so nothing is prompted or touched).\\server\share\... - junctions can't target them on Windows).<repo>/workspace/ (avoids self-referential / circular links). The error points at /dayz-add-scaffold <Name> --piece junction, which links a mod that is already in workspace/.[A-Za-z][A-Za-z0-9_]{0,63}).workspace/<Name>/ already exists (won't clobber).git is not on PATH, or git clone fails (its last lines are shown). A failed or interrupted (Ctrl+C) clone is deleted, so the retry is not refused with "already exists"./tree/ (such as tree/feature/x) and git ls-remote cannot list the remote's branches (offline, bad credentials), so the branch and the folder cannot be told apart. Nothing is cloned; the message says to fix the connection, link the repo without /tree/..., or clone it yourself and import the folder by path.P:\<Name>\ exists as a real folder, or as a link pointing somewhere other than the new workspace/<Name>/.--scaffold nor --no-scaffold passed, and stdin is not an interactive console. A null stdin such as < NUL or an agent's tool shell counts as non-interactive even though Windows reports it as a TTY. This check runs before any link is created, so nothing is left half-done.Same behavior as /dayz-new-mod: if P:\<Name>\ exists as a junction pointing at the about-to-be-created workspace/<Name>/, the stale link is removed and the skill proceeds. Handles the case where a prior import was cleaned up but the junction wasn't.
/dayz-clean-workspace --mod <Name> recognizes an imported mod: it removes the workspace/<Name>/ link and the P:\<Name>\ junction and never touches your source folder. Details, including cloned imports: references/github-and-cleanup.md.
--scaffold). The user's external repo has its own conventions; we don't surprise them.workspace/. Self-referential or circular links break tooling and serve no purpose.P:\Mods\, and don't sweep obfuscated output; use a scratch folder (references/study-a-packed-mod.md).import_mod.py (opens in a new tab)pbo_inventory.py (opens in a new tab)references/extraction-ledger.md (opens in a new tab)references/extraction-pitfalls.md (opens in a new tab)references/github-and-cleanup.md (opens in a new tab)references/study-a-packed-mod.md (opens in a new tab)test_import_mod.py (opens in a new tab)test_pbo_inventory.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dayz-mod, mod-import, workspace-setup, junction-link, mod-development
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.Other plugins' skills for the same job