web-js-env-patcher

web-js-env-patcher is a skill for Codex from lwjjike/xbsReverseSkill. It costs 201 tokens per session (5,102 once invoked), scanned A, original, MIT.

A skill for analysing and recreating the browser features that website JavaScript expects when running in Node.js. Node.js is a server-side JavaScript runtime, while browser code may depend on objects such as the DOM, storage, canvas, WebGL, workers, and network APIs.

In plain words
What is it for?
Use it to trace missing objects and properties, inspect runtime and proxy logs, define environment modules, and test browser-like behaviour. It also covers checks involving browser fingerprints, frames, workers, graphics, audio, fonts, and request handling within authorised work.
Why use it?
It helps explain why copied website code fails outside a real browser and identifies which missing or inaccurate browser behaviours matter. It focuses on evidence and small, testable environment changes instead of blindly recreating the whole browser.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/check_intake.js --input task.md --markdown.

Good fit Use it to trace missing objects and properties, inspect runtime and proxy logs, define environment modules, and test browser-like behaviour. It also covers checks involving browser fingerprints, frames, workers, graphics, audio, fonts, and request handling within authorised work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lwjjike/xbsReverseSkill
agentmods
npx agentmods add skills/lwjjike/xbsreverseskill/web-js-env-patcher

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-js-env-patcher

