/js-reverse-ops:js-reverse-opsfrom js-reverse-ops
Executes structured JavaScript reverse-engineering workflows for modern web apps: signature recovery, deobfuscation, bundle analysis, anti-debug bypass, runtime instrumentation, environment rebuild, and replay validation. Use when analyzing obfuscated frontend code, tracing request-signing logic, or rebuilding browser-only logic in Node/Python.
Ships in js-reverse-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill as a structured reverse-engineering workflow, not an ad hoc debugging session.
Do NOT use this skill for:
When in doubt, triage first (node scripts/js_reverse_ops.js <target> --json)
and let the router say whether this skill owns the task.
NOW: classify the request (signature recovery, offline deobfuscation, runtime tracing, environment rebuild, pure-HTTP delivery, ...) and load only the referenced files for that task type.NOW: if the work involves running browser JS locally, read references/env-rebuild-recipes.md first — 10 recipe cards (native-masked classes, class-tag probes, no-host-builtins, real timers, inline proxy, calibration oracles) that prevent the most expensive sandbox mistakes.NOW: if dependencies or tooling are in doubt, follow references/toolchain-bootstrap.md before writing probes.NEXT: if a rebuilt flow "almost works" (valid first token, later failures, 200-but-wrong-answers, unexplained key divergence), stop probing and read references/misdiagnosis-patterns.md.NEXT: if a page-issued token is rejected with distinct error strings (Invalid Token vs Invalid Fingerprint), the API is header-fingerprint-bound — read references/header-fingerprint-tokens.md for the pure-HTTP route (no TLS spoofing required).NEXT: if the target sits behind Cloudflare (403/503, Just a moment, Turnstile, cf-mitigated: challenge), run node scripts/cf_gate_triage.js <url> --json for the level verdict, then follow references/cf-gate-triage.md (L0-L3 ladder, cf_clearance lifecycle, behavior-telemetry record/materialize/replay) — it opens with the full recipe: triage, harvest the clearance, fetch every URL.ACT: enter the matching stage of the Core Workflow and execute — do not stop at confirmation.Pure-algorithm delivery is the default goal: run the target's code verbatim in
Node (vm/jsdom), run wasm modules verbatim with reconstructed import stubs
(node scripts/scaffold_wasm_verbatim.js <module.wasm> — never reverse the
module's embedded VM), or drive pure-HTTP clients
(references/header-fingerprint-tokens.md). Browsers are for SAMPLING
(plaintext formats, stub values, genuine token pairs) and cross-validation —
not for the delivery path itself. Escalate to browser-assisted delivery only
after the pure route is disproven, and record why.
When a zero-browser claim carries weight, prove it instead of asserting it:
python3 scripts/audit_browser_free.py --json --report <file> -- <command> watches a
whole run (process tree, automation flags on command lines, loopback TCP peers)
and reports PASS only when the subject completed with no local browser evidence.
This public release keeps:
Locate, Runtime, Recover, and ReplayThis public release intentionally excludes:
Start from the smallest reliable context:
node scripts/js_reverse_ops.js <target-url-or-file> [--json]node scripts/map_case_to_pattern.js <notes.md> and pass --notes <notes.md> to scripts/js_reverse_ops.jsnode scripts/run_playbook.js <target> --notes <notes.md> --out runs/current to emit a runbook, route plan, bootstrap claim/provenance/risk/replay artifacts, and hook scaffoldnode scripts/recommend_next_action.js runs/current --json when a run directory exists but runtime, replay, or readiness blockers make the next step unclearscripts/triage_js.sh <path> and then the smallest extractor that matches the target familynode scripts/select_anti_detection_profile.js --symptoms "<symptoms>" before changing hook or browser strategy; profile selection changes observation strategy only and must still be followed by runtime/replay verificationnode scripts/run_public_benchmarks.js before publishing or after changing router, pattern memory, examples, or playbooksnode scripts/explain_public_release_risk.js --json --strict to explain tracked-file, secret, path, capture, and generated-artifact risk before pushingnode scripts/generate_capability_scorecard.js when comparing this skill against other reverse-engineering packagesnode scripts/generate_market_gap_scorecard.js when deciding how to improve this skill against advanced reverse-engineering skills and MCP toolchainsnode scripts/compare_external_skill_matrix.js --json to compare this skill against browser MCP, static decompiler, agentic JS reverse, and cross-domain RE profilesnode scripts/plan_browser_mcp_smoke.js --server-family chrome_devtools_mcp --json before executing adapter-specific browser smoke checksnode scripts/verify_browser_mcp_smoke_record.js --record <mcp-execution.json> --json before claiming adapter smoke observationsnode scripts/run_mcp_delivery_loop.js <target> --record <mcp-execution.json> --out runs/current --json to scaffold, verify, promote, validate, and assess readiness in one passnode scripts/diagnose_replay_failure.js --run-dir runs/current --json or pass --replay-record <record.json> before changing signer codenode scripts/generate_replay_delivery_client.js --record <accepted-replay.json> --out runs/current/replay-client --json to produce sanitized Node and Python replay clientsnode scripts/validate_replay_delivery_client.js runs/current/replay-client --json before treating generated clients as handoff artifactsnode scripts/assess_static_recovery_truth.js --original <input.js> --recovered <output.js> --json before promoting readable static outputsourceMappingURL, sourceURL, inline maps, or X-SourceMap notes, run node scripts/plan_static_toolchain.js <bundle.js> --json before AST cleanupnode scripts/validate_domain_handoff_record.js --record <handoff-record.json> --json --strict before merging WASM, packet, mobile, native, or debugger findings back into JS evidencenode scripts/jsro.js <command> or the jsro package bin for route, run, validate, next, benchmark, scorecard, marketgap, releaserisk, externalmatrix, mcpsmoke, mcpsmokeverify, mcploop, replaydiagnose, replayclient, replayclientcheck, statictruth, handoff, handoffcheck, install, and publish commandsbash scripts/install_local.sh and bash scripts/publish_release.shplaybooks/accepted-response-hidden-dom.mdplaybooks/embedded-runtime-font-mapping.mdplaybooks/bootstrap-digest-ladder.mdplaybooks/iterative-script-warmup-same-endpoint.mdplaybooks/server-time-gated-wasm-signer.mdplaybooks/patched-runtime-digest-branch.mdplaybooks/runtime-bundle-signer-extraction.mdXMLHttpRequest.open rewrites the protected URL with the signer field: treat the rewritten URL as the signer output, preserve script order and runtime state, and use playbooks/xhr-open-url-rewrite-runtime-replay.mdplaybooks/transport-profile-ladder.mdplaybooks/lenient-verify-data-gate.mdplaybooks/decoy-page-request-hidden-token-gate.mdplaybooks/grid-challenge-template-matching.mdplaybooks/fresh-reload-seeded-signer-step-key-ladder.mdplaybooks/same-page-prior-round-signer-replay.mdplaybooks/mobile-shell-api-pivot.mdplaybooks/env-gated-crypto-differential.md.playbooks/browser-assisted-token-replay.md before attempting VM semantic recovery.playbooks/jsdom-native-vm-differential.md and diff instruction and constant streams against one instrumented browser ground truth.playbooks/short-ttl-inline-proxy.md: send the real request from inside the token-computing harness via a Promise-based resource interceptor.Use built-in scripts for routing, evidence, artifacts, and repeatability. Use specialist tools only for the narrow job they are good at:
scripts/recover_string_table.js for obfuscator.io string tables — webcrack as its engine, an optional dependency (npm install; Node 22 or 24); exit 1 and no output file when it could notscripts/decode_string_array_runtime.js for plain or base64 tables without webcrack, on any Nodescripts/decode_eval_wrapper.js for the classic eval(function(p,a,c,k,e,d){…}) packer shell (verified on a rebuilt payload)scripts/unbundle.js for webpack (4 / 5) output and browserify bundles: one file per module, moved verbatim, and a runtime.js that does what the inputs did (runtime.mjs when the bundle is an ES module). Enter the bundle alone when every module is in it; enter the bundle and the chunk files it loads — node scripts/unbundle.js main.js <chunk.js> … --out <dir>, the file with the bootstrap first (with runtimeChunk that is the runtime file) — and all of them go into one tree; enter one chunk file to read it. A webpack bundle inside another bundler's module wrapper (esbuild's, bun's) is cut too, the wrapper kept. (verified: webpack 4.47 and 5.113 in production, development, as ES module, with lazy chunks, a shared chunk, runtimeChunk; browserify 17; esbuild 0.27 around one bundle; one bundle nobody here built: esprima's distribution file)scripts/run_ast_pipeline.js for the step after the string table: fold constants, prune dead branches, split sequences, inline string arrays / object maps / one-line functions, unroll switch loops — on the syntax of current code (?., ??, class fields, BigInt; v1.9.4, acorn + astring). For reading; each pass keeps behaviour, and it refuses to write a file whose printed text does not read back as the tree it printed — and never writes over its input. (v1.9.7: the edges a review found are samples now — what a removed branch declares, a "use strict" that must not become a directive, the order arguments are evaluated in — plus a property test that cleans random programs and compares.) A file that still has its string table is refused; --force runs anyway and says the result is for reading only. (verified: every pass has a sample; the modern-syntax bundles; the chunk-loading sets with their chunk files; nine bundles from installed packages answer the same before and after — parse trees, obfuscation output, validation results, a command-line status line —, among them a 3.2 MB ES module)scripts/inspect_obfuscation_family.js: it names which of the lines above applies (next_tools)--help and never given an input — that says they load; not what they do), and 0 are never started by a testscripts/ answers --help with its usage on stdout and exit 0, and nothing else of it runs (v1.9.10): ask before guessing at an argument. "usage only" in the Evidence column means just that — the script was started for its usage line, and no test ever gave it an inputwakaru for modern minified output where syntax normalization and readability matter more than runtime truthast-grep, Babel, or recast for small targeted structural transformshumanify or another LLM renamer only after sanitizing code and only when identifier recovery is worth sending snippets outside the workspaceDo not let external deobfuscators replace evidence. Every recovered field, cookie, signer input, or replay helper still needs a verified browser observation or a local replay artifact.
For broader comparison against adjacent reverse-engineering skills and tools, see the internal comparison notes (not part of the public export).
Before publishing this public skill, run bash scripts/check_public_release.sh from the public repository root. The public package must not contain:
tmp/, cache, __pycache__, .pyc, or local benchmark output tracked by gitKeep private corpora and local validation bundles in the private workspace. Publish only generic playbooks, scripts, templates, and sanitized examples.
references/env-rebuild-recipes.mdreferences/misdiagnosis-patterns.mdreferences/header-fingerprint-tokens.mdreferences/toolchain-bootstrap.mdreferences/standard-workflow-cookbook.mdreferences/stage-gates.md — hard entry/exit conditions, time-boxes, fallback chainreferences/decision-handoff.md — delta-only handoff protocol between stages/sessionsreferences/task-types.mdexamples/case-walkthrough-combinatorial-gates.md — sanitized narrative: combinatorial env gates + calibration oraclesexamples/case-walkthrough-timer-selfcheck-and-fake-200s.md — sanitized narrative: timer self-checks, time-derived keys, 200-fake-data mazeNote: the verbatim-harness scaffolding generator referenced in the full
edition is distributed with the private workspace only; this public package
documents the equivalent rules in references/env-rebuild-recipes.md.
references/stages/locate.mdreferences/stages/runtime.mdreferences/stages/recover.mdreferences/stages/replay.mdreferences/rules/evidence-rules.mdreferences/rules/runtime-first.mdreferences/rules/routing-rules.mdreferences/rules/replay-rules.mdThis public variant is intended for sharing as a reusable skill package. Keep private fixtures, live captures, and customer- or site-specific notes in a separate private workspace or repository.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dqmyth/js-reverse-ops --plugin js-reverse-opsOther plugins' skills for the same job