Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add majiayu000/spellbook --skill claude-code-reversegit clone --depth 1 https://github.com/majiayu000/spellbookWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/majiayu000/spellbook/claude-code-reverse)<a href="https://agentmods.dev/skills/majiayu000/spellbook/claude-code-reverse"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/claude-code-reverse/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/majiayu000/spellbook/claude-code-reverse"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/claude-code-reverse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00123 | $0.01645 |
| Opus 5.5 | $0.00049 | $0.00658 |
| Sonnet 5.5 | $0.00025 | $0.00329 |
| Haiku 4.5 | $0.00012 | $0.00164 |
Grade A, and why
claude-code-reverse scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Local Binary Reverse
对明确指定的本机目标做证据优先的静态分析。默认只读,不执行目标,也不把“可见字符串”夸大为“已证明运行时行为”。
自主边界
- 可直接执行:读取用户指定的单个本机文件;运行
file、哈希、strings、符号表、依赖表、段表和只读反汇编工具;把分析缓存写入当前用户的私有 cache。 - 先征得同意:运行目标、附加调试器、注入/hook、解包到用户目录、安装分析工具、上传样本、分析未获授权的软件或受保护数据。
- 直接拒绝:绕过许可证、计费或访问控制,提取凭据,制作破解补丁,规避检测,或再分发专有代码/资源。
- 不确定所有权、目标路径或交付问题时先澄清,不要扫描整台机器寻找“可能的目标”。
1. 锁定目标与问题
先记录:
- 精确目标路径或命令名。
- 用户要验证的具体问题,例如 UI 文案来源、功能开关、网络端点、依赖或版本差异。
- 对比版本的两个精确文件(如适用)。
不要把进程名、应用名或猜测路径当成已确认目标。不要运行目标来“看看会发生什么”。
2. 建立文件身份
使用同目录的 extract.sh。它只接受普通文件或可由 command -v 解析的命令,缓存按内容 SHA-256 隔离并存放在 ${XDG_CACHE_HOME:-$HOME/.cache}/claude-code-reverse/。
SKILL_DIR=/path/to/claude-code-reverse
bash "$SKILL_DIR/extract.sh" info --target /absolute/path/to/target
bash "$SKILL_DIR/extract.sh" dump --target /absolute/path/to/target
bash "$SKILL_DIR/extract.sh" search --target /absolute/path/to/target "literal anchor"
bash "$SKILL_DIR/extract.sh" diff --target-a /path/to/v1 --target-b /path/to/v2 "literal anchor"
info 必须先给出规范化路径、文件类型、字节数和 SHA-256。若目标在分析期间发生变化,重新执行 info 和 dump;不要复用旧缓存作结论。
3. 按格式选择只读工具
先用 command -v <tool> 验证工具存在。缺失时报告缺失项,不要悄悄换成会执行目标的方案。
| 格式 | 首选证据 | 可选深入工具 |
|---|---|---|
| Mach-O | file、otool -L、otool -l、nm |
otool -tvV、已安装的反编译器 |
| ELF | file、readelf -h -l -d -s、objdump -x |
objdump -d、已安装的反编译器 |
| PE/COFF | file、objdump -x、ASCII/UTF 字符串 |
objdump -d、已安装的 PE 工具 |
| Wasm | file、wasm-objdump -x |
wasm2wat |
| ZIP/JAR/APK/打包资源 | 先列目录,不落盘解包 | 在用户批准的临时目录中解包后逐件分析 |
不要对不可信目标使用 ldd,因为某些实现可能通过加载器执行代码。不要对大文件直接输出完整反汇编、完整字符串或完整符号表;先用字面锚点缩小范围,把原始大输出留在 cache 或单独 artifact 中。
常见失败信号
strings几乎没有输出:目标可能被剥离、压缩、加密或只是启动器;先检查文件类型和段表,不要据此断言“没有实现”。- 刚 dump 后却提示 cache 不存在:内容哈希已经变化,说明目标文件被更新;重新执行
info和dump,不要复用旧版本结论。 - 同一字符串重复出现:universal/fat binary 可能包含多个架构切片;先按架构检查,不能把重复次数直接解释为调用次数。
- ASCII 搜索无命中:PE 或资源文件可能使用 UTF-16;确认本机
strings实现支持相应编码选项后再查,不要假定跨平台参数一致。
4. 从证据到结论
按以下顺序收敛:
- 用产品文案、端点、配置键、错误消息或符号名做字面锚点。
- 截取锚点附近上下文,并记录来源文件和 SHA-256。
- 交叉检查符号、导入依赖、相邻常量或两个版本的差异。
- 区分结论等级:
已观察(文件中直接存在)、强推断(多项静态证据一致)、未知(需要运行时或服务端证据)。
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 96 lines · 123 tokens per session scan A 46d5dea3447d
claude-code-reverse is a skill published in the GitHub repository majiayu000/spellbook (288 stars, last pushed yesterday), licensed MIT. It adds 123 tokens to every session and 1,645 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
cao-session-management
Find available CAO (CLI Agent Orchestrator) agent profiles, and talk to the conductor and worker terminals of a running CAO session, including unblocking a stuck worker. Use when choosing a profile to launch, messaging or unblocking workers, or diagnosing a stuck session. For preflight, launching, session commands…
pneuma-session
Instructions for renaming an active Pneuma session and replacing its default preview with a useful title and summary. A Pneuma session is one work area inside a larger project.
fast-resume
Search local coding-agent session history and identify safe resume commands. Use when the user asks to find, inspect, continue, or recover previous work from Claude Code, Codex, Pi, or another agent indexed by fast-resume.
workflow
A workflow skill for embedded-device projects that plans and runs building, flashing, debugging, observing, and diagnosis tasks.
lov-organize-storage
A storage-organization tool for surveying a whole drive or archive and planning a project-based folder layout. It can rename items within the same drive after confirmation, while keeping a mapping, log, and rollback script.
lov-finder-action
A generator for custom right-click actions in macOS Finder, the file manager on Apple computers.