/batocera:batocera-romsfrom batocera
Use when working with ROMs and gamelists on a Batocera cabinet: figuring out which directory a system's ROMs go in, why a game does not appear in the menu, which file formats and extensions a system accepts, curating a large library by hiding rather than deleting, editing gamelist.xml safely, cleaning up multi-disc games, or verifying dumps against No-Intro/Redump DATs. Covers extensionless-ROM-in-zip failures, the 3DO/Opera no-m3u trap, cave3rd, and the es_systems_custom.cfg landmine. Not for shaders/bezels (batocera-display), or ROM directories renamed by a Batocera version upgrade (batocera-maintenance).
Ships in batocera. 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; scripts run unread.
Managing the game library: where ROMs live, why they do or don't show up, how to
curate a big collection without deleting anything, and how to verify dumps.
Assumes the connection pattern and safety doctrine from batocera-ops.
ROMs live in /userdata/roms/<system>/, one directory per system. The directory
name is Batocera's internal system name, which is not always the obvious
one. Don't guess — look it up on the box:
# Every system Batocera knows, with its dir name and display name:
SSHB "grep -E '<name>|<fullname>' /usr/share/emulationstation/es_systems.cfg"
# What you actually have ROMs for:
SSHB "ls /userdata/roms/"
Names that trip people up: Cave CV1000 arcade lives in cave3rd (not
cv1000); Odyssey 2 is odyssey2 (renamed from o2em); Half-Life is
halflife (renamed from xash3d_fwgs). Directory renames across versions are
common — the batocera-maintenance migration reference lists the ones that bite.
In rough order of likelihood:
SSHB "grep -A2 '<system>' /usr/share/emulationstation/es_systems.cfg | grep extension".
A bare .bin is a frequent offender — for many disc systems .bin is not
an ES extension (you need a .cue or .chd).<hidden>true</hidden> in gamelist.xml, or its whole
system is in the ES HiddenSystems list. Hidden games still exist on disk —
this is a feature, see curation below..zip, but the emulator
refuses to load it because the inner file has no recognizable extension. See
the formats reference — this fails silently (RetroArch exits ~1s, status 1,
"Could not read content file").es_systems_custom.cfg — see the landmine below.Each system's /userdata/roms/<system>/gamelist.xml is per-game metadata:
<gameList>
<game>
<path>./Super Mario World (USA).sfc</path>
<name>Super Mario World</name>
<desc>...</desc>
<image>./media/images/Super Mario World (USA).png</image>
<hidden>true</hidden> <!-- present + "true" = hidden from menu -->
<favorite>true</favorite>
</game>
</gameList>
<path> is relative to the system dir and includes the extension. It's the
join key to the file on disk.<hidden> element (or setting it to anything but true) unhides.batocera-ops → emulationstation reference). Back the file up first.The core methodology for taming a large or messy library, e.g. building a
focused view for an arcade cabinet: set <hidden>true</hidden>, never rm.
Why hiding wins:
batocera-ops doctrine on a shared
machine. A wrong call costs a flag flip, not a re-download.Workflow:
cp gamelist.xml gamelist.xml.bak-<tag>.<hidden> flags — scripted for anything past a handful.curl -s http://127.0.0.1:1234/systems/<system>/games and count
hidden entries.scripts/set_hidden.py does step 3 from a JSON map of
file name to true or false (or --all for a whole system). It edits the text in
place, so ES-written fields and entry order stay as they were, and it writes
the backup itself. A quick hand-written regex for this job misses two cases the
script handles: names with & (stored as &), and entries where a tool
appended a field on the same line as </game>.
Good reasons to hide that are easy to forget: a game that needs a control the cabinet does not have (light gun, wheel, trackball, touch panel, card reader), and a system that is only there because a pack included it.
Methodology detail (system-level HiddenSystems, cross-platform canonicalization / 1G1R, regional and format dedup) is in references/curation.md. It is method only — bring your own taste; there are no game lists here.
Scrapers match on the ROM file name or its hash. Both fail for launcher files
that carry a board ID or a short code instead of a title (arcade loader stubs,
.acgame-style descriptors, ports). The ES scraper then skips the game or
attaches the wrong one.
Search by title instead. ScreenScraper has a title search endpoint
(jeuRecherche.php, parameter recherche, optional systemeid) that returns
the same game records as the file lookup, so the rest of a scraper (pick the
text by language, pick the media by region, write the gamelist fields) does not
change. Three rules from doing this on an arcade set:
<name> in the gamelist, with the bracketed
region and version text removed. Keep a small override table for titles the
search does not find.<image>).Multi-disc CD games (PSX, Saturn, 3DO, Sega CD…) each show every disc as its own
menu entry by default, cluttering the list. The clean fix — one visible entry
per game, remaining discs hidden, per-disc launch still possible — plus the
disc-swap mechanics that differ by emulator, is in
references/formats-and-quirks.md. A
ready-to-adapt implementation for 3DO is
scripts/fix-3do-multidisc.py. Do not reach for
.m3u on 3DO/Opera — that core doesn't support playlists (a documented trap
the script explains).
Full detail in references/formats-and-quirks.md; the ones that cost the most time:
es_systems_custom.cfg REPLACES the stock system list, it does not merge.
Drop a custom system definition in as es_systems_custom.cfg and ES boots
with only your custom systems — every stock system disappears. To add a
system, use a differently-named merge file, not es_systems_custom.cfg.unzip -Z1 *.zip
and check the inner suffix; rezip with a proper extension..m3u support; multi-disc needs the per-entry approach..bin disc images are invisible on systems whose ES extension list
wants .cue/.chd. Generate a .cue.To confirm your ROMs are known-good dumps (right data, not just right filename), verify against No-Intro DATs (cartridges, hash match) and Redump DATs (discs, extract + hash). Methodology, tiers, and known limits (GD-ROM CHDs that can't hash-verify, Sega CD CDDA mismatches) are in references/dat-verification.md, with a ready-to-run scripts/dat-verify.py.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub t3chnaztea/batocera-skills --plugin batocera5 skills in this plugin
/batocera-displayUse when working on how games look on a Batocera cabinet: CRT and other shaders, shaderset resolution and per-game shader overrides, bezel/overlay artwork and alignment, generating missing .info sidecars, filtering unusable bezels, seasonal bezels and boot splash clips, pinning the display resolution, or diagnosing moire and cropped/misaligned game viewports inside bezels. Covers why a shaderset seems invalid, why .info top values are not alpha coordinates, and why Mega-Bezel per-game art fails. Not for performance/framerate tuning (batocera-tuning)./batocera-maintenanceUse when keeping a Batocera cabinet healthy over time: running scripts or scheduled jobs at boot and on an interval without cron, the custom_service boot-service pattern (which replaced custom.sh in v43), backing up /userdata to another machine over SSH, and upgrading between major Batocera versions (v42 to v43 and similar) including the ROM-directory renames and post-upgrade checklist, a daily thermal throttle log, and a monthly health check that alerts only on an out-of-range value. Covers why there is no crond, the backup-before-upgrade doctrine, and catch-up scheduling. Not for performance tuning (batocera-tuning)./batocera-opsUse when connecting to or operating a Batocera arcade/retro-gaming cabinet over SSH: establishing the connection, understanding its read-only rootfs and /userdata layout, finding config/log/ROM paths, applying changes safely, verifying a display/config change end-to-end without a controller, or diagnosing why a setting reverts to its default on every launch (configgen). Foundation for the other batocera-* skills (roms, display, tuning, maintenance). Covers sshpass, batocera.conf, EmulationStation, the ES HTTP API, and batocera-screenshot. Not for game recommendations.