README.md
[![agentmods](https://agentmods.dev/badge/skills/lwjjike/xbsreverseskill/web-js-env-patcher/github.svg)](https://agentmods.dev/skills/lwjjike/xbsreverseskill/web-js-env-patcher)
Your own site
<a href="https://agentmods.dev/skills/lwjjike/xbsreverseskill/web-js-env-patcher"><img src="https://agentmods.dev/badge/skills/lwjjike/xbsreverseskill/web-js-env-patcher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-js-env-patcher

Your own site · 80×15
<a href="https://agentmods.dev/skills/lwjjike/xbsreverseskill/web-js-env-patcher"><img src="https://agentmods.dev/badge/skills/lwjjike/xbsreverseskill/web-js-env-patcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 201 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00201 $0.05102
Opus 5.5 $0.00080 $0.02041
Sonnet 5.5 $0.00040 $0.01020
Haiku 4.5 $0.00020 $0.00510

Measured 2mo ago against content hash 8d9937276d84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-js-env-patcher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 10 executable files (assets/env-modules/base-env.js, assets/env-modules/document-env.js, assets/env-modules/fingerprint-env.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

web-js-env-patcher/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

网页端 JS Node.js 补环境

能力边界

本 Skill 只处理网页端浏览器 JavaScript 在 Node.js 中运行所需的环境分析、证据采集、WebAPI 实现和验证。

  • 目标是运行原始网页 JS,而不是优先重写算法。
  • 不处理 App、Android、iOS、小程序、EXE、DLL、Frida、IDA、JADX、Ghidra 等 Native 任务。
  • 默认不主动还原 JSVMP、opcode 或虚拟机解释器;只定位环境依赖、请求链和 writer。需要进入 JSVMP 源码时先暂停并让用户明确改变范围。
  • TLS 指纹兼容只用于授权验证浏览器网络栈差异,不得用于绕过登录、验证码、MFA、访问控制或批量访问。

工作模型

本 Skill 分三层:

  1. SKILL.md 负责范围、决策、硬规则和主流程。
  2. references/ 负责场景细节、schema、采样方法和验收标准;只在触发对应场景时读取。
  3. scripts/ 负责确定性采集和门禁;脚本结果不能替代浏览器真实证据或工程判断。

不要一次性加载全部 references。先根据下方路由确定需要读取的文件。

References 路由

任务确认与取证

  • 新 case、信息缺失或需要确认模板:读取 references/intake-template.md、references/workflow.md、references/delivery-templates.md。
  • 选择 ruyiPage、RuyiTrace、Camoufox、CloakBrowser、手动取证或 AI 决定:读取 references/browser-acquisition.md。
  • 使用 ruyiPage / RuyiTrace、安装检测、自动捕获或导入 NDJSON:读取 references/ruyi-tooling.md。
  • 使用 Camoufox / camoufox-reverse-mcp:读取 references/camoufox-tooling.md。
  • 自动点击、拖拽、键盘、滚动或可能检测 isTrusted:读取 references/trusted-input-and-isTrusted.md。
  • 验证码、challenge、WAF 或 verify 流程:读取 references/captcha-flow-and-verify-handoff.md。
  • 固化同一 profile、seed、代理、语言、时区、UA、screen、WebGL:读取 references/fingerprint-baseline-consistency.md。
  • 评估证据可信度或选择实现 / 回放 / 暂缓:读取 references/trust-matrix.md、references/case-patterns.md。

请求、资源与入口定位

  • 解析请求、定位加密入口、XHR/fetch Hook 或梳理 source → entry → builder → writer:读取 references/crypto-entry-location.md、references/hook-templates.md。
  • HTML、bundle、chunk、challenge JS、403 页面可能过期:读取 references/dynamic-resource-freshness.md。
  • Cookie/token 失效或需要定位非登录 Cookie 生成链:读取 references/cookie-generation-analysis.md。
  • 最终请求顺序、Cookie jar、Session 生命周期:读取 references/session-request-chain.md。
  • UA、Client Hints、Header、TLS/HTTP2 与浏览器 baseline 对齐:读取 references/tls-request-validation.md。

Trace 与环境实现

  • 运行目标 JS、Proxy 探测、缺失环境定位:读取 references/env-debug-loop.md。
  • Trace 首轮 API inventory、覆盖矩阵和计划外新增原因:读取 references/trace-api-coverage.md。
  • Trace contract、audit-only/no-send 和 runtime 深度一致性:读取 references/trace-runtime-conformance.md。
  • 选择不使用框架、isolated-vm、vm 或 jsEnv:读取 references/runtime-frameworks.md。
  • 使用随包魔改 xbs isolated-vm:读取 references/xbs-isolated-vm-api.md。
  • addon.node 或 xbs ABI 不兼容:读取 references/node-version-recovery.md。
  • addon 新版 API、private API、native collection、plugins/mimeTypes:读取 references/addon-api.md。
  • 浏览器对象清单、构造函数、原型链、descriptor 和访问器:读取 references/env-object-model.md。
  • addon-first、toString、document.all、brand 和 native-like:读取 references/env-native-protection.md。
  • Node 全局对象或宿主 WebAPI 泄露、静默失败:读取 references/node-leakage-and-silent-failure.md。
  • Level 1/2/3 模块划分:读取 references/env-module-levels.md。
  • 纯 JS、addon 和 xbs 都无法表达真实行为:读取 references/native-capability-gap.md。

Read the full file on GitHub · 221 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 221 lines · 201 tokens per session scan A 8d9937276d84

Subscribe to this mod's changes

web-js-env-patcher is a skill published in the GitHub repository lwjjike/xbsReverseSkill (381 stars, last pushed 3mo ago), licensed MIT. It adds 201 tokens to every session and 5,102 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.

open-metadata/OpenMetadata · 37 tokens

log-error-digest

Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…

zebbern/claude-code-guide · 71 tokens

cwv-optimizer

Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…

adobe/skills · 112 tokens

ci-fixer

CI failures - read error, minimal fix, verify.

sipyourdrink-ltd/bernstein · 15 tokens

incident-response-incident-response

Coordinate production incident triage, mitigation, investigation, recovery, and follow-up. Use when responding to outages or other incidents that require structured operational coordination.

rmyndharis/antigravity-skills · 36 tokens

diagnosing-missing-recordings

Diagnoses why a session recording is missing or was not captured. Use when a user asks why a session has no replay, why recordings aren't appearing, or wants to troubleshoot session replay capture issues for a specific session ID or across their project. Covers SDK diagnostic signals, project settings, sampling…

PostHog/posthog · 76 tokens