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 $0.00101 $0.02551
Sonnet 5 $0.00040 $0.01020
Haiku 4.5 $0.00020 $0.00510

Measured 11d ago against content hash 8d9937276d84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 11d 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.mdreferences/workflow.mdreferences/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.mdreferences/case-patterns.md

请求、资源与入口定位

  • 解析请求、定位加密入口、XHR/fetch Hook 或梳理 source → entry → builder → writer:读取 references/crypto-entry-location.mdreferences/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. 11d 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 (362 stars, last pushed 1mo ago), licensed MIT. It adds 201 tokens to every session and 5,102 once invoked, about $0.0010 per session on Opus 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

inspecting-hermes-desktop-dom

Read the live Hermes desktop DOM/CSS over CDP.

NousResearch/hermes-agent · 20 tokens

a11y-debugging

Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.

ChromeDevTools/chrome-devtools-mcp · 50 tokens

devtools

Drop-in inspector panel for any json-render app. Use when the user wants to debug a generative UI, inspect the spec tree, edit state at runtime, see dispatched actions, follow stream patches live, browse a catalog, or pick DOM elements to find their spec keys. Triggers include "add devtools", "debug json-render"…

vercel-labs/json-render · 108 tokens

copilotkit-debug

Use when diagnosing CopilotKit issues -- runtime connectivity failures, agent not responding, streaming errors, tool execution problems, transcription failures, version mismatches, and AG-UI event tracing.

CopilotKit/CopilotKit · 42 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens