/agentic-z:dayz-build-imageset <ModName> | <mod-root> [--mod-name <name>] [--dry-run] [--prune]from agentic-z
Packs PNG sprites from a mod's .gui-sources/ 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.
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\.
Pack a folder of PNG sprites into a DayZ imageset (atlas + .imageset definition file). Source images stay in .gui-sources/, which /dayz-build-pbo leaves out of the PBO (its exclude.lst drops .gui-sources\); only the packed .paa atlas and .imageset file land under gui/imagesets/ where the engine expects them.
Layout convention:
<mod-root>/
.gui-sources/
my_icons/
hud_health.png
hud_stamina.png
hud_thirst.png
main_menu/
...
gui/
imagesets/
my_icons.imageset <- generated
my_icons.paa <- generated
main_menu.imageset
main_menu.paa
Follow skills/_shared/dayz-conventions.md.
Pillow composes the atlas. If it is missing the script exits 1 with an install hint:
py -m pip install -r "<skill-dir>\requirements.txt"
python "<skill-dir>\build_imageset.py" <ModName> [--mod-name <name>] [--dry-run] [--prune]
python "<skill-dir>\build_imageset.py" <mod-root> [--mod-name <name>] [--dry-run] [--prune]
| Argument | Required? | Notes |
|---|---|---|
<ModName> | one of the two | Resolves to workspace/<ModName>/ in the project cached by /dayz-init, like the other /dayz-* skills, so it works from the repo root. |
<mod-root> | one of the two | A path to a folder containing .gui-sources/. Any argument with a slash, backslash or drive letter, or . / .., is read as a path (use .\MyMod for a folder in the current directory). |
--mod-name <name> | no | Root used in the path field of the .imageset (<name>\gui\imagesets\<setname>.paa). Defaults to the mod's $PBOPREFIX$, because in-PBO paths are rooted at the PBO prefix (vanilla P:\DZ\gui.txt:1 has prefix=gui\, and P:\gui\imagesets\playstation_buttons2.imageset:7 references Gui/imagesets/...). With no $PBOPREFIX$ it falls back to the folder name with a [WARN]. |
--dry-run | no | Packs in memory and prints, per set, the atlases it would write and the stale outputs it would delete (Would remove stale ...). Writes, converts and deletes nothing. Still needs preflight, Pillow and ImageToPAA.exe. With --prune it also lists the orphans it would delete (Would remove orphan ...). |
--prune | no | Deletes orphan outputs: generated files in gui/imagesets/ whose .gui-sources/<set>/ folder no longer exists (step 5). Without it they are only reported with a [WARN]. Preview with --dry-run --prune. |
ImageToPAA.exe), before any other check.<mod-root>/.gui-sources/ exists with at least one subfolder.ImageToPAA.exe from DayZ Tools.<mod-root>/.gui-sources/ (folders whose name starts with a dot, such as .git, are skipped):
Name, which .layout files reference as one token (image0 "set:dayz_gui image:Close" at P:\gui\layouts\day_z_book.layout:141). A folder name that is not an identifier (for example main menu or main-menu) fails that set with a [FAIL] asking you to rename the folder; the other sets still build..png files in that subfolder. Each file becomes one named sprite (the file's stem becomes the ImageSetDefClass name). A stem that is not an identifier (letters, digits and underscores, not starting with a digit; so no spaces or hyphens) fails that set with a [FAIL] naming the files to rename. A .png that Pillow cannot read (corrupt, truncated or 0 bytes) fails that set with a [FAIL] naming the file; the other sets still build. A subfolder with no .png files is skipped with a [WARN], and its outputs from an earlier run are deleted.<setname>.{paa,imageset}.<setname>_1.{paa,imageset}, <setname>_2.{paa,imageset}, etc. Each part is its own self-contained imageset.<setname>_N and another source set is also named <setname>_N (compared ignoring case, as Windows file names are), that set fails with a [FAIL] before anything is converted, because the two would overwrite each other's files..paa via ImageToPAA.exe into a temporary .staging-* folder inside gui/imagesets/, never onto the final file. The atlas fails if ImageToPAA exits non-zero or leaves no .paa in the staging folder..paa and .imageset files moved over the final files. If any atlas failed, no final file is replaced or deleted, so the earlier good outputs stay. The staging folder is removed either way.<setname>.* after a split, extra <setname>_N.* when the part count drops). Names are compared ignoring case, so after renaming the folder Icons to icons the old Icons_2.* goes too. Stems matching another source set's name are left alone..imageset's path references its own .paa via <mod-name>\gui\imagesets\<stem>.paa..imageset files in gui/imagesets/ whose stem is neither a current set name nor <set>_N of one (ignoring case), left behind when a set folder was deleted or renamed. /dayz-build-pbo would keep packing their sprites. Only files this skill wrote count: the .imageset must start with ImageSetClass {, carry Name "<stem>" and point at ...\gui\imagesets\<stem>.paa, so hand-made or vanilla-style imagesets (which use Gui/imagesets/....edds, as at P:\gui\imagesets\playstation_buttons2.imageset:7) are never touched. Each orphan .imageset and its <stem>.paa are reported with a [WARN], or deleted with --prune. This also runs when .gui-sources/ has no set folders left, before that run fails..imageset formatImageSetClass {
Name "my_icons"
RefSize 512 512
Textures {
ImageSetTextureClass {
mpix 0
path "MyMod\gui\imagesets\my_icons.paa"
}
}
Images {
ImageSetDefClass hud_health {
Name "hud_health"
Pos 10 10
Size 64 64
Flags 0
}
...
}
Groups {
}
}
This matches the vanilla layout: P:\gui\imagesets\playstation_buttons2.imageset (:1 to :24) has the same Name / RefSize / Textures / Images / Groups blocks and per-sprite Name / Pos / Size / Flags 0 fields.
Pos is the sprite's top-left in atlas pixels (after gutter); Size is the sprite's own dimensions (gutter is NOT included in Size). In the vanilla file above, DPAD_all_directions has Pos 1 1 and Size 44 44 inside a RefSize 64 64 atlas, so Size is the sprite alone.
The vanilla file also lists a second texture, mpix 1 with an @2x atlas, beside the mpix 0 one (playstation_buttons2.imageset:5 to :12). The generated file has only mpix 0, so the game uses that one atlas at every resolution.
set:<Name> image:<sprite>, where <Name> is the imageset's Name (image0 "set:dayz_gui image:Close" at P:\gui\layouts\day_z_book.layout:141)..imageset before a layout can use it. Mods list it in config.cpp under CfgMods, class defs, class imageSets; no vanilla config does this, so that route is not checked on P:\ (skills/_shared/enscript/references/widget_api.md, "Imagesets in layouts and script"). Script can load one at run time with LoadWidgetImageSet(string filename) (P:\scripts\1_core\proto\enwidgets.c:692).dayz.gproj lists it in its imageSets block (skills/_shared/ui/plan-to-implementation.md).Name in the layout does not match the folder name, or the sprite name does not match the .png stem./dayz-preflight returns non-zero.<ModName> is given but no project is cached by /dayz-init, or workspace/<ModName>/ doesn't exist.<mod-root> isn't a directory.<mod-root>/.gui-sources/ doesn't exist or has no subfolders other than dot folders.main menu); that set fails and the others still build.<setname>_N and another source set is named <setname>_N; that set fails and the others still build.hud health.png or hud-health.png); that set fails and the others still build..png cannot be read as an image (corrupt, truncated or 0 bytes); that set fails with a [FAIL] naming the file, and the others still build.ImageToPAA.exe is missing from DayZ Tools..gui-sources/ into the mod tree; /dayz-build-pbo excludes only .gui-sources\, so PNGs anywhere else are packed into the PBO.Size values; the engine reads Size as the sprite's own dimensions.P:\gui\imagesets\playstation_buttons2.imageset:3 is RefSize 64 64); that the GUI and .paa toolchain reject non-POT atlases is unverified.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-pboPacks a mod from workspace/<ModName>/ into a binarized .pbo at P:\Mods\@<ModName>\Addons\ with DayZ Tools AddonBuilder. Checks afterwards that the mod's scripts and models are really in the PBO. Use when a mod's source changed and you need a fresh PBO before /dayz-launch-test, a clean rebuild to chase a stale-asset bug, or the pre-build and post-build checks for a mod that packs but does nothing in game.npx claudepluginhub dayz-n-chill/agentic-z --plugin agentic-zOther plugins' skills for the same job