# native-platform-porting

native-platform-porting is a Claude Code skill for moving game and software source code to modern systems without emulation. It activates for legacy ports and replacements for hardware-specific interfaces.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 231 repo stars
- Author: lemiur
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lemiur/Game-Decompilation-Skill-For-Claude/tree/HEAD/.claude/skills/native-platform-porting/SKILL.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/native-platform-porting

## What it does

The skill maps hardware dependencies and outlines native replacements: HAL layers for device-specific calls, drawing commands instead of graphics packets, and filesystem streams in place of sector reads and DMA. It also covers fixed-width types and separating in-memory structures from disk formats.

For a 64-bit build of a project with 32-bit offsets, it recommends keeping disk offsets separate from runtime pointers. The workflow moves one subsystem at a time, rebuilding after each change and checking functional parity.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lemiur/Game-Decompilation-Skill-For-Claude --skill native-platform-porting -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/native-platform-porting/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/native-platform-porting/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lemiur/Game-Decompilation-Skill-For-Claude --skill native-platform-porting -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/native-platform-porting/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lemiur/Game-Decompilation-Skill-For-Claude --skill native-platform-porting -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/native-platform-porting/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lemiur/Game-Decompilation-Skill-For-Claude .claude/skills/native-platform-porting
```

2. **Manually: put the files in place**
- File: `.github/skills/native-platform-porting/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lemiur/Game-Decompilation-Skill-For-Claude --skill native-platform-porting -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lemiur/Game-Decompilation-Skill-For-Claude --path .claude/skills/native-platform-porting
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/native-platform-porting/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lemiur/Game-Decompilation-Skill-For-Claude/tree/HEAD/.claude/skills/native-platform-porting/SKILL.md

## When to use it
- port console game code to Windows, Linux, or macOS
- replace register access with native APIs
- separate file formats from runtime structures
- decouple game updates from hardware interrupts

## Example prompts
- Port the PlayStation game source to Windows without emulation.
- Replace the graphics hardware calls with a native interface and outline a HAL.
- Prepare this legacy C++ project for a 64-bit build.

## Similar
- [atb-game-porting](https://affpapa.org/en/nevibecode/skills/atb-game-porting.md) — skill · ★ 369 repo stars
- [blitz3d-decomp](https://affpapa.org/en/nevibecode/skills/blitz3d-decomp.md) — skill · 430 installs
- [mobile-security](https://affpapa.org/en/nevibecode/skills/gmh5225-mobile-security.md) — skill · 206 installs
- [mobile-platform-native-capabilities-integrate](https://affpapa.org/en/nevibecode/skills/mobile-platform-native-capabilities-integrate.md) — skill · 4800 installs
- [native-feel-cross-platform-desktop](https://affpapa.org/en/nevibecode/skills/native-feel-cross-platform-desktop.md) — skill · 664 installs
- [porting-another-repository](https://affpapa.org/en/nevibecode/skills/porting-another-repository.md) — skill · ★ 1636 repo stars

From the same set: [lemiur/game-decompilation-skill-for-claude](https://affpapa.org/en/nevibecode/by/lemiur/game-decompilation-skill-for-claude.md) — 7 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
