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-hn-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-hn-ops-skill)<a href="https://agentmods.dev/skills/imjszhang/js-eyes/js-hn-ops-skill"><img src="https://agentmods.dev/badge/skills/imjszhang/js-eyes/js-hn-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-hn-ops-skill"><img src="https://agentmods.dev/badge/skills/imjszhang/js-eyes/js-hn-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.00052 | $0.00863 |
| Opus 5 | $0.00026 | $0.00432 |
| Sonnet 5 | $0.00010 | $0.00173 |
| Haiku 4.5 | $0.00005 | $0.00086 |
Grade A, and why
js-hn-ops-skill 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.
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.
What it actually says
js-hn-ops-skill
面向 news.ycombinator.com 的只读 + 仅改自身浏览器 URL skill,架构对齐 js-reddit-ops-skill / js-x-ops-skill:
- 数据获取:READ 优先走 Firebase 公开 API(
hacker-news.firebaseio.com/v0)与 Algolia(hn.algolia.com);DOM 解析为兜底 - 安全分级:READ + INTERACTIVE 两档,永不 DESTRUCTIVE(不投票 / 不评论 / 不 submit)
依赖与前置
- Node.js 22+、JS Eyes 2.8.5+;JS Eyes Server 已启动且浏览器扩展已连接
- 宿主设置
security.allowRawEval: true以允许 bridge 注入;JS Eyes 2.5+ 会同步到扩展,扩展侧显式false仅作为强制关闭覆盖 - Chrome 要求 135+;Chrome 138+ 还需开启浏览器控制的 Allow User Scripts
- 任意
news.ycombinator.comtab 即可;READ 默认不切走用户当前 tab - 公开内容与 Algolia 搜索无需登录;本 Skill 只读取已有登录态,不执行登录自动化
AI 工具
| 档位 | 工具 | 说明 |
|---|---|---|
| READ | hn_session_state |
登录态 |
| READ | hn_get_front_page |
首页列表 feed=top/new/best/ask/show/job |
| READ | hn_get_item |
帖子 + 评论树 |
| READ | hn_get_user |
用户资料 + 列表 |
| READ | hn_search |
Algolia 搜索 |
| INTERACTIVE | hn_navigate_front / item / user / search |
仅 location.assign |
CLI
cd skills/js-hn-ops-skill && npm install
node index.js doctor
node index.js front --feed top --limit 10 --pretty
node index.js item 48526661 --depth 4
node index.js user subset --user-tab submitted --limit 20
node index.js search "LLM agent" --limit 10
node index.js navigate-item 48526661
启用
js-eyes skills link /path/to/js-eyes/skills/js-hn-ops-skill
js-eyes skills reload
Page profiles
| profile | bridge |
|---|---|
front |
__jse_hn_front__ |
item |
__jse_hn_item__ |
user |
__jse_hn_user__ |
search |
__jse_hn_search__ |
内部踩点 CLI
| CLI | 用途 |
|---|---|
node index.js dom-dump [--anchors] |
.athing / .comtr / .fatitem |
node index.js xhr-log [--filter] |
Firebase / Algolia 请求 |
明确不做
- 不 upvote / downvote / comment / submit
- 不做登录自动化
What ships with it
23 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/common.js 15 KB runs code
- bridges/front-bridge.js 3.9 KB runs code
- bridges/item-bridge.js 3.8 KB runs code
- bridges/search-bridge.js 3.5 KB runs code
- bridges/user-bridge.js 4.2 KB runs code
- cli/index.js 12 KB runs code
- index.js 386 B runs code
- lib/api.js 1.3 KB runs code
- lib/commands.js 11 KB runs code
- lib/config.js 3.4 KB runs code
- lib/debug.js 121 B runs code
- lib/history.js 155 B runs code
- lib/runContext.js 756 B runs code
- lib/runtimeConfig.js 1.0 KB runs code
- lib/runTool.js 6.8 KB runs code
- lib/session.js 10.0 KB runs code
- lib/toolTargets.js 1.4 KB runs code
- package.json 772 B
- scripts/_dev/diff-item-schema.js 1.8 KB runs code
- skill.definition.js 13 KB runs code
- skill.entry.js 194 B runs code
- skill.manifest.json 8.5 KB
- tests/hn-core.test.js 2.7 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.
- 11d ago First seen · 84 lines · 52 tokens per session scan A a199c49217f2
js-hn-ops-skill is a skill published in the GitHub repository imjszhang/js-eyes (43 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 863 once invoked, about $0.0003 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.
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…
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.
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.
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.
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.
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…