/rpgmaker-mz:tileset-catalogfrom RPG Maker MZ
Bootstraps a semantic tile catalog for custom RPG Maker MZ tilesets by slicing sheets into labeled samples and writing a versioned catalog file. Use when the server's built-in catalog doesn't cover a project's custom tileset sheets.
Ships in RPG Maker MZ. 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.
None: SKILL.md is the whole skill.
Give a custom tileset the same "ask for grass, get a paintable tile id" layer the
built-in Overworld catalog provides — but for sheets the server has never seen.
RPG Maker's default sheets ship an English .txt name sidecar (that's how the
built-in catalogs were built), and so do many DLC packs — the server reads those
automatically. Truly custom tilesets don't, so their names must come from
looking at the tiles. This skill does that safely: it slices, you name,
it writes a file a human verifies before it's trusted.
World_A1/A2/B/C (i.e.
not the built-in Overworld catalog), and you need semantic names for painting.get_tile_catalog(tilesetId) / find_tile come back
empty or thin for that tileset — its custom sheets are silently omitted.Do not use it for the Overworld tileset; that catalog already exists and is authoritative (from RPG Maker's own labels).
A versioned catalog at <projectPath>/data/tilecatalog/<Sheet>.json, one file
per sheet, keyed by the sheet's local index (autotile kind index for A1–A4, flat
tile offset for A5/B–E). Passability and terrain-tag are left null on purpose —
those are design decisions, not perception; a human sets them later.
Scripts live in scripts/ next to this file and need only Node (built-in zlib;
no sharp/canvas/pngjs). Let SKILL=.claude/skills/tileset-catalog.
.txt name sidecar firstBefore running vision, look in <projectPath>/img/tilesets/ for a
<Sheet>.txt next to each <Sheet>.png. RPG Maker's default sheets ship one
(one EnglishName|日本語名 line per local index) and so do commercial DLC packs
(e.g. Tl_Outside_A2.png + Tl_Outside_A2.txt). The server loads these
automatically — find_tile/get_tile_catalog return their names with
source: 'sidecar' (authoritative), no catalog file needed. So if
get_tile_catalog(tilesetId) already lists a sheet with source: 'sidecar',
skip it — vision naming would only be slower, guessed names. Run this skill
only for sheets with no sidecar (or to fill the indices a sidecar leaves blank).
Precedence per tile: a data/tilecatalog/ entry with "manual": true > the
sidecar > a vision draft. So a human can still correct a sidecar name by adding a
manual entry, and a vision draft never overrides a sidecar name.
Read the project's data/Tilesets.json for the target tilesetId; its
tilesetNames array holds the 9 sheet filenames [A1,A2,A3,A4,A5,B,C,D,E]
(empty string = unused slot). The image files are in <projectPath>/img/tilesets/.
Catalog the non-empty sheets that aren't already covered by the built-in catalog
or a .txt sidecar.
node $SKILL/scripts/slice-tileset.mjs <projectPath>/img/tilesets/<Sheet>.png <workDir>
Writes <workDir>/<Sheet>.samples.png (a montage: one representative sample per
autotile kind — its shape-0, fully-surrounded tile — or per non-transparent flat
tile, each with its local index printed above it in white on a dark strip) and
<Sheet>.samples.json (index → {kind, tileId}). Fully-transparent flat tiles are
dropped; autotile kinds that render mostly-transparent (edge-only sets like clouds)
still appear so you can see and name them.
Read (view) the montage image. For each labelled sample, decide:
name — a short, paint-friendly noun phrase ("Grass", "Brick Wall", "Shallow
Water"). Match the visual, not a guess about behaviour.confidence — high / medium / low. Use low for ambiguous or abstract
tiles; that flags them for the human to check.description — one short clause of visual detail ("mossy grey cobblestone").duplicateOf — if a sample looks essentially identical to an earlier index in
the same sheet, set this to that index (near-duplicate flag). Otherwise null.Write a naming JSON to <workDir>/<Sheet>.naming.json:
{
"sheet": "<Sheet>",
"role": "A2",
"autotile": true,
"entries": {
"0": {
"name": "Grass",
"confidence": "high",
"description": "bright green grass",
"duplicateOf": null
},
"1": {
"name": "Grass (Dark)",
"confidence": "medium",
"description": "shadowed grass",
"duplicateOf": 0
}
}
}
Only include indices that appear in the montage/samples.json. Copy sheet,
role, autotile straight from samples.json.
Preview first, then apply:
node $SKILL/scripts/write-catalog.mjs <workDir>/<Sheet>.naming.json <projectPath> --dry-run
node $SKILL/scripts/write-catalog.mjs <workDir>/<Sheet>.naming.json <projectPath>
The writer never clobbers human corrections: any catalog entry a human has set
"manual": true on is kept verbatim; other entries are updated to your new naming;
new indices are added; the file version bumps each run. So re-running the
bootstrap on an already-verified sheet proposes/updates rather than overwriting.
Tell the user the catalog is a draft for review: to correct an entry they edit
data/tilecatalog/<Sheet>.json, fix name/description, and set "manual": true
so future re-runs leave it alone. Point out any low-confidence or duplicateOf
entries as the ones most worth a look. Passability/terrain-tag stay null until a
human (or a later design pass) sets them.
find_tile/paint commands use. Some kinds
(clouds, land's-end edges) are legitimately mostly-transparent at shape 0.overworld.ts uses, so a future server loader resolves (sheet slot, local index) → tile id identically for custom and default sheets.scripts/tilegeom.mjs mirrors
Tilemap._addAutotile/_addNormalTile (rmmz_core.js v1.7.0): A1 water/waterfall
special layout, A2 96×144 ground blocks, A3 96×96 wall blocks, A4 alternating
wall-top/wall-side rows, and the two-half-column flat-sheet layout.find_tile/get_tile_catalog load
data/tilecatalog/*.json (as source: 'project') alongside the built-in
catalogs and any .txt sidecars (source: 'sidecar').What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub redseb/rpgmaker-mz-mcp --plugin rpgmaker-mzOther plugins' skills for the same job