/gameframe:re-landfrom gameframe
Documents reverse-engineering findings, updates labels and checklist, commits own files, merges to main, and pushes. Prevents lost work between sessions.
Ships in gameframe. 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.
Undocumented findings are re-derived by the next session, at full cost. Landing is part of the work.
grep -rln ADDRESS docs/); otherwise
create docs/<TOPIC>.md and link it from docs/FINDINGS.md.docs/working/writing.md.labels/names.tsv for every function you identified
(1400be770<TAB>Citizen::ChooseJob<TAB>called from the AI tick, reads the job table), a row in
labels/fields.tsv for every field, and a row in labels/dictionary.tsv with the meaning,
unit and range of every value you learned about (docs/DATA-DICTIONARY.md). Check it with
tools/triage/dictionary.py labels/dictionary.tsv --fields labels/fields.tsv.
Functions the port cites with Original: FUN_… get labels automatically:
tools/triage/cite_labels.py SRC --existing labels/names.tsv --out labels/names-from-port.tsv,
then decomp_query.py --labels labels/names.tsv --labels labels/names-from-port.tsv.
Add --notes to name module notes after their module. Add --any --prefix FUN_ when the port
also cites functions as a FUN_ address in the comment above an item, without "Original:".docs/CHECKLIST.md and update its date.Deviation: or not ported comment, regenerate
the ledger (tools/triage/deviations.py --out docs/DEVIATIONS.md SOURCE_DIR) and commit it
with the change. tools/triage/coverage.py SOURCE_DIR gives the progress figures for the
checklist.Ask whether this slice hit a failure, a dead end or a fact about the era, runtime or hardware
that the next game would hit too. Examples are a tool that crashed, a game that would not
start, a fix that took an hour and an idea that did not work. If it did, record it as a
know-how entry (docs/working/knowhow.md). Then ./gameframe advise and the hook find it
next time.
./gameframe advise "<the exact error text>". If an entry exists, add to it: a new line
under ## Tried, a new signature, or the fix that turns open into solved.docs/knowhow/_template.md into the project's docs/knowhow/,
named by the entry's id. Fill in the facets from GameFrame's docs/knowhow/README.md. When
the failure prints anything, add at least one signature (a regular expression for the exact
message). Add the sections its status needs: Symptoms, Cause and What to do when
solved; Symptoms and Tried when open or a dead end../gameframe advise --check, then the error text again. The entry should come first.Record an open problem too, with every attempt under ## Tried. That list saves the next
session the most time. Never put game material in an entry. Only addresses and short message
texts belong there.
git status --short
git diff --stat
Never stage anything from game/, analysis/ or derived/, game files (.exe .dll .pak .sav and the game's own extensions), decompiled code, disassembly, emulator output or
extracted assets. .gitignore covers the folders: never force-add. Screenshots are always
fine, of the original game and of the port: copy each one out of derived/, compress it
(WebP), caption it where it is used and commit it. Never leave one out for being game material.
Other sessions may edit the repository at the same time:
git add docs/AI.md labels/names.tsv (never git add -A, git add .,
git commit -a);git hash-object -w and
git update-index --cacheinfo), or ask;git diff before you commit.git add with a moved file. After a file is moved, naming its old or new path may stage only part of the move. Then a commit that does not build goes in. After staging, check that
nothing you meant to commit is still unstaged (git status --short, look for lines that do
not start with a letter in the first column) and read git diff --cached --stat.A subject in the imperative, at most 72 characters (Trace the citizen job choice), and a body
that says what was traced, measured or reimplemented and how it was checked. Then:
git status --short # check for your own unfinished changes
git show --stat HEAD # confirm only your slice landed
Commit only the files or hunks from your slice. If you worked on a branch or in a worktree,
merge that commit into the local main branch before hand-off. If you started on main, the
commit is already integrated. Never leave completed, merge-ready work uncommitted or waiting in
a branch to be merged. If a conflict or required gate prevents integration, record the exact
blocker in the hand-off and mark the slice as not landed.
After integration, update local main from its remote and push it, following the project's
workflow. If the rebase or push conflicts in files you did not touch, stop and report the exact
blocker; do not rewrite or stage another session's work.
When a version is ready for players, docs/OUTPUTS.md lists what to release and how: programs
for each system built by CI from the tag, a browser version, a website. When the slice reached
a milestone, write its diary entry on the project's site (re-site) before you commit.
Two or three lines: the commit, what landed, what is verified, and the next open item.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tanepiper/game-frame --plugin gameframe16 skills in this plugin
/re-browseBuild and grow a resource viewer for a game - first the catalogue (tools/formats/catalog.py, a static HTML page and JSON manifest of every file, its kind, entropy, hex and what the Python decoders make of it, with pictures), then the project's own viewer app on the port's readers (pictures, palettes, sound, 3D models, text, hex; native and browser; a file output mode for agents). Use at the start of a project, right after the inventory, and after every new decoder, so the person and the agent can check decoded content by looking at it./re-cleanroomRun a source-visible specification and source-blind implementation workflow when a project wants independent reimplementation from a neutral behavior contract./re-emulateRun individual functions from a game's Windows x64 binaries (tools/emu/pe_emu.py), 32-bit x86 Windows binaries (tools/emu/pe32_emu.py) or 16-bit DOS/NE programs (tools/emu/dos_emu/) under the Unicorn emulator to capture exact ground truth for chosen inputs, and record the calls they make (random draws) with call_trace.py. Use for anything a reimplementation must match bit for bit - random number generators, maths, procedural generation, simulation steps, pathfinding, parsers - instead of trusting the pseudocode./re-formatDecode a game's data files - package/archive containers, compressed entries, resource and asset formats, save games - by finding the code that reads them, prototyping a decoder with tools/formats/reader.py, proving it against every file of its type with validate.py (all bytes consumed), then porting it. Use when a file type is not yet understood or a decoder fails on some files./re-ghidraDecompile a game's binaries with Ghidra in headless mode and work with the result as text - the full export (decomp.c, functions, strings, imports, exports), queries with decomp_query.py, one-off decompiles of functions Ghidra missed, vtable and reference listings, constants read from the binary, and checks against the disassembly. Use whenever you need pseudocode for a native binary, including 16-bit DOS (MZ) and NE programs./re-inventoryFirst look at a game's files (Windows PE, or DOS MZ/NE/LE executables) - which binaries hold the game's own code, which engine and middleware it uses, whether it is native, managed, scripted or packed, which data containers and save files exist - and record it in docs/FINDINGS.md; then read the manual and the program's long strings into docs/lore.md, which says what each system is for. Use at the start of a project, or when a new binary or file type turns up.Other plugins' skills for the same job