# decomp-code-rules

decomp-code-rules is a Claude Code skill that defines coding standards for matching-decompilation source. It helps distinguish genuine idioms from fakematches while ensuring byte-accuracy.

- 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/decomp-code-rules/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/decomp-code-rules

## What it does

This skill manages code structure, naming, and layout during reverse-engineering tasks. It categorizes rules based on their impact on binary output, distinguishing trivial formatting from the strict requirements needed for verified function matching.

It operates on the principle that identical bytes are the baseline, but source must also reflect the author's original style. The skill verifies if a function is a genuine match or a fakematch by testing if it passes the reader test.

Successful integration requires an `AGENTS.md` file within your project to define the compiler dialect and specific style constraints. Without this profile, standard rules might conflict with target requirements.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/decomp-code-rules/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/decomp-code-rules
```

2. **Manually: put the files in place**
- File: `.github/skills/decomp-code-rules/SKILL.md`

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/decomp-code-rules/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/decomp-code-rules/SKILL.md

## When to use it
- distinguish genuine functions from fakematches
- validate code against original style guidelines
- organize type and global variable declarations

## Example prompts
- Review this function against rules R17 and R18
- Does this implementation match the criteria in section F?

## Similar
- [blitz3d-decomp](https://affpapa.org/en/nevibecode/skills/blitz3d-decomp.md) — skill · 430 installs
- [binary-analysis-patterns](https://affpapa.org/en/nevibecode/skills/binary-analysis-patterns.md) — skill · 10900 installs
- [reverse-engineer-anything](https://affpapa.org/en/nevibecode/skills/reverse-engineer-anything.md) — skill · 18800 installs
- [rev-symbol](https://affpapa.org/en/nevibecode/skills/rev-symbol.md) — skill · 2000 installs
- [rev-struct](https://affpapa.org/en/nevibecode/skills/rev-struct.md) — skill · 2000 installs
- [ghidra](https://affpapa.org/en/nevibecode/skills/ghidra.md) — skill · 706 installs

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
