Skip to content

majiayu000/spellbook / skills/claude-code-reverse

claude-code-reverse

Verified

对用户拥有或明确获授权的本机可执行文件、应用二进制和版本产物做只读静态逆向,包括 Claude Code 及其他 CLI、Mach-O、ELF、PE、Wasm 或打包应用。仅在用户明确要求“逆向、扒实现、查二进制字符串/符号/依赖、验证内部行为、比较两个版本”时使用;不要因普通提及软件而触发,也不要用于执行未知样本、绕过授权/计费、破解或再分发。

FileKindSize
SKILL.mdskill md5.7 KB
extract.shexecutablescript6.9 KB
references/claude-code.mdmarkdown2.0 KB
tests/test_extract.shexecutablescript3.2 KB

references/claude-code.md

View on GitHub
# Claude Code Static Analysis Notes

只在目标明确是 Claude Code 时读取本页。

## 定位安装

原生安装通常通过以下路径暴露当前版本:

```bash
readlink "$HOME/.local/bin/claude"
ls "$HOME/.local/share/claude/versions/"
cat "$HOME/.claude/.last-update-result.json"
```

若是 npm 安装,先用 `command -v claude` 定位入口,再沿符号链接确认实际文件。不要把整个 npm 包目录交给 `extract.sh`;传入精确入口文件或包内目标文件。

## 常用锚点

| 要验证的表面 | 候选字面锚点 |
|---|---|
| 模型自述或客户端 prompt | `This iteration of Claude`、模型代号、已观察到的完整短句 |
| 计费或额度文案 | `usage credits`、`purchased separately`、`usage limit reached` |
| connector 体系 | `slack.mcp.claude.com`、`claudeai-proxy`、`tool_reference` |
| 安全分类器文案 | `Data Exfiltration`、`visible action`、`Interfere With Workloads` |
| 功能开关 | 已知配置键或 `policy-limits.json` |
| UI 提示 | 用户界面上可逐字确认的短句 |

锚点只是检索入口,不是预设结论。版本变化后,旧锚点可能不存在;如无命中,报告无命中,不要编造替代字段。

## Minified JavaScript 上下文

脚本的 `search` 使用字面匹配和 `awk substr`,避免 macOS 上某些 grep 实现对大范围量词的复杂度限制。若必须跨字符串边界检索,可对私有 cache 文件使用 `perl -0777`,但先限制上下文窗口和匹配次数,避免把整份 minified bundle 输出到对话。

## 不能由本地静态文件证明的内容

- 运行时通过 `tools/list` 等接口下发的远程 MCP 描述。
- Anthropic 服务端 prompt、策略和远程 feature flag 当前值。
- 混淆变量的真实业务名。
- 某个字符串对应的代码路径在当前账户、平台或版本上实际可达。

这些问题需要服务端、网络或运行时证据。不要把本地 bundle 中的相邻文本当成服务端当前行为。
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 469kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 321kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 321kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 321kUpdated Claude CodeCodexVerifiedInstall