AGENT SKILL

llm-decompile-verify

Use when recovering readable, COMPILABLE C from a stripped binary or a decompiler's pseudo-C and you refuse to trust the model's own claim that the decompilation is correct. The decompilation is only "done" when the regenerated source RECOMPILES and RE-EXECUTES identically to the original on the same inputs (the recompile-verify round-trip). The model runs on HF Inference or cloud-hub GPU; the compile-and-run oracle runs in a cloud-hub Modal sandbox or locally. NOT for the table-stakes "LLM reads Ghidra/IDA pseudo-C" flow (Claude+ghidra-mcp already do that) and NOT for pure static mapping (use game-re-binary) - the gem here is the anti-faking round-trip gate, not the reading. Cite SK2Decompile (arXiv 2509.22114) and LLM4Decompile.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
llm-decompile-verify
origin
user
description
Use when recovering readable, COMPILABLE C from a stripped binary or a decompiler's pseudo-C and you refuse to trust the model's own claim that the decompilation is correct. The decompilation is only "done" when the regenerated source RECOMPILES and RE-EXECUTES identically to the original on the same inputs (the recompile-verify round-trip). The model runs on HF Inference or cloud-hub GPU; the compile-and-run oracle runs in a cloud-hub Modal sandbox or locally. NOT for the table-stakes "LLM reads Ghidra/IDA pseudo-C" flow (Claude+ghidra-mcp already do that) and NOT for pure static mapping (use game-re-binary) - the gem here is the anti-faking round-trip gate, not the reading. Cite SK2Decompile (arXiv 2509.22114) and LLM4Decompile.

03 SKILL.md 正文

LLM-Decompile + Recompile-Verify Loop

The one idea

Neural decompilers (LLM4Decompile, Nova, SK2Decompile) turn a decompiler's pseudo-C into clean, human-readable C. The failure mode of every one of them - and of a naive "ask Claude to clean up the Ghidra output" flow - is plausible-but-wrong C: the model emits code that looks like a faithful reconstruction and claims success, but silently changed a constant, a sign, a loop bound, or an operator.

This skill refuses the model's opinion as the acceptance signal. The decompilation is done only when the regenerated source ROUND-TRIPS the compiler:

  1. re-compilability - the emitted C actually compiles with the target toolchain, and
  2. re-executability - the recompiled function produces byte-identical output to the original on a shared set of test inputs.

Re-executability is the metric SK2Decompile optimizes and reports; it is the only faking-proof definition of "correct decompilation." Reading the pseudo-C is table stakes (that is what game-re-binary + ghidra-mcp already do, and what the hunt flagged as low-novelty: GhidrOllama / aidapal / Gepetto / JADX-AI-MCP). The gem is this gate.

Anti-faking creed: a green claim must be backed by external, executable evidence, never by the model asserting its own output looks right. This skill is that evidence for decompilation.

When to use / not

Use it Do NOT use it
You need compilable C back from a stripped function / .o / .so and correctness matters You only need to understand what a function does (use game-re-binary, radare2, ghidra-mcp directly)

Rides the existing bus (anti-overfit)

Pipeline

Skeleton-then-detail (SK2Decompile)

GPU execution (HF + cloud-hub)

Verified recipe (the recompile-verify oracle)

The done-gate contract (advisory / shadow - council C5)

Metrics (report these, per SK2Decompile / LLM4Decompile)

Pitfalls / honest limits

References

04 同仓库更多 Skills

Prekzursil
Prekzursil/agent-skills-toolchain

clarify-requirements

Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

openmm-md

Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

visual-review

Take screenshots of web pages and UI using Playwright for visual review and iteration

演示文稿测试与质量
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

status

Diagnostic status report — shows metaswarm installation state, project setup, and potential issues

★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

start

Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work

Skill与智能体开发
★ 0
Prekzursil
Prekzursil/agent-skills-toolchain

setup

Interactive project setup — detects your project, configures metaswarm, writes project-local files

★ 0