/console-skill:console-anywhere doctor|plan|package|guard|recomp-json --target windows|macos|linux|steamdeck|android|vita|webfrom console-skill
Builds PS2Recomp ports for Windows, Mac, Linux, Steam Deck, Android, and PS Vita. Checks toolchains, prints build steps, and packages the runner without game files. Use when porting a PS2 game to another platform.
Ships in console-skill. 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.
A PS2Recomp port is a normal native program (ps2EntryRunner) built from the recompiled game code
plus the runtime, drawn with raylib. The same CMake project builds it on Windows, macOS (Apple
silicon through sse2neon), Linux and the Steam Deck; android/ makes an APK and vita/ makes a
vpk. This skill checks the toolchain, prints the right steps for each device, and packages the
result so the player brings the game from their own disc.
Honest limits: PS2Recomp says it is tested mainly with MSVC, so Mac, Linux, Android and Vita builds get less testing; the Vita is far slower than a PC; Android has no on-screen controls yet. And the runner is compiled from your game's recompiled code, so a package is for your own devices: it never contains the disc, but it is still derived from the game, so it is not something to upload.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/targets.py" doctor # this machine's own OS
python3 "${CLAUDE_SKILL_DIR}/targets.py" doctor --target android --target vita # or --target all
python3 "${CLAUDE_SKILL_DIR}/targets.py" plan --target steamdeck --elf-name SLUS_203.12
python3 "${CLAUDE_SKILL_DIR}/targets.py" package --runner out/release/ps2xRuntime/ps2EntryRunner \
--target linux --elf-name SLUS_203.12 --game "My Game" --serial SLUS-20312 \
--out console/dist/mygame-linux
python3 "${CLAUDE_SKILL_DIR}/targets.py" guard console/dist/mygame-linux # before you zip or push anything
python3 "${CLAUDE_SKILL_DIR}/targets.py" recomp-json --game "My Game" --serial SLUS-20312 --status playable
Targets: windows, macos, linux, steamdeck, android, vita, and web (plan and doctor
only: a separate toolchain). plan takes --repo (your PS2Recomp checkout) and --build-dir.
package takes --lib FILE (extra libraries), --allow FILE, --replace, --status, --json.
Exit codes: 0 ok, 1 something missing or refused, 2 bad input.
| file | what |
|---|---|
| your build output | ps2EntryRunner (+ .dll / .so / .dylib next to it), app-release.apk, or ps2EntryRunner.vpk |
console/dist/<name>/ | the player folder: runner, libraries, game/ (empty), PLAYERS.md, play.bat / play.command / play.sh / install-android.sh, .recomp.json, .console-dist.json |
templates/PLAYERS.md | the player instructions template |
.recomp.json | optional project description read by recomp lists (PS2Recomp itself ignores it) |
console/STATE.md | read the build folder and checkout path from it; log what was built |
/console-tester on the machine
you develop on first. A crash on the desktop will not get better on a phone.targets.py doctor --target <t>. Install what is MISSING with the printed command,
then run doctor again.targets.py plan --target <t> --elf-name <the disc's ELF>. Follow the steps in the
user's checkout (the one holding their recompiled code). Per-target details and the source of
each fact: reference/targets.md.CLEAN=1 for the Vita. A separate release folder (out/release) keeps the day-to-day build intact.targets.py package --runner <built file> --target <t> --out console/dist/<name>.
Add --elf-name (else the launch script reads BOOT2 from the player's SYSTEM.CNF) and
--game/--serial for .recomp.json.--lib,
a disc file next to the runner). Never add an allow line for a disc image, a PS2 ELF, an IRX,
SYSTEM.CNF or runner sources: the allow file is only for a false positive that is truly the
user's own file, with the reason written next to it. Details: reference/guard.md.PLAYERS.md, then the player dumps their own disc into
game/. Test it there, and log the result in console/STATE.md.| target | runner | how the ELF is found | notes |
|---|---|---|---|
| Windows | ps2EntryRunner.exe + FFmpeg DLLs | play.bat passes game\<ELF> | MSVC, the most tested path |
| macOS | ps2EntryRunner | play.command passes game/<ELF> | arm64 builds through sse2neon; needs Homebrew FFmpeg unless built without it |
| Linux | ps2EntryRunner | play.sh | raylib needs X11 and GL headers to build |
| Steam Deck | the Linux build | play.sh, added to Steam as a non-Steam game | or the Windows build under Proton (untested here) |
| Android | app-release.apk | baked in with -Pps2xBootElf=... | files go to /storage/emulated/0/Android/data/com.ps2x.runner/files/ with adb push; pair a controller |
| PS Vita | ps2EntryRunner.vpk | baked in by ./vita/build.sh <ux0:data/... path> | ./vita/setup.sh once; install with VitaShell; slow |
| web | (not a PS2Recomp target) | snuri00/ps2-web-recomp is a different recompiler: a second port of the same disc, experimental |
package refuses disc images (ISO, BIN, IMG, MDF, NRG,
CHD, CSO and ISO 9660 content under any name), PS2 ELFs and IRX modules (by magic and machine),
disc-style names like SLUS_203.12, SYSTEM.CNF, recompiled runner/ sources, anything in
game/, and any file over 512 MB. The runner itself is built from the recompiled game code: the
package is for the user's own devices, not for upload. Share patches, overrides and original assets.--replace only replaces a folder this tool made, and refuses
while game/ holds anything (the player's disc, saves in mc0/)./console-tester to run the build on this machine before packaging, and after./console-controller for the device's controls (xbox layout on the Steam Deck, touch zones or
a Bluetooth pad on Android)./console-saves to move saves between devices (mc0/ sits next to the game's ELF).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ps2recomp, porting, cross-platform, game-packaging, steam-deck, vita
11 skills in this plugin
/console-backendBackend Engineer. Builds the engine room the recompiled game runs on: syscalls, kernel stubs, file and disc I/O, the IOP. Reads PS2Recomp runtime logs and turns every "Unimplemented PS2 stub", "[Syscall TODO]", missing function, unhandled IOP RPC, failed disc read and untranslated instruction into a ranked fix list: count, first PC and RA, and the exact fix tool (a TOML binding, the runtime .cpp file to implement it in, an entry point and a recompile, or a game override). With the user's PS2Recomp checkout it reads the real handler names and syscall numbers. Writes nothing into the checkout; prints a table for console/STATE.md. Use when the user says "unimplemented stub", "syscall TODO", "it crashes at boot", "fix the backend", "it can't find a file", "the IOP", "what is syscall 0x3C", or after /console-tester reports a stop./console-controllerController Mapper. Hooks the game up to any controller: DualSense, Xbox, Switch Pro, keyboard or touch, remapped how you like. Reads a mapping in console/controls.json (a layout preset plus per-button overrides, radial deadzone, invert Y, stick swap, analog trigger threshold, keyboard keys, two players, Android touch zones) and writes console/ps2_pad.cpp, a drop-in replacement for PS2Recomp's ps2xRuntime/src/lib/ps2_pad.cpp with the same class, signature and DualShock 2 report. Optional input replay and recording for scripted test runs. Backs up the stock file before installing and only touches the PS2Recomp checkout you name. Use when the user says "my controller doesn't work", "remap the buttons", "use my Xbox pad", "Switch Pro buttons are swapped", "invert the camera", "keyboard controls", "two players", "touch controls on Android", or when /console-tester needs scripted input./console-graphicsGraphics Artist. Rebuilds the graphics: dumps every texture, lets you repaint or replace them with your own art, finds the widescreen fix. Converts PS2 TIM2 textures (.tm2, 32/24/16-bit and 8/4-bit indexed) from the user's own extracted disc to PNG, rebuilds them from edited PNGs at the same size and format (GS registers kept, palettes refit or quantised), finds TIM2 blobs inside archives and puts edited ones back, and lists the 4:3 aspect and FOV constants in the ELF with 16:9 pnach lines to try in PCSX2. Reads the packets the game sends the GS from a RAM dump (DMA chains, VIF codes, GIF tags, every register write) and flags what breaks rendering. Writes to console/textures/ and console/patches/, never into the disc image. Use when the user says "dump the textures", "repaint", "replace this texture", "my own art", "HD textures", "make it widescreen", "16:9", "the picture is stretched", "black screen", "garbage textures", "nothing draws", or "how does the port draw"./console-levelsLevel Designer. Maps the disc's data files, unpacks the archives the levels live in, and swaps in your edits. Inventories an extracted PS2 disc (size, type by magic, entropy, a table-of-contents guess with a confidence score), unpacks CRI AFS archives and detected table-of-contents archives into a folder with an index.json, repacks them in the same order and alignment (keeping every offset when your edits fit), diffs two files or folders to show which bytes a change touched, lists strings, and reads the port's log to show which disc files a level loads. Writes under console/ and never modifies the original disc files. Use when the user says "where are the levels", "unpack this archive", "what's in DATA.BIN", "edit the level", "swap in my map", "what changed between these two files", "which files does stage 3 load", or before /console-graphics or /console-sound needs a file that sits inside an archive./console-modMod Maker. Describe any change in plain English and Claude builds it into the game: patches, cheats, new behaviour, as code that never touches the original files. Ports PCSX2 .pnach patches to the PS2Recomp port (code writes become ps2_recomp TOML instruction patches, data writes become a C++ game override that writes RDRAM at load or every frame, the rest are flagged for a manual port with the reason) and scaffolds game overrides that bind, replace or wrap a game function with the real PS2Recomp API. Writes to console/patches/, never to the game's files, the generated runner/*.cpp or headers. Use when the user says "mod this game", "add a cheat", "infinite health", "port this pnach", "make my gun do X", "change how X works", "game override", "turn this PCSX2 patch into the port", or once the port boots and they want to change it./console-physicsPhysics Tuner. Finds the numbers that decide how the game moves (speed, gravity, grip, jump height, frame rate) and tunes them. Scans the user's own game ELF for a float32 value stored in data or built in code (lui, ori or addiu, then mtc1), shows the instructions that read it, lists frame-timing candidates, and prints the exact pnach lines to test a new value in PCSX2 plus the PS2Recomp fix (TOML instruction patches or the data write /console-mod bakes in). Reads only; writes nothing. Use when the user says "make the car faster", "lower the gravity", "jump higher", "more grip", "change the damage", "wider camera", "unlock 60 fps", "find the speed value", or when /console-mod needs a number found.npx claudepluginhub jakeschincariol/console-skill --plugin console-skillOther plugins' skills for the same job