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.5 | $0.00021 | $0.00345 |
| Sonnet 5.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 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.
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.
- 2mo 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 (45 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 863 once invoked, about $0.0002 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.
js-hn-ops-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| js-hn-ops-skillimjszhang/js-eyes | Skill | 45 | 2d ago | MIT | A | 52 | 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 |