th08: Skill for Codex

.agents/skills/th08-re/SKILL.md

th08-re is a skill for Codex from N0zoM1z0/th08. It costs 69 tokens per session (1,184 once invoked), scanned A, original, MIT.

A reconstruction workflow for recovering bounded functions from the original Japanese 1.00d executable of TH08, a specific version of a Japanese game. It uses the executable, related source code, and clearly labelled supporting evidence.

In plain words
What is it for?
Use it for TH08 disassembly, recovering function interfaces, restoring layouts and names, moving recovered code into source, and implementing verified functions.
Why use it?
Reverse-engineering an executable can lead to uncertain function boundaries, names, and types; this workflow requires target checks and records what is observed, inferred, or unknown.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md; $skill-name invocation.

This is N0zoM1z0/th08's own configuration. It tells Codex how to work on th08 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything th08 configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/verify-target.py.

Reuse

Borrowing it

Nothing to install: this file belongs to N0zoM1z0/th08. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/N0zoM1z0/th08/main/.agents/skills/th08-re/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/N0zoM1z0/th08

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for th08-re

README.md
[![agentmods](https://agentmods.dev/badge/skills/n0zom1z0/th08/th08-re/github.svg)](https://agentmods.dev/skills/n0zom1z0/th08/th08-re)
Your own site
<a href="https://agentmods.dev/skills/n0zom1z0/th08/th08-re"><img src="https://agentmods.dev/badge/skills/n0zom1z0/th08/th08-re/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for th08-re

Your own site · 80×15
<a href="https://agentmods.dev/skills/n0zom1z0/th08/th08-re"><img src="https://agentmods.dev/badge/skills/n0zom1z0/th08/th08-re.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,184 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.01184
Opus 5 $0.00034 $0.00592
Sonnet 5 $0.00014 $0.00237
Haiku 4.5 $0.00007 $0.00118

Measured 11d ago against content hash d9ef9827c592, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

th08-re scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/th08-re/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TH08 reconstruction

Work only against the target in config/target.toml: Japanese 1.00d, SHA-256 330fbdbf58a710829d65277b4f312cfbb38d5448b3df523e79350b879213d924, image base 0x00400000, entry 0x004A619E, and .text 0x004020000x004B3B77.

Preflight

  1. Read AGENTS.md, docs/ARCHITECTURE.md, docs/RE_WORKFLOW.md, the relevant config/mapping.csv and config/reccmp-functions.csv rows, and docs/RE_HANDOFF.md.

  2. Run:

    python3 scripts/verify-target.py
    python3 scripts/validate-tracking.py --require-target
    
  3. Fail closed on IDA until its active TH08 database passes docs/IDA_MCP.md. The canonical SHA belongs to resources/th08.exe; if IDA reports a different loader/database hash, establish mapped-image identity with the required metadata and multi-point read-only byte samples. Use verified-target objdump or the dedicated headless Ghidra import until then. Never use IDA semantic evidence as a matching claim.

  4. Confirm config/claims.csv is header-only and keep one bounded writable scope. Reconcile mapping/Ghidra boundaries against complete target control flow.

Recover and implement

  1. Record facts as Observed, Inferred, or Unknown. Target bytes, imports, relocations, and directly decoded accesses are observations.
  2. Inspect the full function plus callers, callees, adjacent code, strings, globals, access widths, stack cleanup, and saved registers. Prioritize coherent high-ROI clusters in one translation unit: a sub-0x20 getter or predicate may unlock a nearby callback's REL32, and a neighboring CutChain often shares the same object profile and chain globals. Investigate getter, callback, then CutChain; adjacency is a prioritization signal, not proof of boundaries, ownership, or semantics.
  3. Use the inherited TH08 source as a hypothesis when it is stubbed or incomplete. Use TH06 and TH07 only as semantic or compiler corroboration.
  4. Recover calling convention, return behavior, field offsets, side effects, and exceptional paths before shaping source. For a large switch dispatcher that is not exact yet, audit source presence with three independent surfaces: enumerate every primary and nested jump- table slot including shared/default handlers; compare the target direct-call destination multiset with the built function's REL32 multiset; and reconcile returns, fallthroughs, field offsets, and access widths. This can justify implemented.csv, never matches.csv. RunEcl is already exact. Its opcode audit is retained at scripts/analysis/historical/runecl-audit-dispatch.py only for reproducing the completed investigation; do not select it as new work from stale notes.
  5. Implement the smallest coherent function in its existing module. Do not manufacture behavior, paste decompiler output, patch target bytes, or use assembly/byte arrays/padding to force code shape. If a semantically exact leaf differs only by compiler profile or epilogue, inspect its address cluster and callers before reshaping the body: a member defined for one subsystem may have been emitted in another subsystem's translation unit. Preserve the class owner while testing the target-proven TU/profile, as with GameManager::SetYoukaiGauge in Player.obj.
  6. Treat shared layouts, canonical mapping names, config/implemented.csv, and config/match-units.toml as high-risk changes. Re-run every affected exact unit before committing them. Before publishing aggregate totals after a shared header/layout/compiler/object-graph change, run python3 scripts/analysis/verify-exact-units.py --all; its cold build is part of the evidence, and --reuse-build is not sufficient.
  7. Use $th08-matching for the focused VC7 build and strict comparison.

Read the full file on GitHub · 95 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 95 lines · 69 tokens per session scan A d9ef9827c592

Subscribe to this mod's changes

th08-re is a skill published in the GitHub repository N0zoM1z0/th08 (92 stars, last pushed today), licensed MIT. It adds 69 tokens to every session and 1,184 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

idapython

IDA Pro Python scripting for reverse engineering. Use when writing IDAPython scripts, analyzing binaries, working with IDA's API for disassembly, decompilation (Hex-Rays), type systems, cross-references, functions, segments, or any IDA database manipulation. Covers ida modules (50+), idautils iterators, and common…

mrexodia/ida-pro-mcp · 77 tokens

pwn-aws-gamelift

Drive PWN::AWS::GameLift from pwneval.

0dayInc/pwn · 21 tokens

bg3-steam-launcher

Launch Baldur's Gate 3 through Steam on macOS and load saved games using macos-automator and peekaboo MCP servers. Designed for testing bg3se-macos (Script Extender) development. Use when: (1) launching BG3 from Steam, (2) loading a BG3 saved game, (3) testing SE mod injection, (4) user asks to "start BG3", "load my…

tdimino/bg3se-macos · 129 tokens

reverse-engineering-binaries-with-ghidra

Uses Ghidra to disassemble and decompile a binary, navigate to key routines via imports and strings, annotate decompiled code, and run headless scripts to automate extraction of C2, crypto, and config. Activates for requests to reverse engineer with Ghidra, decompile a binary, or script Ghidra headless analysis.

meltedinhex/analyst-ai-pack · 80 tokens

analyzing-android-dex-malware

Reverses Android malware: unpacking APKs, decompiling DEX bytecode to readable Java, auditing the manifest for abused permissions and components, and locating dynamically loaded or native payloads. Activates for requests to analyze an APK, decompile DEX, or investigate a suspicious Android app.

meltedinhex/analyst-ai-pack · 71 tokens

analyzing-dotnet-malware-internals

Reverses .NET/managed malware: decompiling MSIL back to C#, defeating common .NET protectors and string encryptors, and tracing reflection-based loaders to recover the real payload. Activates for requests to analyze a .NET sample, decompile MSIL, or unpack a managed loader.

meltedinhex/analyst-ai-pack · 72 tokens