analyze-app
它能做什么
这项技能读取你拥有或获得授权研究的 JavaScript 或 Electron 应用的源代码,并说明某个功能的工作方式。适用于希望基于其有权使用的代码来理解或重建某个功能的开发者。
适用场景
- ✓当你想了解自己应用中某个功能是如何构建的时候。
- ✓当你想基于一个你获得授权使用其源代码的应用,重建某个功能的时候。
- ✓当你想获得 Electron 应用中模块及其连接关系的地图的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-rure/skills/analyze-app/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请通过文件和行号引用,说明我的 Electron 应用中导出功能是如何工作的。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能首先确认你有权研究这些代码。然后它在不运行应用的情况下解析代码,梳理模块及其连接关系,并找到你所描述功能的代码,为每项发现提供引用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Analyze App (ruRE — JS/Electron and native-binary and .NET static analysis)
Uses the ruRE tools (server ruflo-rure): rure_extract_asar, rure_analyze_js_app, rure_find_feature, rure_analyze_binary, rure_analyze_dotnet, rure_analyze_evm, rure_analyze_cuda, rure_cuda_launch_plan.
Authorization check — do first, every time. This skill is for understanding and reimplementing functionality you're authorized to study: your own application, a target you've properly licensed, or an explicit CTF/security-research context. If that isn't clearly the case, say so and stop before calling any tool. Refuse requests aimed at circumventing DRM, license checks, anti-tamper mechanisms, or paid-feature gates — reframe or decline those, don't attempt a workaround.
- If the target is a packaged
.asarfile, callrure_extract_asarfirst and use itsunpackedPathfor the next step. Iftruncated: truecame back, the archive exceeded the size/file-count cap — tell the user and stop; do not attempt a partial analysis. - Call
rure_analyze_js_appon the directory. This returns modules, an import/export graph, and Electron process-boundary findings (main vs. renderer,ipcMain/ipcRenderer/contextBridgeusage) — every finding carries a file + line-range evidence pointer. - If the user described a specific feature, call
rure_find_featurewith that description to narrow down where it likely lives, rather than reading the whole analysis. - When explaining a feature, always cite the evidence (file + line range) the tools returned — never assert how something works without a source pointer.
- If a snippet in the tool output says
redactedor is the literal string[content redacted by AIDefence — threat or PII detected], say explicitly that part of the analysis was withheld; do not guess at what it might have said. - When asked to "build a version for my project," propose an original implementation informed by the understanding gained — not a copy of the analyzed code — and say so.
- For a native ELF/PE/Mach-O file (for example a
.nodeaddon or helper executable bundled with the app), callrure_analyze_binaryfor its format, architecture, sections, linked libraries and imported/exported symbols. It inspects the container only: it does not disassemble, and it never runs the file. A non-emptywarningsarray means part of the file was malformed or out of range; report that rather than filling the gap. - For a managed .NET assembly (
.dll/.exewith a CLR header), callrure_analyze_dotnetfor its assembly references, types, P/Invoke native imports and string literals. It reads metadata only: no IL disassembly, nothing is loaded or run.isManaged: falsemeans the file is native; userure_analyze_binaryinstead. - For EVM contract bytecode (inline hex or a file), call
rure_analyze_evmfor the exposed selectors, hazardous opcodes, embedded addresses and topics, proxy status and revert strings. Report hazardous opcodes as inventory, not as vulnerabilities, and say when selector names are missing because the selector is not in the small built-in table. It cannot tell you whether anything is exploitable. - For a CUDA program (a host ELF/PE that carries a
.nv_fatbinsection, or a standalone.fatbin,.cubinor.ptx), callrure_analyze_cudafor the fatbin entries (PTX or cubin, targetsm_NN, compression), each kernel's mangled name, code size, register count and constant/shared/local memory, and the PTX version, target and kernel names. Userure_analyze_binaryfirst when it is not known whether a file holds CUDA code (its sections will include.nv_fatbin). It parses only: no SASS decoding, nothing run, no CUDA toolkit needed. An entry that saysread: falsewas compressed and could not be read (itsnotesays why, for example a Node without zstd); say so rather than inferring its contents. Register counts and instruction estimates are inventory, not performance claims. - To decide what to benchmark in a CUDA program, call
rure_cuda_launch_planon the same file (ADR-501): per kernel and architecture it works out theoretical occupancy at several block sizes (which resource limits it: registers, shared memory, warps or block slots), the block sizes that reach the most, and flags (local memory, register- or shared-memory-limited). PassdynamicSharedBytesif the launch will use dynamic shared memory (it is not in the file), andincludeHarness: trueto also get the text of a s
常见问题
它会运行应用吗?
不会。来源说明它只解析代码,从不执行目标程序。
它会帮助绕过授权检查吗?
不会。这项技能拒绝规避 DRM、授权检查或付费功能限制的请求。
如果压缩包太大怎么办?
这项技能会停止并说明原因,而不会给出不完整的分析。
详情
作者的原始描述
Statically inspect a local JavaScript or Electron app you are authorized to study and explain how a feature works with file+line evidence. Use when the user wants to understand or reimplement a feature from an app whose source they have. Parses only; never executes the target.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1684
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。