📦 struct-offset-analyzer — 结构体偏移分析

v1.0.1

通过静态代码读取,自动计算 C 结构体各成员在内存中的偏移量,生成完整内存布局,帮助开发者快速理解数据结构大小与对齐,定位内存对齐问题,提升底层代码调试与优化效率。

2· 407·0 当前·0 累计
littleenough 头像by @littleenough (LittleEnough)
下载技能包
最后更新
2026/2/26
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
NULL
评估建议
This skill is an instruction-only guide that will tell an agent how to search your codebase and compute struct offsets; it does not fetch code or require credentials. Before using it: (1) be aware the alignment/size table is an oversimplification—verify results against the target compiler/ABI (use offsetof/sizeof in a build or compiler docs); (2) take into account conditional compilation and #pragma pack in the target source; and (3) remember the skill's grep-based steps will scan your repositor...
详细分析 ▾
用途与能力
The name/description (static C struct offset analysis) match the SKILL.md workflow: searching headers, collecting type info, and applying alignment rules. No unrelated credentials, binaries, or installs are requested.
指令范围
Instructions stay within scope (search local source files, compute offsets, consider #ifdef/#pragma). Minor technical inaccuracies and oversimplifications appear in the alignment rules (e.g., text says 'Member offset must be a multiple of its size' when it should reference alignment requirements), but these are correctness issues rather than evidence of malicious behavior.
安装机制
No install spec and no code files are included; this is instruction-only so nothing is written to disk or fetched at install time.
凭证需求
The skill requests no environment variables, credentials, or config paths — proportional to an offline, static-analysis guide.
持久化与权限
always is false, the skill is user-invocable and does not request persistent presence or modify other skills or system settings.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

版本

latestv1.0.12026/2/24

NULL

无害

安装命令

点击复制
官方npx clawhub@latest install struct-offset-analyzer
镜像加速npx clawhub@latest install struct-offset-analyzer --registry https://cn.longxiaskill.com
数据来源ClawHub ↗ · 中文优化:龙虾技能库