Tooluck logoTooluck
SKILL.md

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)

skills/baoyu-electron-extract/SKILL.md

MITFull file
1# Electron App Extract
2
3## User Input Tools
4
5When this skill prompts the user, follow this tool-selection rule (priority order):
6
71. **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.
10
11Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes.
12
13## Script Directory
14
15`{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.
16
17| Script | Purpose |
18| ----------------- | ------------------------------------------------------------------------------ |
19| `scripts/main.ts` | App discovery + asar extraction + source-map restoration + Prettier formatting |
20
21## Workflow
22…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates