brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
ast-deobfuscation使用 Babel AST 对 JavaScript 做分层、可回退的定向反混淆。适用于 `_0x` 标识符、字符串表、自执行解码包装、dispatcher 对象、虚假常量分支、`while/for + switch` 控制流平坦化、`if (literal === opcode)` 分发链,以及需要按站点或混淆家族命中特征切换专用脚本的场景。用户明确提到 reese84、顶象、极验4、同花顺、网易易盾、小红书、OB 变种或类似站点适配时也使用本 skill。
Independent GitHub snapshot · Automated classification · Original documentation governs
_0x 标识符、字符串表、自执行解码包装、dispatcher 对象、虚假常量分支、while/for + switch 控制流平坦化、if (literal === opcode) 分发链,以及需要按站点或混淆家族命中特征切换专用脚本的场景。用户明确提到 reese84、顶象、极验4、同花顺、网易易盾、小红书、OB 变种或类似站点适配时也使用本 skill。优先使用分层入口,而不是继续把站点特有逻辑堆进通用脚本。
scripts/detect-patterns.js <input.js> [hint] 做模式检测。scripts/run-pipeline.js <input.js> <output-dir> [hint] 执行选中的流水线。if -> switch。reese84 这种大样本,如果太晚执行 inline-literals,很容易卡住。scripts/detect-patterns.js
根据文件路径、可选 hint 和源码症状判断最可能命中的站点或混淆家族。scripts/run-pipeline.js
把样本复制到测试目录,执行选中的步骤,记录耗时并输出流水线报告。scripts/collect-residue-metrics.js
统计仍未解开的症状,例如 split('|')、直接 loop/switch 平坦化、opcode if 链、dispatcher wrapper 和 _0x 标识符。scripts/compare-with-reference.js
将最新流水线输出与 decode.js 对比,汇总剩余差距。references/pattern-layering.md。references/safe-rewrite-rules.md。references/string-array-and-minimal-eval.md。references/control-flow-and-opcode-patterns.md。references/sequence-normalization.md。references/patterns/reese84.mdreferences/patterns/dingxiang.mdreferences/patterns/geetest4.mdreferences/patterns/tonghuashun.mdreferences/patterns/yidun.mdreferences/patterns/xiaohongshu.mdreferences/patterns/cn-bidding-ob.mdreferences/patterns/mps-ob.mdnode --check 或等价的加载校验。C:\Users\25198\.codex\skills\.system\skill-creator\scripts\quick_validate.py C:\Users\25198\.codex\skills\ast-deobfuscation。