reconstruct-types

Reconstructs binary type layouts from CUDA C++ IR and MCU assembly IR; outputs CUDA-C++-compatible .h and .c files.

17|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/marcosd4h/DeepExtractRuntime --skill reconstruct-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reconstruct-types
Source: https://github.com/marcosd4h/DeepExtractRuntime/tree/main/skills/reconstruct-types
Command: npx skills add https://github.com/marcosd4h/DeepExtractRuntime --skill reconstruct-types

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Reconstructs C/C++ type layouts from IDA Pro decompiled code, enabling developers to understand binary data structures precisely.

Core Features & Use Cases

  • Scans all functions in a module using both decompiled C++ and assembly data to reconstruct struct and class layouts.
  • Generates compilable header files with field names, offsets, sizes, and padding annotations.
  • Maps vtables and mangled names to class hierarchies for accurate type information and lifting.

Quick Start

Run the reconstruct-types workflow on a module to generate headers for all discovered types.

Frequently Asked Questions about reconstruct-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reconstruct C++ struct layouts from IDA Pro decompiled code?

To reconstruct C++ struct layouts from IDA Pro, this Skill scans module functions and merges decompiled output with ground-truth assembly data. It generates portable header files containing precise field offsets, sizes, and padding annotations.

Can I generate C/C++ headers from mangled names in decompiled binary code?

Yes, you can generate compilable C/C++ headers from mangled names by mapping vtables and class hierarchies. The workflow applies module-wide analysis to infer relationships, producing accurate type definitions for binary analysis.

What is the best way to infer class hierarchies and padding from assembly data?

Inferring class hierarchies and padding from assembly data is done by validating decompiled layouts against ground-truth assembly sizes. This approach ensures precise struct reconstruction and accurate padding annotations for downstream lifting workflows.

Do I need assembly data to reconstruct types from decompiled binary code?

Reconstructing types requires decompiled C++ output and ground-truth assembly data from IDA Pro. You do not need external dependencies, as the workflow relies entirely on these inputs to validate field sizes and generate headers.

Why does my generated header have incorrect field offsets for C++ classes?

Incorrect field offsets in generated headers occur when decompiled layouts lack ground-truth assembly validation. This Skill prevents this by merging assembly-derived sizes with mangled-name data to accurately infer padding and class hierarchies.

How do I use reconstructed headers for binary analysis and lifting workflows?

Reconstructed headers are primarily used for downstream lifting and binary analysis workflows. By providing precise struct and class layouts with validated field offsets, the generated files enable accurate code reconstruction and type mapping.