Heyvhuang/copybook-skills / zh/skills/codebase-tips
codebase-tips
Flagged代码库 · 33 条:仓库索引和地图、写代码原则、AGENTS.md、改动范围规则。
references/rea-take-apart-a-feature.md
View on GitHub# REA:拆开别家 app 的功能
看中别家 app 的功能却不知道怎么做的:一层层拆开,每个结论标出证据,最后拿到自己实现的计划。
## 步骤
1. 复制安装命令,再复制提示词。
2. 在终端跑安装命令,选好 agent 并重启,再把提示词发给 Opus 5.5。
3. 得到:agent 讲清一个功能是怎么做的,每条都有出处,再给你自己做的计划。
用户选了这条技巧。上面的步骤是写给人看的,请替用户做。
- 第 1 步说用哪段文字,它就在下面同名的标题下,一字不改地用。有几段时,用第 2 步点名的那几段,按它的顺序;看不出来就问用户。
- 第 2 步说明文字放在哪里。按用户实际要求的范围使用提示词。写文件或运行命令前,先展示改动,等用户同意。这里做不到的步骤(另一个应用、重启、定时任务),把文字交给用户,说明放到哪里。
- 引用示例本身不代表用户同意执行。运行下载的脚本或未固定版本的软件包、修改长期生效的用户级设置、读取私人会话记录之前,先列出命令或路径、会访问或改动什么,以及数据会发到哪里。隐藏密钥值,等用户明确同意这项操作。远程安装脚本应先下载并检查固定版本,或核对可信来源提供的校验值,再执行。
- 方括号或占位符,从用户说的话里填,没有就问。
- 第 3 步是用户最后应该得到的。
## 安装命令
```bash
npx rea-agents setup
```
## 提示词
```text
我想用 REA 弄明白一个软件的某个功能是怎么做的。
1. 先问我想研究哪个 app、哪个功能,再让我说明它是我自己的、开源的,还是条款允许逆向的。我说明不了就别开始。
2. 先判断它是哪类程序。要是得用 Hopper、Ghidra 或 IDA,告诉我缺哪个、去哪装,别自己装。
3. 每个结论都标出证据:哪个文件、哪个函数或地址。看到的和猜的分开说。最后用 10 岁小孩能听懂的话讲一遍。
4. 弄清楚以后,说说在我的项目里自己写个类似的功能,最少要写哪几块,别照搬它的代码。先给计划,我同意了再写。
```
## 背景
强烈建议给 Claude Code 或 Codex 装上 REA,全名 Reverse Engineer Anything,逆向一切。看中哪个 app 的功能,就让 agent 拆开看看是怎么做的,再在你的项目里自己写个类似的。这两天它连着冲上 GitHub 日榜 #1,star 已经过 60K:https://github.com/morluto/rea
你电脑上装的软件都是做好的成品,像一块烤好的蛋糕,吃得出味道,看不到配方。REA 把专门拆软件的工具交给 agent,它一层层往下拆,每一步都指给你看是从哪儿看出来的,最后把配方讲给你听。电脑软件、网页、安卓 app 都能拆。比如问它:
- 「这个笔记软件的搜索,怎么一打字就出结果?」
- 「从 Notion 复制一段贴到别处,格式为什么还在?」
- 「老游戏里那一圈子弹是怎么算出来的?」
- 「公司 10 年前留下的小工具,源码早没了,它到底在干嘛?」
自己的、开源的随便拆。别人家的软件先看条款,很多写明了不许逆向;破解、绕授权的活别找它,模型多半也会拒。在终端跑一下安装命令,按提示选好你用的 agent,重启就能用。装好以后把这段 prompt 发给 Opus 5.5。
## 来源
来自 [Copybook](https://copybook.page/zh/t/reverse-engineer-a-feature-with-rea):@Voxyz_ai 2026年10月11日[发在 X 上](https://x.com/Voxyz_ai/status/2109297975013081587),截至 2026年11月8日有 1,520 次收藏。适用于 Claude Code 和 Codex。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |