Skip to content
Back to skills

X4 Mod Release Review

ASecurity

Use before publishing a new version of an X4 mod you made — a first release, an update, a Nexus or Steam Workshop upload. Reviews only what changed since the last published version, changes nothing while reviewing, and brings every finding to you before any fix. Not for porting a mod to a new game version (x4-update-mod), and not for releasing the toolkit itself.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentspythongobashnodetestinggitapi

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add WingedGuardian/x4-claude-toolkit --skill x4-mod-release-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of X4 Mod Release Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for X4 Mod Release Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wingedguardian-x4-mod-release-review/badge)](https://www.skillsdirectory.com/skills/wingedguardian-x4-mod-release-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: x4-mod-release-review
description: Use before publishing a new version of an X4 mod you made — a first release, an update, a Nexus or Steam Workshop upload. Reviews only what changed since the last published version, changes nothing while reviewing, and brings every finding to you before any fix. Not for porting a mod to a new game version (x4-update-mod), and not for releasing the toolkit itself.
---

<!-- GENERATED by tools/x4validate/scripts/gen-agent-trees.py from agent/. Do not edit: regenerate. -->

# X4 mod release review (author-gated)

**Why this review asks before it fixes.** A mod's correctness is judged in the game, by its author.
The agent cannot see in-game behavior. A review that runs after the author has tested in game and
then "fixes" something that only *looks* wrong on paper can publish a broken mod that was working.
Every rule below exists to prevent that.

**Words used here.** *The author* = the user publishing the mod. *Players* = people who install it.
*Author-tested* = behavior the author observed in game for this version.

## The rules

1. **Read-only review.** While reviewing, change nothing in the mod, the game install, the user
   profile or the package. Unpacked copies and reports go to the scratchpad. Reviewer subagents are told
   not to edit, to never run an installer, a deploy script or anything else that writes against a real
   target, to reproduce a defect only on a copy, and to write everything to the scratchpad.
2. **Every finding goes to the author, including definite ones.** No silent fixes. No finding is
   dropped because the agent judged it minor.
3. **What the author saw in game outranks the agent's reading of the files — for what they actually
   saw.** If the XML reads as X and the author observed Y, the reading is the suspect. But testing
   covers only the behavior observed, on the author's install, with the build they ran (Phase 1). It
   does not cover packaging, dependencies, other mod lists or a fresh install.
4. **Nothing is fixed without the author's individual approval.** Suspected findings are confirmed
   one at a time.
5. **A fix to an author-tested area makes that testing stale.** Say so each time, and name the re-test.

## When to run it

**Every release, before it is published.** The author chooses when:
- **before their final in-game test pass.** Approved fixes then get tested by that pass. This is
  usually the better choice: nothing changes after the author's sign-off.
- **after their testing.** Any fix approved then makes that area's testing stale (rule 5).
- **both.** A full review before the final pass, then a short re-check of only what changed since.

Recommend running it before the final pass, and ask which the author wants.

## Two kinds of finding

| Kind | Means | Examples |
|---|---|---|
| **DEFINITE** | provable from the files alone; no in-game behavior involved | `x4validate` reports a `sel=` matching nothing or several nodes; a declared `<dependency id=>` names no real mod id; the packed `.cat` lacks a file the dev folder has; the `content.xml` version was not bumped |
| **SUSPECTED** | depends on how the game behaves at runtime | a value, condition, cue timing or AI script branch that *looks* wrong |

Use these two words, consistently, in everything shown to the author.

## Phase 0 — baseline: what players already have

Scope = **the difference between what was last published and what will be published now.** Never
the whole mod.

Baseline, in order of preference:
1. The release record of the previous version (Phase 6 writes it).
2. **The archive players actually downloaded** (Nexus file or Workshop item), unpacked with XRCatTool.
   The published bytes are the baseline, not the dev folder or a memory of it.
3. A git tag, if the mod lives in a repo and the tag is known to match what was published.
4. **None of these** (a first release, or nothing was kept) → the whole mod is in scope.

Tell the author which baseline you used and how much changed, and **get them to confirm it before
reviewing.** A wrong baseline quietly shrinks or inflates the review.

Diff with `x4diff <baseline dir> <new dir>` (semantic: it compares XML nodes, not text lines). For
files with no XML form (textures, models, audio), changed = hash differs.

## Phase 1 — ask what the author tested, before judging anything

Ask, in one short message:
- which features they tested in game for this version, and what they did not
- **which build they tested.** Is it the packed `ext_01.cat`/`.dat` that will be published? A loose
  dev folder deployed to `extensions\` does not test the packed archive. Did they test on the
  game version and DLC set players are told to use?
- whether `debug.txt` from that test run was kept (it is evidence: `x4debug triage`)
- anything they already know is rough

Record the answer as the **author-tested set**. Tag each changed area tested or untested.

## Phase 2 — read the changes

Read every changed or added file **in full**, for context. **Findings are scoped to the changed
nodes and what they affect.** Do not hunt through unchanged files. Something wrong in unchanged
files that you notice anyway is reported as **PRE-EXISTING**, listed separately, and does not block
the release: players already have it, so holding the release does not fix it. **Exception:** an old
defect that this release makes players REACH —
through a new feature, a new default or a new instruction in the description — is treated as in-diff.

## Phase 3 — X4 checklist (check the rows the diff touches)

| Check | How |
|---|---|
| Patches still apply | `x4validate <mod>`: `sel=` matching nothing or several nodes, dangling refs, completeness. A clean run is necessary, not sufficient |
| Engine verdict on the shipped build | `x4validate <mod> --debug <profile>\debug.txt` against a log from a load of **this** build. If the author kept none, that is an open question for the author, not a pass |
| Manifest | `content.xml`: `id` unchanged from the last release; `version` bumped; every `<dependency id=>` is the target's manifest **id** (not its folder name); hard vs `optional="true"` matches intent |
| Save safety | `save="1"` bakes the mod into saves. Changing it, removing wares/macros/MD cues, or renaming ids can break existing saves. Verdict for players mid-game: SAFE / RISKY / DON'T |
| Dependencies another install may lack | anything patched or referenced from another mod: is it declared? Does the payload reference that mod's content (`if=` guards the selector, not the payload)? **The author's own install has all of these, so their testing cannot catch this class** |
| Did the author's testing exercise THIS mod's change? | on the author's mod list, does another mod win the same value? `x4effective who-sets` / `x4compat check`. If so, their test ran the other mod's value |
| Package contents | unpack the `.cat` to a scratch folder and compare with the dev folder: nothing missing, no dev leftovers (test cues, debug logging, backup files), paths mirror the game paths exactly; no source or tooling bundle inside the main package (see *Packaging rules*) |
| Text | t-files are merged across every mod, so page ids must not collide with vanilla or other mods. **The engine opens only the active language's t-file, so the author's test cannot reveal a broken t-file in any other language.** Check each shipped language file statically |
| Version-specific API | `x4validate <mod> --update` if the game version changed since the last release (the XSD pass and migration notes; exprlint runs on every x4validate run) |
| Claims | version, changelog and the Nexus/Workshop description match the files; every number re-derived |
| Permissions and credits | every asset or script from another author: permission status and credit line |

Label each finding's evidence **MEASURED / READ / INFERRED / ASSUMED**. Any live in-game check
(`x4live`) happens only if the author offers a running game.

## Phase 4 — bring findings to the author

Write the complete findings list first, with nothing applied. Then present it:

**DEFINITE findings** may be shown together as one list. Each item still gets its own answer from the
author. Nothing is fixed because "they were all obvious".

**SUSPECTED findings: one at a time.** One question per finding, never combined. Each one states:
- what and where (file and node or line), in-diff or pre-existing, evidence tier
- whether it falls in the author-tested set, and the direct question: **"Have you tested this in
  game? Can you vouch for it?"**
- what the agent thinks happens, **that it is not certain**, and the cheapest way to settle it (a
  `debug.txt` line, an `x4effective show`, a short in-game check)
- **what could break if it is changed**
- options: *Leave it (I vouch for it)* · *Fix it* · *I'll test it first* · *Investigate more*

When a suspected finding is in an author-tested area and the evidence is INFERRED or ASSUMED, the
recommendation is to leave it, and the agent says so.

Every answer is recorded. A finding the author leaves stays left. It comes back only if a later
release changes that code.

## Phase 5 — fixes (only the ones the author approved, one by one)

- Back up the affected files first.
- Smallest change that does it. Re-run `x4validate`. Diff against the backup and **confirm that only
  the intended nodes moved.**
- **The fix is itself new, unreviewed change.** Review it before it ships.
- **Verify the fix yourself first, and save the author's time for what you cannot check.** In order:
  static checks (`x4validate`, `x4diff`, `x4effective`), then a `debug.txt` from a load the author
  already ran, then the running game over `x4live` if the author offers it (follow the `x4-live`
  skill).
- Whatever only the author can confirm in game goes on **one re-test list, run as a single session
  at the end**, not one game launch per fix. Include a fresh `debug.txt` from that session, and tell
  the author which tested area each fix touched.

## Phase 6 — publish gate and the next baseline

Nothing is published until **every finding has the author's recorded answer** and the author gives
the final go. Then:

1. Pack with XRCatTool. Unpack the result to a scratch folder and confirm it matches the reviewed files.
2. Build the **whole upload pack in one release folder**, **outside the mod's own folder**, so it is
   never packed. Use the same place every release, e.g. `releases\{mod_name}\{version}\` beside
   `dev\`. Ask the author once if they have no such place. A finished review with no pack is not a
   finished release: the author should never have to ask where the description is. The folder holds:
   - the archive to upload, and any optional file or separate source download
   - `NEXUS-DESCRIPTION-v{version}.txt`: the new page description (step 3)
   - `NEXUS-SUMMARY-v{version}.txt`: the short summary
   - `NEXUS-CHANGELOG-v{version}.txt`: one change per line, at most 120 characters each
   - `description-BEFORE-v{version}.txt`: the previous page text, unedited, for rollback (step 3)
   - `UPLOAD-NOTES.md`: the manual steps left for the author
   - `SHIPPED-MANIFEST.json`: `mod`, `version`, status `shipped`, `archives` (every download in this
     folder, by plain file name, with sha256 and size) and `files` (every packed file with path,
     sha256 and size). The script's `--help` has the exact format. Once the package is handed over,
     **treat it as published**: record it as the current version and the next baseline without
     waiting for the author to confirm the upload. The next Phase 0 checks it
   - `REVIEW-RECORD.md`: the baseline used, the author-tested set, every finding with its answer
   - a copy of the unpacked release (this is the next release's baseline)
3. **Build the description from the live page. Never write it fresh.** In order:
   - **Fetch it through the Nexus API, never by scraping the page.** No toolkit command returns the
     description: `fetch_mod` in `x4validate/_nexus.py` calls the right endpoint and drops the field.
     Make the same call with that module's helpers, in a script in the scratchpad, run from
     `{{TOOLKIT}}/tools/x4validate` with `uv run --python 3.13 python <script>`:
     ```python
     from x4validate import _nexus

     mod_id = 12345  # the mod's Nexus id
     url = f"{_nexus.NEXUS_REST}/{mod_id}.json"
     page = _nexus._mapped(f"page {mod_id}", _nexus._get_json, url, {"apikey": _nexus.nexus_key(), **_nexus._APP})
     ```
     `nexus_key()` finds the author's key in `X4_NEXUS_KEY` in the environment or in `x4-paths.env`, and
     raises if neither has it. `_APP` is the application headers the API expects. Never print or log the
     key. Read `description` from `page`. Also read `status` and `version`, and tell the author if the
     page is not what you expected.
   - **Convert it to the editor's form.** The API hands back a display form that the editor does not
     accept. Drop each `<br />` that follows a newline, then unescape the HTML entities. Pasting the
     API's form fills the page with literal `<br />`. Save the converted text, unedited, as
     `description-BEFORE-v{version}.txt`. Rollback pastes that file, so it gets the same conversion
     and no other change. The checker does not apply the paste-file rules to it: text like
     `Version: 1.1.0`, `# Install` or a literal `&lt;` stays if the old page had it.
   - **Edit with anchored replacements.** Each edit names exact existing text and **refuses if that
     text is not found exactly once.** A miss means the page is not what you thought: stop and look,
     do not widen the anchor until it matches. Re-read the result and show the author the diff
     against the BEFORE file.
   - **If the API cannot provide the page, stop and tell the author.** A missing key, a refused or
     failed request, or an empty `description` all mean this: **do not write a description fresh**
     and do not reuse an old copy. Say what failed. The author can fix it, or paste in the current
     text from their editor.
   - **A first release has no page to fetch.** Only then is the description new. The author must
     confirm the page does not exist (a failed lookup is not that), and
     `description-BEFORE-v{version}.txt` then holds one line saying there was no previous page. A
     mod with no Nexus page at all (Workshop only) is outside these steps: ask the author for the
     current text, as above.
4. **Run the checker on the folder, and do not hand it over until it passes:**
   ```bash
   python {{TOOLKIT}}/scripts/verify-mod-pack.py <release folder>
   ```
   It refuses, naming every problem, on: a required file missing or empty; `<br` or an HTML entity, a
   carriage return, or a header line in a paste file; a changelog line over 120 characters; an
   archive that differs from the manifest or is not listed in it; a manifest without `mod`; a folder
   it cannot read. The rollback copy's wording is not judged. It is checked for being there, not being
   empty, being in the editor's form (UTF-8, LF, no `<br`), and matching the manifest if the manifest
   lists it. If its form is refused, redo the conversion from the stored response; never reword it. `--help`
   defines each of these. A pass says the folder has the right shape and paste form. It does not say
   the text is right, or that the description came from the live page. On a refusal, fix the pack and
   re-run. These are pack files, not the mod, so rule 4 does not apply to them. A refusal that would
   need the mod itself changed goes to the author.
5. Give the author **one path**, the release folder, and say what is left for them. A clean review is
   necessary, not sufficient. The upload itself is the author's step.

Skipping step 2 makes the next release's review start from a download or a full read, and leaves the
author with nothing to upload.

### Packaging rules (mirrors the Skyrim `mod-release-review`)

- **One upload folder.** Everything the author uploads or pastes (the main package, every optional
  file, any separate source download, the page description, the summary and the changelog text)
  goes in the same release folder, with plain names. Give the author one path; nothing to upload
  lives in a build workspace or a second folder.
- **No source in the main package.** The main download holds only what the game loads plus the
  player docs. Source code or tooling for a compiled component is its own download, never a folder
  inside the main package. If its license requires the source to stay available, tell the author
  not to archive that download while the binary ships.
- **License notices travel with the binary** they cover, placed beside it rather than at the top
  level, and the docs point to the separate source download.

## Red flags

- About to edit anything during the review → rule 1.
- "It's definitely broken, I'll just fix it" → present it and wait for the answer.
- Dropping a finding because the author "probably tested that" → present it, marked author-tested.
- Two suspected findings in one question.
- Treating the author's testing as cover for a dependency, packaging or save-safety finding. Their
  install is not a player's install.
- Reviewing the whole mod without telling the author there was no baseline.
- Calling something wrong from the XML when the author has seen it work in game.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.