Dayz recipe

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

Dayz recipe is an AI agent skill from the GitHub repository DayZ-n-Chill/Agentic-Z. Starts a mod plan from a recipe (new weapon, new vest, new craftable): fills in the classes, the vanilla parents, the files, a task per team with a done check and the /dayz-gate behavior checks, after checking every vanilla class, script symbol and fit against P:\\. Writes output/<ModName>-plan/plan

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-recipe

A recipe is a plan template for a mod shape that comes up again and again. The script fills it in for your mod, checks every vanilla fact it relies on against P:\, and writes the draft plan. The AI only judges: dayz-mod-architect reads the draft, answers its open questions with the user, and writes the final plan.

Follow skills/_shared/dayz-conventions.md.

How to run

python "<skill-dir>\recipe.py" list
python "<skill-dir>\recipe.py" <recipe> <ModName> [options]

| Argument | Notes |

|---|---|

| list | Show each recipe, what it builds and its default vanilla classes. |

| <recipe> | weapon, vest or craftable. |

| <ModName> | The mod. The plan goes to output/<ModName>-plan/ in the project cached by /dayz-init. The mod folder does not need to exist yet. |

| --item | Class name of the new item. Default <ModName>_Rifle, <ModName>_Vest or <ModName>_Item. It must be a new name: a vanilla class name (in any config root, any case) is a FAIL. |

| --parent and the other class options | Swap a default vanilla class. Each recipe takes only its own options (below). |

| --force | Replace a draft plan that already exists. The old plan files are first copied to a new folder output/<ModName>-plan/.bak/<timestamp>/ (for example .bak/20261024-153012/), so each --force keeps its own backup and a later one never overwrites an earlier one. A finished plan (a plan.md that no longer starts with the <!-- dayz-recipe draft --> mark) is never replaced, even with --force: the script stops with ERROR. Without --force it refuses any existing plan files. |

| --project | Project root, when no /dayz-init project is cached. The folder must exist. |

| --out | Write the plan somewhere else. |

| --vanilla | Vanilla data root. Default P:\. |

| --json | Print the full report as JSON after the verdict line. On WROTE it also has written (the plan files) and backup (the backup folder, or null when nothing was replaced). |

The recipes

| Recipe | Builds | Options and defaults | Behavior checks |

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

| weapon | A firearm on a vanilla one, with new textures, the vanilla magazines and attachments, and a loot entry. | --parent AKM, --attachment AK_WoodBttstck, --magazine Mag_AKM_30Rnd | spawn, hands, attach |

| vest | A vest on a vanilla one, with new textures, the vanilla slots and cargo, and a loot entry. | --parent SmershVest, --attachment SmershBag, --cargo Rag | spawn, wear, attach, cargo |

| craftable | An item a player crafts from two vanilla items: the config class, a RecipeBase recipe, a modded PluginRecipesManager that registers it, and a loot entry. | --parent Inventory_Base, --ingredient1 Rag, --ingredient2 DuctTape | spawn, hands |

The templates are recipes/<name>.json. Each one lists the options, the fits to check, the script symbols, the classes, the files, the tasks (team, worker, done check, files, depends on), the behavior checks, what needs a person in game, and the open questions.

What it checks on P:\

Nothing is written unless every check passes.

Output and exit codes

The first line is the verdict on every run except --help. Nothing is printed before it, on stdout or stderr.

| Verdict | Exit | Means |

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

| WROTE | 0 | Every check passed. One [OK] line per vanilla class with path:line and its addon, per script symbol and per fit, then the files written. |

| FAIL | 1 | A class is missing, a fit does not hold, or --item is already a vanilla class. One [FAIL] line each, saying what to pass instead: for a missed slot, the spawnable (scope = 2) vanilla items for each of the parent's slots; for a missed magazine, the parent's magazines[]; for a taken item name, where vanilla defines it and a new name to use. Nothing was written. |

| ERROR | 2 | One line saying why, checked in this order: bad arguments (an unknown flag, the mod name, an option the recipe does not take, a class name), no vanilla data at P:\ (mount it with /dayz-workdrive), no project (run /dayz-init or pass --project), plan files already there without --force, or a finished plan that --force will not replace. |

It writes three files to output/<ModName>-plan/:

Next step

Give the draft to dayz-mod-architect (the orchestrator does this in its plan step). It keeps the verified classes unless the request needs others, answers the open questions with the user or the spec, and rewrites plan.md and behavior-checks.json as the final plan.

Limits

Do not

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.