baoyu-electron-extract
仓库创建 2026年1月13日最近提交 24 天前SkillHot 收录 22 天前
▸ 精选理由
便于分析或调试打包应用的资源与源代码映射。
▸ 风险提示
会访问本地 Electron 应用文件并提取代码,可能涉及逆向与法律风险。
这个 Skill 做什么
提取已安装 Electron 应用的资源与 JavaScript,尝试恢复源码。
把已安装的 Electron 桌面应用的 app.asar 解包,提取资源和 JavaScript;若包含 .js.map 则还原原始源码,没 map 时用 Prettier 美化压缩后的代码。适合想审计、复现或研究桌面应用实现时用。会跳过 node_modules,支持 macOS 和 Windows。
▸ 展开 SKILL.md 英文原文
Extracts resources and JavaScript from any installed Electron app (`.asar` bundle), restoring original sources from `.js.map` files when available or formatting minified code with Prettier otherwise. Use when user wants to "extract Electron app", "decompile Electron", "get the source code of <app>", "inspect app.asar", "看 Electron 应用源码", "提取 .asar", or asks how a desktop Electron app is built. Skips `node_modules` and supports both macOS and Windows.
2.4w
Stars
2.7k
Forks
22
仓库内 Skill
+1.1k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/JimLiu/baoyu-skills/main/skills/baoyu-electron-extract/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/JimLiu/baoyu-skills/main/skills/baoyu-electron-extract/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Electron App Extract Extracts resources and code from an installed Electron app's `app.asar`. When a `.js.map` is present, restores the original source files from the embedded `sourcesContent`; otherwise formats the minified code with Prettier. Source-map paths are resolved relative to the `.js.map` file first, so bundled paths like `../../src/main.ts` restore to readable paths such as `restored/src/main.ts` instead of hashed placeholders. Always skips `node_modules`. Works on macOS and Windows. ## User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `Ask
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有