Scaffolding
dotnet/efcore
Implementation details for EF Core scaffolding (reverse engineering).
Decompile NES ROM files (.nes) into C projects that can be rebuilt with dotnes.
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jonathanpeppers/dotnes nes-decompile --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/nes-decompile .claude/skills/nes-decompile && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .claude/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompileType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jonathanpeppers/dotnes nes-decompile --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/nes-decompile .agents/skills/nes-decompile && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .agents/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jonathanpeppers/dotnes nes-decompile --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/nes-decompile .cursor/skills/nes-decompile && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .cursor/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jonathanpeppers/dotnes.git --path .github/skills/nes-decompile--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jonathanpeppers/dotnes nes-decompile --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/nes-decompile .gemini/skills/nes-decompile && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .gemini/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jonathanpeppers/dotnes nes-decompileInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/nes-decompile .github/skills/nes-decompile && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .github/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jonathanpeppers/dotnes --skill nes-decompile -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jonathanpeppers/dotnes nes-decompile --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jonathanpeppers/dotnes.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/nes-decompile .opencode/skills/nes-decompile && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nes-decompile" agent skill from https://github.com/jonathanpeppers/dotnes/tree/main/.github/skills/nes-decompile into .opencode/skills/nes-decompile/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nes-decompile", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nes-decompileDecompile NES ROM files (.nes) into C projects that can be rebuilt with dotnes.
Nes Decompile is an agent skill from jonathanpeppers/dotnes. Decompile NES ROM files (.nes) into C projects that can be rebuilt with dotnes. Use this skill whenever the user wants to decompile a ROM, reverse-engineer a .nes file, convert a ROM to C, extract code from a NES ROM, create a project from an existing ROM, or do a round-trip test (transpile → decompile → retranspile). Also use when the user says things like "decompile this ROM", "turn this .nes into C", "extract the code", "what does this ROM do", "reverse engineer", or "round-trip". This is the high-level…
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Reverse engineering and malware. It works with C# and .NET. The repository describes itself as: .NET for the NES game console. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 42ca23d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dotnetpythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nes Decompile loads about 1.6k tokens when it runs. Until then it costs about 152 tokens; SKILL.md has 527 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jonathanpeppers/dotnes at commit 42ca23d, republished under its MIT licence (© jonathanpeppers). 527 words, ~1,622 tokens.
.claude/skills/nes-decompile/SKILL.md (or your agent's skills folder).Decompile .nes ROM files into complete C# projects that can be rebuilt through dotnes.
The decompiler lives at src/dotnes.decompiler/ and is a .NET CLI tool.
dotnet run --project src/dotnes.decompiler -- <input.nes> [output-directory]<input.nes> — Path to the NES ROM file (required)[output-directory] — Where to write the C# project (optional; defaults to the ROM filename without extension)Examples:
# Decompile a sample ROM (build it first if needed)
cd samples/hello && dotnet build && cd ../..
dotnet run --project src/dotnes.decompiler -- samples/hello/bin/Debug/net10.0/hello.nes hello-decompiled
# Decompile any .nes ROM
dotnet run --project src/dotnes.decompiler -- path/to/game.nes game-decompiled
# Decompile with default output directory (uses ROM filename)
dotnet run --project src/dotnes.decompiler -- myrom.nesThe decompiler generates a complete, buildable C# project:
| File | Description |
|---|---|
Program.cs | Decompiled C# source with recovered NESLib API calls |
{name}.csproj | MSBuild project with NES configuration from ROM metadata |
chr_generic.s | CHR ROM data as ca65 assembly (only if ROM has CHR banks) |
The decompiler recognizes these NESLib API calls:
| Category | Functions |
|---|---|
| Palette | pal_col(palette, color) |
| VRAM | vram_adr(NTADR_A(x, y)), vram_write("string") |
| PPU control | ppu_on_all(), ppu_on_bg(), ppu_on_spr(), ppu_off() |
| Sprites/OAM | oam_clear(), oam_size(), oam_hide_rest() |
| CHR banking | bank_spr(), bank_bg() |
| Input | pad_poll(0) |
| Timing | delay(frames), waitvsync() |
| Random | rand8(), set_rand() |
String literals in vram_write() are recovered from ROM data when the bytes are printable ASCII.
VRAM addresses passed to vram_adr() are decompiled back to NTADR_A(x, y) macro form when they match the nametable pattern 0x2000 + y*32 + x.
Build the sample, then decompile its ROM output:
# Build the sample
cd samples/hello && dotnet build && cd ../..
# Decompile the ROM
dotnet run --project src/dotnes.decompiler -- samples/hello/bin/Debug/net10.0/hello.nes hello-decompiled
# Inspect the output
cat hello-decompiled/Program.csVerify the decompiler produces code that builds back to an equivalent ROM:
# 1. Build original sample
cd samples/hello && dotnet build && cd ../..
# 2. Decompile the ROM
dotnet run --project src/dotnes.decompiler -- samples/hello/bin/Debug/net10.0/hello.nes hello-roundtrip
# 3. Build the decompiled project
cd hello-roundtrip && dotnet build && cd ..
# 4. Compare the two ROMs
python scripts/compare_rom.py samples/hello/bin/Debug/net10.0/hello.nes hello-roundtrip/bin/Debug/net10.0/hello.nesIf the round-trip produces an identical ROM, the decompiler recovered all observable behavior.
Any iNES-format ROM can be parsed, but the decompiler only recognizes dotnes/neslib patterns:
dotnet run --project src/dotnes.decompiler -- external-game.nes game-output
cat game-output/Program.csFor ROMs not built with dotnes, the output will contain fewer recognized API calls and more comments for unrecognized subroutines.
Use the decompiler's console output to quickly check ROM properties:
dotnet run --project src/dotnes.decompiler -- myrom.nes 2>&1 | Select-Object -First 6This shows PRG/CHR bank counts, mapper number, mirroring mode, and interrupt vectors.
The decompiler uses a three-phase algorithm:
main() by scanning the initlib block for the first JSR to an address past the built-insJMP to self)LDA #imm / JSR pusha → 8-bit argument pushLDA #lo / LDX #hi / JSR pushax → 16-bit pointer pushLDX #hi / LDA #lo / JSR <sub> → call with 16-bit register argumentLDA #imm / JSR <sub> → call with immediate argumentThe decompiler reads ROM metadata and sets appropriate MSBuild properties:
| Property | Condition | Example |
|---|---|---|
NESMapper | Mapper ≠ 0 | <NESMapper>1</NESMapper> |
NESPrgBanks | PRG banks ≠ 2 | <NESPrgBanks>4</NESPrgBanks> |
NESChrBanks | CHR banks ≠ 1 | <NESChrBanks>2</NESChrBanks> |
NESVerticalMirroring | Mirroring is vertical | <NESVerticalMirroring>true</NESVerticalMirroring> |
© jonathanpeppers, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/nes-decompile of jonathanpeppers/dotnes.
Open the folder on GitHubat commit 42ca23d
Nes Decompile next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nes Decompile this skilljonathanpeppers/dotnes | 780 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Scaffoldingdotnet/efcore | 15k | — | ~165 | Automated safety check: Pass | MIT | |
| Dotnet Inspect Decompilerrichlander/dotnet-inspect | 151 | — | ~2.4k | Automated safety check: Pass | None | |
| Dotnet Decompilerptn1411/skill | 219 | — | ~929 | Automated safety check: Notes | None | |
| Ctf Malwareljagiello/ctf-skills | 3.4k | 1 repos | ~2.1k | Automated safety check: Notes | MIT | |
| Patch Diff AnalyzerHacktronAI/skills | 115 | — | ~2.2k | Automated safety check: Pass | MIT |
dotnet/efcore
Implementation details for EF Core scaffolding (reverse engineering).
richlander/dotnet-inspect
Reconstruct a method or type as C and IL — decompiled source, annotated source with hidden facts, raw IL, fidelity levels, and IL-offset lookup.
ptn1411/skill
Automated .NET/C decompilation and security analysis. An agent skill from ptn1411/skill.
ljagiello/ctf-skills
Provides malware analysis and network traffic techniques for CTF challenges.
HacktronAI/skills
Specialized in reverse-engineering compiled binaries (JARs, DLLs).
hypnguyen1209/offensive-claude
A skill your agent uses when reverse-engineering or detecting malware — static triage + capa/YARA-X, emulation/DBI/.NET unpacking, dynamic/fileless/Volatility 3 memory analysis, C2 config extraction…
jonathanpeppers/dotnes
Review dotnes pull requests against established repository rules.
jonathanpeppers/dotnes
Disassemble and debug NES ROM files (.nes) produced by the dotnes transpiler.
jonathanpeppers/dotnes
Iterate on a GitHub pull request from a coding agent (like Copilot coding agent) until it's ready for human review.
Categories
Decompile NES ROM files (.nes) into C projects that can be rebuilt with dotnes. Nes Decompile is an agent skill from jonathanpeppers/dotnes.nes) into C projects that can be rebuilt with dotnes.
Nes Decompile fits situations like: the user wants to decompile a ROM; reverse-engineer a .nes file; convert a ROM to C; extract code from a NES ROM.
Run `npx skills add jonathanpeppers/dotnes --skill nes-decompile -a claude-code`. Or copy the skill folder (.github/skills/nes-decompile in jonathanpeppers/dotnes) into .claude/skills/nes-decompile in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jonathanpeppers/dotnes --skill nes-decompile -a codex`. Or copy the skill folder (.github/skills/nes-decompile in jonathanpeppers/dotnes) into .agents/skills/nes-decompile in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jonathanpeppers/dotnes --skill nes-decompile -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nes-decompile, .gemini/skills/nes-decompile, .github/skills/nes-decompile and .opencode/skills/nes-decompile in your project.
Going by SKILL.md and its folder, Nes Decompile needs the command-line tools its instructions call (dotnet and python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Nes Decompile is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nes Decompile: Scaffolding (dotnet/efcore, 15k stars), Dotnet Inspect Decompiler (richlander/dotnet-inspect, 151 stars), Dotnet Decompiler (ptn1411/skill, 219 stars) and Ctf Malware (ljagiello/ctf-skills, 3.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jonathanpeppers (a GitHub user) maintains it in jonathanpeppers/dotnes, which has 780 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 23, 2026.
Source: jonathanpeppers/dotnes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.