Struct Offset Analyzer
Analyzes game files to pinpoint the exact memory offsets of structs, crucial for reverse engineering and modding.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add struct-offset-analyzer npx -- -y @trustedskills/struct-offset-analyzer
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"struct-offset-analyzer": {
"command": "npx",
"args": [
"-y",
"@trustedskills/struct-offset-analyzer"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes C structs and provides the offset of each member from the beginning of the struct. It's useful for understanding memory layout, reverse engineering, or when working with binary data structures. The skill can handle complex nested structs and arrays within structs.
When to use it
- Determine the memory offsets of fields in a C structure for debugging purposes.
- Analyze the layout of a binary file format that uses C-like structures.
- Generate code snippets for accessing struct members by offset.
- Understand how data is organized within a specific data structure.
Key capabilities
- Handles nested structs and arrays.
- Calculates member offsets from the beginning of the struct.
- Provides information about complex C struct layouts.
Example prompts
- "Analyze this C struct:
struct MyStruct { int x; double y; char z[10]; }" - "What are the offsets for members in this structure definition?
typedef struct { long a; float b; short c;}my_type;" - “Give me the offset of 'z' in this struct:
struct Example { int a; char *b; struct Inner { int x; } c; }”
Tips & gotchas
The skill requires valid C struct definitions as input. Incorrect or incomplete definitions will lead to inaccurate results.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.