mcp-js-reverse-playbook
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mcp-js-reverse-playbook" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-47bee691b74e27459dc3d8bb9fee787430a82308add74011aecc17e8f70fdf3b. Verify the upstream source and version against https://github.com/haikow/claude-reverse-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A toolkit for frontend JavaScript reverse-engineering with js-reverse-mcp, suitable for signature/link localization, page observation and forensics, runtime sampling, local environment replay, and evidentiary output. Prioritizes compatibility with existing js-reverse_* tools in the environment.
Introduction source: third_party · haikow · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Use this skill as a priority when the task belongs to the following scenes: locate interface signature, encryption parameter, wind control field Observation page request link and script source grabs the participating return value for a function while running Tracks a trigger point for an XHR/ Fetch/WebSocket and takes the page evidence back to Node for local replication and patching if the target is binary, APK, PE, ELF, DLL, SO `ida-reverse` I don't know. `radare2` or `reverse-engineering` I don't know.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: mcp-js-reverse-playbook
description: 在使用 js-reverse-mcp 做前端 JavaScript 逆向时使用,适用于签名链路定位、页面观察取证、运行时采样、本地补环境复现与证据化输出。优先适配当前环境里的 js-reverse_* 工具。MCP 前端 JS 逆向作业规范
适用范围
当任务属于以下场景时优先使用本 skill:
- 定位接口签名、加密参数、风控字段
- 观察页面请求链路与脚本来源
- 在运行时抓取函数入参与返回值
- 追踪某个 XHR/Fetch/WebSocket 的触发点
- 把页面证据带回 Node 做本地复现与补环境
如果目标是二进制、APK、PE、ELF、DLL、SO,请改用 ida-reverse、radare2 或 reverse-engineering。
当前环境默认工具映射
本 skill 不假设存在裸工具名,而是默认绑定当前 OpenCode 环境里的 js-reverse_* 工具。
常用映射:
list_scripts->js-reverse_list_scriptsget_script_source->js-reverse_get_script_sourcesearch_in_sources->js-reverse_search_in_sourcesbreak_on_xhr->js-reverse_break_on_xhrevaluate_script->js-reverse_evaluate_scriptget_paused_info->js-reverse_get_paused_infoset_breakpoint_on_text->js-reverse_set_breakpoint_on_textlist_network_requests->js-reverse_list_network_requestsget_request_initiator->js-reverse_get_request_initiatorget_websocket_messages->js-reverse_get_websocket_messagestake_screenshot->js-reverse_take_screenshotnew_page->js-reverse_new_pagenavigate_page->js-reverse_navigate_pageselect_page->js-reverse_select_pageselect_frame->js-reverse_select_framepause/resume->js-reverse_pause_or_resume
如果未来工具名前缀变化,先更新本节,不要在执行时临时猜测。
核心原则
Observe-firstHook-preferredBreakpoint-lastRebuild-orientedEvidence-first
先页面观察,再最小化采样,再做本地补环境,不要跳过取证直接猜环境。
五阶段工作流
1. Observe
目标:先确认目标请求、相关脚本、候选函数,不猜环境。
默认动作:
- 用
js-reverse_new_page或js-reverse_navigate_page打开目标页面 - 用
js-reverse_list_network_requests找目标请求 - 用
js-reverse_get_request_initiator回溯调用来源 - 用
js-reverse_list_scripts、js-reverse_search_in_sources缩小脚本范围
必须产出:
- 目标请求 URL 或特征
- initiator 线索
- 可疑脚本 URL
- 初始任务记录
2. Capture
目标:对目标请求做最小侵入采样,拿到参数样例、调用顺序、运行时证据。
规则:
- 优先
js-reverse_break_on_xhr - 优先
js-reverse_evaluate_script做轻量运行时观察 - 命中后先看
js-reverse_get_paused_info - 必要时再用
js-reverse_set_breakpoint_on_text
3. Rebuild
目标:把页面证据整理成本地可迭代的 Node 复现材料。
规则:
- 本地补环境必须以页面观测证据为依据
- 不允许空想式补
window/document/navigator/crypto/storage - 每次只记录一个最小因果补丁决策
4. Patch
目标:按报错和 first divergence 驱动补环境,直到本地脚本稳定跑出目标参数。
规则:
- 先看缺什么,再补什么
- 一次只做一个最小补丁决策
- 每次补丁后立即复测
- 每次补丁都写入任务记录
5. DeepDive
目标:本地跑通后,再做去混淆、控制流还原、业务逻辑提纯。
规则:
- 如果当前任务只是出签名,这一阶段可以降级
- 如果要长期复用算法链路,这一阶段必须做
执行要求
- 所有重要步骤都要写入本地 task artifact
- 如果无法解释为什么调用某个工具,就不要调用
- 优先使用
js-reverse_*工具直接取证,不要先写脚本重造能力 - 失败时按
references/fallbacks.md回退 - 输出遵循
references/output-contract.md
必读引用
- 自动化入口:
references/automation-entry.md - 参数默认值:
references/tool-defaults.md - 任务输入模板:
references/task-input-template.md - MCP 专用任务编排:
references/mcp-task-template.md - 任务产物:
references/task-artifacts.md - 本地复现:
references/local-rebuild.md - 补环境:
references/env-patching.md - Node 复现:
references/node-env-rebuild.md - 插桩:
references/instrumentation.md - AST 去混淆:
references/ast-deobfuscation.md - 回退:
references/fallbacks.md - 输出契约:
references/output-contract.md
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的前端 JS 逆向五阶段工作流
- 明确区分 JS 逆向与二进制逆向的适用边界
- 面向开发者解决签名定位、运行时取证等核心需求
Highlights
- 触发场景描述清晰(签名链路、页面观察、运行时采样等)
- 工具映射关系明确,边界定义良好
Areas to improve
-
引用文件缺失 Reported severity: Major
SKILL.md 中引用了多个 references/* 文件(如 automation-entry.md、fallbacks.md 等),但未在传入内容中提供
Recommendation: 请补充所有被引用的 references 文件,或移除无法提供的引用
-
缺少端到端示例 Reported severity: Minor
虽有五阶段流程,但缺乏一个完整的端到端执行示例
Recommendation: 建议添加一个完整的 JS 逆向案例,展示从 Observe 到 DeepDive 的全过程
Highlights
- 五阶段工作流结构清晰,每阶段有明确目标和规则
- 包含核心原则和执行要求,逻辑完整
Areas to improve
-
引用文件缺失导致执行风险 Reported severity: Major
执行要求中提到失败时按 references/fallbacks.md 回退,但该文件缺失
Recommendation: 必须提供 fallbacks.md 或修改执行逻辑不依赖缺失文件
Highlights
- 工具来源明确,参数映射规范
- 优先使用现有工具而非重造能力,符合最佳实践
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.