/agentic-z:dayz-ask "<question>" [--top-k N] [--excerpt-lines N] [--file-type T] [--folder F] [--grep] [--json]from agentic-z
Answers plain English questions about vanilla DayZ with verified path:line citations from source files. Useful when asking how vanilla DayZ works, where config values live, or what a class does.
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\.
A script finds and checks the evidence. You read it and write the answer. Every claim in the answer cites a line the script read from disk. The script runs the RAG search, checks every hit against the file on P:\, and falls back to a keyword Grep of the vanilla folders when there is no VOYAGE_API_KEY or index.
Follow skills/_shared/dayz-conventions.md. Format the answer per skills/_shared/answer-formatting.md.
python "<skill-dir>\ask.py" "<question>" [--top-k N] [--excerpt-lines N] [--file-type T] [--folder F] [--grep] [--json]
Narrow the search whenever the question allows it: --file-type cpp for a config.cpp value, --file-type c for script behaviour, --folder gui for a layout. For example:
python "<skill-dir>\ask.py" "what does the food config set for spoil time" --file-type cpp --folder dz
| Argument | Notes |
|---|---|
"<question>" | The user's question in their words. |
--top-k N | Search hits, or Grep files, to keep (1 to 25, default 5). |
--excerpt-lines N | Longest excerpt printed per citation (1 to 300, default 60). Raise it to see whole functions. |
--file-type T | Only one file type: c, cpp, hpp, h, layout, cfg, rvmat, xml, json or csv. Use cpp for config.cpp questions and c for script questions. |
--folder F | Vanilla folder for the Grep fallback: scripts, dz, gui, core, graphics or languagecore. Repeat it for more than one. The default is scripts and dz. |
--grep | Skip RAG and use the Grep fallback. |
--json | Print the report as JSON after the verdict line. |
search_dayz_source from the dayz-rag server when the index is built and VOYAGE_API_KEY is set. Each run is a new process, so the dayz-rag server's in-memory cache does not carry over between /dayz-ask runs; the MCP tool search_dayz_source in a session does reuse it.P:\. A hit is verified when the cited lines still hold the indexed text, or moved when the text now sits at other lines, in which case the citation points at the new lines. A hit whose text is gone is dropped and listed under dropped. verified says only that the citation is real, not that it answers the question.--excerpt-lines, default 60) at its best term lines. The index can return a long chunk of a config class (the CfgVehicles hit in P:\dz\gear\food\config.cpp at lines 240 to 533), and the first 60 lines of it rarely hold the answer. The lines inside the span are scored the way the Grep fallback scores a file's lines, and each window (two lines either side of a matching line, up to three per hit) becomes its own citation, with within naming the whole span. A long hit with no term line inside it is dropped as off topic.RAG_MAX_DISTANCE), or when neither its excerpt nor its class context holds a search term from the question. A term inside a quoted asset path ("food" in model="\dz\gear\food\BoxCereal.p3d") does not count. A cooking config class returned for a food spoilage question is dropped this way. Each one is listed under dropped with its reason.AI, HP, UI, ID, NV, UV; a two-letter term matches only as its own word or name part, so AI finds EntityAI but not FAIL), scans the vanilla folders, and ranks files by how many of the rarer terms they hold. A file that declares a class or function whose name holds a term ranks higher. Debug and GUI files (a gui folder, or debug in a folder or file name) count half, so gameplay classes come before debug readouts. Grep citations are lines read from disk, so they count as checked.The first line is the verdict: EVIDENCE (exit 0), NONE (exit 1, nothing found) or ERROR (exit 2: empty question, a question made only of common words such as "how does it work", bad argument (reported before the common-words check), P:\ not mounted, or the script crashed, for example when the dayz-rag server fails to load). Notes follow, then each citation with the lines read from disk:
EVIDENCE 2 citation(s) via rag
[1] P:\scripts\4_world\classes\bleedingsources\bleedingsource.c:7-203 verified distance=0.708 BleedingSource
| class BleedingSource
| ...
via is rag, grep, or rag+grep when RAG gave no surviving hit (none returned, or all dropped as stale or off topic). An excerpt shows at most --excerpt-lines lines (default 60).
With --json, the report holds verdict, question, mode, notes, citations and dropped. Each dropped entry has cite and reason. Each citation has cite (path:line_start-line_end), path, line_start, line_end, status, source (rag or grep) and excerpt; RAG citations add distance and context, and within when the hit was re-cited from a longer span; Grep citations add match_line and terms_in_file.
get_dayz_file or Read first.path:line_start-line_end, using the cite value or a narrower range inside it.--file-type or --folder. Do not fill the gap from memory./dayz-search-index --full.P:\ is mounted itself and does not run /dayz-preflight, since it only reads files. Mount the drive with /dayz-workdrive.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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./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.Other plugins' skills for the same job