# Send struct-offset-analyzer to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "struct-offset-analyzer",
    "name": "struct-offset-analyzer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/LittleEnough/struct-offset-analyzer",
    "canonicalUrl": "https://clawhub.ai/LittleEnough/struct-offset-analyzer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/struct-offset-analyzer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=struct-offset-analyzer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "struct-offset-analyzer",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T17:58:30.010Z",
      "expiresAt": "2026-05-19T17:58:30.010Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=struct-offset-analyzer",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=struct-offset-analyzer",
        "contentDisposition": "attachment; filename=\"struct-offset-analyzer-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "struct-offset-analyzer"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/struct-offset-analyzer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/struct-offset-analyzer",
    "downloadUrl": "https://openagent3.xyz/downloads/struct-offset-analyzer",
    "agentUrl": "https://openagent3.xyz/skills/struct-offset-analyzer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/struct-offset-analyzer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/struct-offset-analyzer/agent.md"
  }
}
```
## Documentation

### struct-offset-analyzer

Statically analyze the memory offsets of C language struct members without needing to run code.

### Use Cases

Locating struct members during reverse engineering
Confirming memory layouts during debugging
Analyzing data structures in security research
Understanding struct field positions in binary analysis

### 1. Locate Struct Definition

# Search for struct definition
grep -n "struct xxx_st {" **/*.h
grep -n "typedef struct" **/*.h

### 2. Collect Type Information

Find definitions for all member types:

Nested structs
Enum types
typedef aliases
Constant definitions (e.g., #define EVP_MAX_MD_SIZE 64)

### 3. Calculate Alignment Rules

TypeSize (64-bit)Alignment Requirementchar/unsigned char11short22int/uint32_t44long/size_t/pointer88unsigned char[N]N1 (no padding needed)enumusually 44structdepends on membersaligned to largest member

Key Rules:

Member offset must be a multiple of its size
unsigned char arrays are 1-byte aligned, no padding required
Overall struct size is aligned to the size of its largest member
Padding bytes count toward offsets

### 4. Output Offset Table

Use hexadecimal representation for offsets, format:

| Offset(0x) | Member | Type | Size |
|------------|--------|------|------|
| 0x00 | field1 | int | 4 |
| 0x04 | *(padding)* | - | 4 |
| 0x08 | field2 | void * | 8 |

### Common Search Patterns

# Find struct member definition
grep -n "struct xxx_st" **/*.h

# Find type definition
grep -n "typedef.*XXX" **/*.h

# Find constant definition
grep -n "#define.*SIZE" **/*.h

# Find enum definition
grep -n "typedef enum" **/*.h

### Example: OpenSSL ssl_st Analysis

Analyzing client_app_traffic_secret member offset:

Locate struct: ssl/ssl_local.h:1068
Find constant: EVP_MAX_MD_SIZE = 64 (include/openssl/evp.h:19)
Calculate layout, note that unsigned char arrays need no padding
Result: offset 0x33c (828 bytes)

### Notes

Confirm target platform (32-bit vs 64-bit)
Note that conditional compilation (#ifdef) may affect struct layout
Check for #pragma pack directives that may change alignment
Union members share the same offset
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: LittleEnough
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T17:58:30.010Z
- Expires at: 2026-05-19T17:58:30.010Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/struct-offset-analyzer)
- [Send to Agent page](https://openagent3.xyz/skills/struct-offset-analyzer/agent)
- [JSON manifest](https://openagent3.xyz/skills/struct-offset-analyzer/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/struct-offset-analyzer/agent.md)
- [Download page](https://openagent3.xyz/downloads/struct-offset-analyzer)