Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add imjszhang/js-eyes --skill js-reddit-ops-skillgit clone --depth 1 https://github.com/imjszhang/js-eyesWrote 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.
[](https://agentmods.dev/skills/imjszhang/js-eyes/js-reddit-ops-skill)<a href="https://agentmods.dev/skills/imjszhang/js-eyes/js-reddit-ops-skill"><img src="https://agentmods.dev/badge/skills/imjszhang/js-eyes/js-reddit-ops-skill/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.
<a href="https://agentmods.dev/skills/imjszhang/js-eyes/js-reddit-ops-skill"><img src="https://agentmods.dev/badge/skills/imjszhang/js-eyes/js-reddit-ops-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.10913 |
| Opus 5.5 | $0.00025 | $0.04365 |
| Sonnet 5.5 | $0.00013 | $0.02183 |
| Haiku 4.5 | $0.00006 | $0.01091 |
Grade A, and why
js-reddit-ops-skill scanned grade A with 1 finding 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.
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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **v3.4.2**:工程化补丁,**runtime 行为不变**,全部是开发者侧脚手架 —— ① `lib/runCliToFile.js`:封装 `child_process.spawn` 用 `stdio:['ignore', fd, 'pipe']` 直写 fd,绕开 Node 在 stdout `>64KB` 时通过 `child.stdout.pipe(fs.createWriteStream)` 会丢尾的坑(实测 11 How it starts
The opening of the file, as written. The whole thing — 450 lines — stays where its author put it; the contents beside it link to each section on GitHub.
js-reddit-ops-skill
面向 reddit.com 的只读 + 仅改自身浏览器 URL的 skill。从 v3.0 起切到 PAGE_PROFILES + Bridges + Session 架构,参考 js-wechat-mp-ops-skill 的设计取舍:
- 数据获取:READ 数据优先走 reddit 公开 JSON 端点(
*.json/oauth.reddit.com),与浏览器同源、复用 cookie;DOM 解析(lib/redditUtils.js)保留为兜底 - 双前端兼容:bridge 内
detectFrontend()区分 shreddit(新版)/ old.reddit(旧版);JSON 主路径与前端无关 - 安全分级:只做 READ + INTERACTIVE 两档,永不做 DESTRUCTIVE(不投票 / 不评论 / 不发帖 / 不订阅 / 不发私信 / 不举报)
依赖与前置
- Node.js 22+、JS Eyes 2.8.5+;JS Eyes Server 已启动(
js-eyes server start) - 浏览器扩展:已安装并连上 server
- 登录态(可选):浏览器里已经人工登录 reddit.com(本 skill 不做任何登录自动化);未登录可调 READ 公开内容;登录后可调 inbox / 个人 saved/upvoted 等 tab
- 任意 reddit.com tab 即可:READ 工具默认
navigateOnReuse=false / reuseAnyRedditTab=true,bridge 在任意 reddit.com tab 里 fetch 同源 JSON 端点;用户当前 tab 不会被切走 - Raw Eval:bridge 首次注入需要宿主设置
security.allowRawEval: true;JS Eyes 2.5+ 会把该设置同步到扩展,扩展存储中的显式false仍可强制关闭 - Chrome:要求 135+;Chrome 138+ 还需开启浏览器控制的 Allow User Scripts
安全红线(READ / INTERACTIVE / DESTRUCTIVE)
本 skill 的所有工具都会被归入以下三档之一。审计界线按「是否改 reddit 业务数据」而非「是否触网」来划:
READ(默认档)
纯读,不改任何 DOM、不改 URL、不触发任何业务写操作。
- 走
fetchRedditJson(path, params)重放 reddit 公开 JSON 端点(GET,复用浏览器同源 cookie) - DOM 路径仅作为 bridge 失败时的兜底,由
lib/redditUtils.jscheerio 解析提供 - 工具:
reddit_get_post/reddit_session_state/reddit_list_subreddit/reddit_subreddit_about/reddit_search/reddit_user_profile/reddit_inbox_list/reddit_my_feed/reddit_expand_more
INTERACTIVE(v3.2+)
只改浏览器自己的 URL,不改 reddit 侧任何业务数据。实现硬约束:
- 仅
location.assign(newUrl),禁止模拟点击任何 DOM CTA - bridge 端
navigateLocation()拒绝跨域 URL(必须是*.reddit.com) - 调用返回
{from, to, hint},CLI 端awaitBridgeAfterNav重注 bridge + state 自校验 skill.definition.js里带interactive: true/destructive: false- 工具:
reddit_navigate_post/reddit_navigate_subreddit/reddit_navigate_search/reddit_navigate_user/reddit_navigate_inbox/reddit_navigate_home
What ships with it
52 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.
- bridges/_dom-actions.js 13 KB runs code
- bridges/_visual-reddit.js 8.1 KB runs code
- bridges/common.js 17 KB runs code
- bridges/home-bridge.js 9.2 KB runs code
- bridges/inbox-bridge.js 7.9 KB runs code
- bridges/listing-bridge.js 13 KB runs code
- bridges/post-bridge.js 17 KB runs code
- bridges/search-bridge.js 14 KB runs code
- bridges/user-bridge.js 13 KB runs code
- CHANGELOG.md 28 KB
- cli/index.js 17 KB runs code
- docs/dev/bridges-cheatsheet.md 15 KB
- docs/dev/visual-cookbook.md 11 KB
- index.js 390 B runs code
- lib/api.js 10 KB runs code
- lib/bridgeAdapter.js 2.5 KB runs code
- lib/cache.js 194 B runs code
- lib/cliVisualFlags.js 2.0 KB runs code
- lib/commands.js 26 KB runs code
- lib/config.js 4.5 KB runs code
- lib/debug.js 121 B runs code
- lib/history.js 155 B runs code
- lib/redditUtils.js 21 KB runs code
- lib/runCliToFile.js 3.9 KB runs code
- lib/runContext.js 760 B runs code
- lib/runtimeConfig.js 1.0 KB runs code
- lib/runTool.js 15 KB runs code
- lib/session.js 11 KB runs code
- lib/toolTargets.js 2.5 KB runs code
- lib/visualHint.js 16 KB runs code
- package.json 2.0 KB
- replay-templates/cardTemplate.js 4.1 KB runs code
- replay-templates/index.js 655 B runs code
- replay-templates/item.js 3.2 KB runs code
- replay-templates/list.js 1.6 KB runs code
- scripts/_dev-probe-anchor.js 15 KB runs code
- scripts/_dev-probe-dom.js 7.8 KB runs code
- scripts/_dev-probe-login.js 4.5 KB runs code
- scripts/_dev/diff-post-schema.js 4.5 KB runs code
- scripts/_dev/visual-demo.js 3.7 KB runs code
- scripts/_templates/batch-search.js 4.1 KB runs code
- scripts/_templates/fetch-samples.js 3.3 KB runs code
- scripts/_templates/README.md 4.0 KB
- scripts/aggregate-subreddit.js 6.0 KB runs code
- scripts/batch-post.js 5.5 KB runs code
- scripts/reddit-post.js 2.3 KB runs code
- scripts/run-snapshot-mode-deep-dive.sh 2.7 KB runs code
- scripts/run-template-mode-deep-dive.sh 2.7 KB runs code
- skill.definition.js 22 KB runs code
- skill.entry.js 194 B runs code
- skill.manifest.json 19 KB
- tests/core.test.js 1.6 KB runs code
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.
- 2mo ago First seen · 450 lines · 63 tokens per session scan A e44e8a767f7f
js-reddit-ops-skill is a skill published in the GitHub repository imjszhang/js-eyes (45 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 10,913 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
js-reddit-ops-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| js-reddit-ops-skillimjszhang/js-eyes | Skill | 45 | 2d ago | MIT | A | 63 | Claude Code, Codex |
| interactive-loginyc-software/qm | Skill | 16k | yesterday | MIT | A | 46 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 10d ago | MIT | A | 52 | Claude Code, Codex |
| azure-messaging-webpubsub-javamicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 43 | Claude Code |
| cua-driverdavidondrej/skills | Skill | 4.3k | 3d ago | MIT | A | 68 | Claude Code, Codex |
| open-design-browsercompozy/compozy | Skill | 2.8k | yesterday | MIT | A | 56 | Claude Code, Codex |
| southwestborski/travel-hacking-toolkit | Skill | 895 | yesterday | MIT | A | 40 | Claude Code |