Install Console Graphics
Pick your agent. Every command is ready to paste.
npx skills add Jakeschincariol/console-skill --skill console-graphicsThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads console-graphics when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the console-graphics skill”. In Codex, type $console-graphics.
console-graphics
The Graphics Artist works on what the player sees. Textures: find them on the
extracted disc (loose .tm2 files, or TIM2 blobs inside bigger archives),
dump them to PNG, repaint them with the user's own art, rebuild them at the
same size and format, and drop them back into the extracted disc folder the
port reads. Widescreen: find the camera's 4:3 numbers, try their 16:9 values
in PCSX2, then bake the winner into the port and stretch the window.
Be plain about the limits. A replacement texture keeps the original's size and
pixel format: the game's code uploads it with GS registers built for those, and
the GS has 4 MB of video memory. True HD texture packs need a texture
replacement hook in the renderer, which the runtime does not have today. Many
games keep textures in their own formats, not TIM2: /console-levels maps
those archives. Widescreen is a candidate hunt, not a lookup.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/tim2.py" info console/disc/DATA/TITLE.TM2 # pictures, formats, GS TEX0
python3 "${CLAUDE_SKILL_DIR}/tim2.py" topng console/disc/DATA --out console/textures/png # every .tm2 under a folder
python3 "${CLAUDE_SKILL_DIR}/tim2.py" frompng console/disc/DATA/TITLE.TM2 my_title.png --out console/textures/new/TITLE.TM2
python3 "${CLAUDE_SKILL_DIR}/tim2.py" scan console/disc/DATA/PACK.BIN --extract console/textures/found
python3 "${CLAUDE_SKILL_DIR}/tim2.py" insert console/disc/DATA/PACK.BIN --offset 0x1A2000 --tm2 new.tm2 --out console/textures/new/PACK.BIN
python3 "${CLAUDE_SKILL_DIR}/widescreen.py" scan SLUS_203.12 --out console/patches/widescreen-try.pnach
python3 "${CLAUDE_SKILL_DIR}/widescreen.py" values --fov 60 # 4:3 -> 16:9 table, Hor+ FOV
python3 "${CLAUDE_SKILL_DIR}/gspacket.py" dma console/dumps/ram.bin --tag 0x01F2A000 # walk a VIF1 DMA chain
python3 "${CLAUDE_SKILL_DIR}/gspacket.py" gif console/dumps/ram.bin --addr 0x00403C10 --length 4096
Other flags: topng --rgba (RGBA instead of palette PNGs), --palette N,
--all-palettes, --mips; frompng --quantize (median cut when the art has
too many colours), --picture N, --keep-mips, --force; --json on info,
scan and widescreen.py.
What it reads and writes
| file | what |
|---|---|
| the extracted disc folder (next to the ELF) | read: .tm2 files and archives that hold TIM2 blobs |
console/textures/png/ |
the dumped PNGs: the user's working copies, never published |
console/textures/new/ |
rebuilt .tm2 files and archives, same size as the originals |
| the game's main ELF | read by widescreen.py |
console/patches/widescreen-try.pnach |
one [section] per widescreen candidate, to toggle in PCSX2 |
console/dumps/*.bin |
raw guest RAM dumps that gspacket.py reads (game data: never published) |
How the port draws
- The game's own code builds GIF packets and DMA chains as on a PS2.
ps2xRuntime/src/lib/gs/gs_frontend.cpp(classGS) takes the packets and register writes,gs/ps2_gif_arbiter.cpporders the GIF paths,gs/ps2_gs_memory.cppholds the 4 MB of GS memory, andgs/gs_cpu_backend.cpp(GSCpuBackend) rasterises sprites, triangles and lines in software, sampling textures and CLUTs from that memory. - Each frame,
ps2_runtime.cppcopies the displayed frame (640x448 by default) into a raylib texture and draws it scaled to fit the window, keeping its shape (DrawTexturePro). - Desktop builds have a debug panel (
ps2_debug_panel.cpp, toggled with F1): the GS tab shows the GS registers and draw history, the File/CD tab shows which disc files the game has open, which is how you learn which file a texture comes from.
Textures: the method
- Find them.
tim2.py infoon loose.tm2files. For archives,tim2.py scan <file> --extract DIRfinds TIM2 blobs and their offsets. No hits: the game uses its own format; watch the File/CD tab when the texture appears, and hand the file to/console-levels. - Dump.
tim2.py topng <file or folder> --out console/textures/png. Indexed textures become palette PNGs (exact indices kept); the PS2's alpha (0x80 = opaque) becomes 0xFF; CSM1 palette swizzle is undone. - Repaint with the user's own art at the SAME width and height. Keep an
indexed texture within its palette size (16 or 256 colours) in the editor,
or use
--quantize. Untouched pixels stay byte-identical. - Rebuild.
tim2.py frompng <original.tm2> <edited.png> --out .... The header and GS registers are copied unchanged; mip levels are regenerated from the new art (or kept with--keep-mips). For a blob in an archive:tim2.py insert(same offset, same size; never in place without--force). - Drop it in. Back up the original, then put the new file in the
extracted disc folder next to the ELF (the runtime's
cdRoot): no ISO rebuild. Boot the port (/console-tester) and look.
Format details (headers, CLUT swizzle, alpha, mipmaps): reference/tim2-format.md.
Widescreen: the method
widescreen.py scan <ELF> --out console/patches/widescreen-try.pnachlists every 4:3 constant (1.3333334, 0.75, 640/448, 512/448 ...) in data and inlui/ori/mtc1code, each with the 16:9 value (1.7777778, 0.5625, x4/3 or x3/4) and its pnach line(s). It cannot know which is the camera.- In PCSX2, copy the sections into the game's pnach (
/console-modpnach.py crcnames it) and enable ONE at a time. The right one widens the view (more on the sides) instead of stretching it. Some games need two (projection and culling); menus and HUDs may need their own. - Bake the winner in with
/console-mod(pnach.py tomlfor code,pnach.py overridefor data). - Stretch the port's output to 16:9: the presenter in
ps2_runtime.cppkeeps the frame's shape, so the window must be told to show it 16:9 wide. Exact steps and the FOV rules: reference/widescreen.md.
Black screen or garbage: read the packets
When the port runs but draws nothing, or draws noise, look at what the game actually sends before touching the renderer.
- Get a RAM dump of the moment it goes wrong: 32 MB of RDRAM from guest
address 0 (no
--baseneeded). From the port, writeruntime.memory().getRDRAM()toconsole/dumps/ram.binfrom a game override (/console-modoverride.py new --wrapon the function that kicks the DMA); from PCSX2, its debugger's memory tools or PCSX2-MCP's memory read. A smaller dump works too: pass its start address with--base. - Find the chain. The port's debug panel (F1), DMA/IO tab, shows
VIF1_TADRandGIF_TADR: the address of the next DMA tag. In PCSX2, a write breakpoint onD1_CHCR(0x10009000) stops where the game starts it. - Walk it.
gspacket.py dma <dump> --tag <TADR>lists every tag (cnt, next, ref, call, ret, end), decodes the data as a VIF1 stream (UNPACK sizes follow the runtime's own interpreter, STCYCL included), and the GIF packets inside every DIRECT block.--channel giffor PATH3 chains,--verbosefor every GS register write,--jsonto keep it. - Read the issues at the bottom. A chain that loops or leaves RAM, an
unknown VIF code (the stream is corrupt or decoded from the wrong place), a
command cut off mid-stream, an image upload shorter or longer than its
BITBLTBUF/TRXREG(a broken texture), a prohibited primitive. Exit 1 means at least one error. TheTEX0andFRAMEfields it prints say which texture and which framebuffer a draw uses. - Then decide the layer. Dump the same moment in PCSX2 and compare
(
/console-testerabdiff.py mem). Same packets as PCSX2 but a wrong picture: the runtime draws them wrong (gs/gs_frontend.cpp,gs/gs_cpu_backend.cpp,ps2_vif1_interpreter.cpp), a/console-backendfix. Different packets: something upstream (a stub returning the wrong value, a missing function) fed the game bad data, so/console-testertriage first.
This replaces the base skill's vif_gif_surgeon.py, which decodes one DMA tag
and its two VIF codes (and swaps MSCALF and MSCNT).
Guard rails
- Bring your own game. Only a game the user owns, dumped from their own disc. Never download or look for ISOs, ELFs, BIOS files or texture packs made from other people's dumps, never ask for them.
- Nothing from the game gets published. The game's textures, the dumped
PNGs and the rebuilt
.tm2files stay on the user's machine. Share only the user's OWN art (and the pnach/override for widescreen), never the game's textures, not even edited ones. - Not affiliated with Sony. PlayStation is a trademark of Sony Interactive Entertainment.
- Never overwrite a disc file without a backup; the tools write new files and
refuse to overwrite without
--force. Same size and format, always.
Hands off to
/console-levelsfor archives that are not TIM2 and for repacking them./console-modto bake a widescreen or camera fix into the port./console-physicsfor FOV values that are not aspect ratios./console-testerto boot the port and check the new art and the 16:9 view.
Tips for Console Graphics
- • Start a fresh session after installing so your agent picks up the new skill.
- • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 11 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Console Graphics
What does the Console Graphics skill do?
Graphics 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, a
How do I install Console Graphics?
Run "npx skills add Jakeschincariol/console-skill --skill console-graphics" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Console Graphics work in Cursor and Codex?
Yes. Console Graphics uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Console Graphics free?
Console Graphics is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Console Graphics?
Console Graphics is published by Jakeschincariol in the Jakeschincariol/console-skill repository, together with 10 other skills.

