# permute

permute is a Claude Code skill that searches compiler states for a reconstructed function and turns differences into source-level hypotheses. It runs after reconstruction, for diagnosed register or instruction-scheduling residue.

- 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/permute/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/permute

## What it does

permute searches a bounded set of compiler states for a reconstructed function that still differs from the original. It keeps several distinct high-scoring results, compares them with the original function, and helps explain the differences through possible source changes.

The search targets classified register or scheduling mismatches; differences in calls or branches point to other reconstruction work. The project needs an `AGENTS.md` guide, or a completed project adapter from `AGENTS-template.md`. Temporary machinery from an exact result must not be copied into source. Run `match <unit>` and search again to assess each supported change. The search does not run test suites.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

## When to use it
- search for higher-scoring compiler states for a reconstructed function
- classify several mismatches by register or scheduling residue
- derive defensible source changes from differences between compiler states

## Example prompts
- Search compiler states for the reconstructed function with a register mismatch.
- Compare the best distinct states and explain which source changes could account for the difference.
- Classify these mismatches and separate scheduling residue from branch changes.

## Similar
- [build-fix](https://affpapa.org/en/nevibecode/skills/build-fix.md) — skill · 4000 installs
- [mojo-syntax](https://affpapa.org/en/nevibecode/skills/mojo-syntax.md) — skill · 3100 installs
- [modern-cpp](https://affpapa.org/en/nevibecode/skills/modern-cpp.md) — skill · 1800 installs
- [llvm](https://affpapa.org/en/nevibecode/skills/llvm.md) — skill · 1000 installs
- [gcc](https://affpapa.org/en/nevibecode/skills/gcc.md) — skill · 804 installs
- [react-19](https://affpapa.org/en/nevibecode/skills/react-19.md) — skill · 675 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
