baoyu-electron-extract
Agent skill fromJimLiu/baoyu-skills
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.
How to install baoyu-electron-extract
install baoyu-electron-extract
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills# or add only this skill to Claude Code: copy the folder
skills/baoyu-electron-extract/
# into
~/.claude/skills/baoyu-electron-extract/ (all projects)
.claude/skills/baoyu-electron-extract/ (one project)
1# Electron App Extract23## User Input Tools45When this skill prompts the user, follow this tool-selection rule (priority order):671. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.82. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.93. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.1011Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.1213## Script Directory1415`{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: `bun` if installed; else `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.1617| Script | Purpose |18| ----------------- | ------------------------------------------------------------------------------ |19| `scripts/main.ts` | App discovery + asar extraction + source-map restoration + Prettier formatting |2021## Workflow22…
Excerpt shown under the repository's MIT license.
