js-reddit-ops-skill

js-reddit-ops-skill is a skill for Claude Code, Codex from imjszhang/js-eyes. It costs 63 tokens per session (10,913 once invoked), scanned A, original, MIT.

A read-only tool for browsing Reddit posts, communities, searches, profiles, feeds, and inbox content through a logged-in browser when needed. Reddit is a site for user-created communities and discussions.

In plain words
What is it for?
Use it to inspect public Reddit content, search communities, view user pages, read feeds, and access available account tabs.
Why use it?
It lets an agent collect Reddit information without voting, posting, commenting, messaging, or subscribing.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to inspect public Reddit content, search communities, view user pages, read feeds, and access available account tabs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/imjszhang/js-eyes/js-reddit-ops-skill
Install

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.

Any agent
npx skills add imjszhang/js-eyes --skill js-reddit-ops-skill
Clone the repo
git clone --depth 1 https://github.com/imjszhang/js-eyes

Made for: Claude Code, 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 js-reddit-ops-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/imjszhang/js-eyes/js-reddit-ops-skill/github.svg)](https://agentmods.dev/skills/imjszhang/js-eyes/js-reddit-ops-skill)
Your own site
<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.

agentmods 80×15 button for js-reddit-ops-skill

Your own site · 80×15
<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>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00063 $0.10913
Opus 5 $0.00032 $0.05457
Sonnet 5 $0.00013 $0.02183
Haiku 4.5 $0.00006 $0.01091

Measured 12d ago against content hash e44e8a767f7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

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 12d ago.

The scan reads SKILL.md. This mod also ships 46 executable files (bridges/_dom-actions.js, bridges/_visual-reddit.js, bridges/common.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.

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
skills/js-reddit-ops-skill/SKILL.md · 450 lines

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.js cheerio 解析提供
  • 工具: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

Read the full file on GitHub · 450 lines

Files

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.

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. 12d ago First seen · 450 lines · 63 tokens per session scan A e44e8a767f7f

Subscribe to this mod's changes

js-reddit-ops-skill is a skill published in the GitHub repository imjszhang/js-eyes (43 stars, last pushed 4d ago), licensed MIT. It adds 63 tokens to every session and 10,913 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

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

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

google-safe-browsing

Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…

davidondrej/skills · 105 tokens