Skip to content
Back to skills

Patch

ASecurity

Use when changing a Godot game that is already shipped or installed — a mod or overlay over a game, a patch to a .pck, an installer or update script, a hotfix to live files — or when a Godot project is laid over a base project. Makes the change safe with Godotwright: review against the shipped game, preflight checks, exact anchors, idempotent installs, receipts and byte-identical rollback. Also in Dutch: 'installeer in de live game', 'patch de pck', 'maak een installer', 'terugdraaien', 'mod ...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add laaielichter/Godotwright --skill patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Patch?

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

Security grade badge for Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/laaielichter-patch/badge)](https://www.skillsdirectory.com/skills/laaielichter-patch)

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: patch
description: "Use when changing a Godot game that is already shipped or installed — a mod or overlay over a game, a patch to a .pck, an installer or update script, a hotfix to live files — or when a Godot project is laid over a base project. Makes the change safe with Godotwright: review against the shipped game, preflight checks, exact anchors, idempotent installs, receipts and byte-identical rollback. Also in Dutch: 'installeer in de live game', 'patch de pck', 'maak een installer', 'terugdraaien', 'mod op een bestaande game'."
argument-hint: "[what to change, optional]"
---

# Change a shipped Godot game safely

A change to a game people already have must never leave it half-changed. Work on $ARGUMENTS (or what the user named).

1. **Review against the real game.** Put the game's source folder in `godotwright.json` as `base`, and the list of
   files the shipped game holds (a .pck manifest, one path per line or JSON) as `baseFiles`. Then `godot_review` and
   `godot_usages` know every class, scene and path the game has, and do not report what only the shipped game holds.
2. **Work on a copy, never in the original.** Keep the installed game and its source byte-identical; build the change
   as an overlay or a candidate folder next to them.
3. **Patch by anchors that match exactly once.** When a patch inserts code into a file of the game, find the anchor
   text, require exactly one match, and stop with a clear message (changing nothing) when it is missing or appears
   twice. Check that the symbols the patch uses exist. `godot_lessons` with words "patch tools" has the details.
4. **Preflight, then write, then verify.** Before writing: the game's version and file hashes are the ones the patch was
   made for. While writing: a backup of every file it touches, and a restore of all of them on any error, including an
   interrupted run. After writing: a receipt (which files, hashes before and after) and a check with Godot
   (`godot_check` or a headless scenario) on the result. When the change moved scripts or shaders, `godot_uid` op
   `check` must say `in sync`: a `.uid` left behind gives the moved file a new uid, and references by the old one
   fail to load in the shipped game (op `sync` with `write: true` moves each `.uid` next to its file).
5. **Make it idempotent and reversible.** Running the installer twice changes nothing the second time. Rollback gives
   the original bytes back; test that with a byte comparison, not by eye.
6. **Give every change a switch** (a setting or a flag) so it can be turned off without a reinstall.
7. **Check the export before you build it, and the build after:** `godot_export` finds files the presets leave out
   although the game loads them, and data files that need `include_filter`. `godot_export_run` with mode `patch` then
   builds a patch .pck with only what changed (against the base .pck, or the base game's .pck manifest with md5),
   lists every file it carries, checks it never ships an unchanged base file or misses a changed one, and runs it.
8. **Test on a synthetic copy** of the shipped files when the real ones are out of reach, and say plainly what was not
   tested on the real game.

End with: what changes, the preflight, the install and rollback steps, and what was tested where.

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.