baoyu-electron-extract

安装量: 2.3K
排名: #2961

安装

npx skills add https://github.com/jimliu/baoyu-skills --skill baoyu-electron-extract
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):
Prefer built-in user-input tools
exposed by the current agent runtime — e.g.,
AskUserQuestion
,
request_user_input
,
clarify
,
ask_user
, or any equivalent.
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.
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. Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes. Script Directory Scripts in scripts/ subdirectory. {baseDir} = this SKILL.md's directory path. Resolve ${BUN_X} runtime: if bun installed → bun ; if npx available → npx -y bun ; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values. Show more
返回排行榜