zero2Agent: Skill for Claude Code

.agents/skills/scrape-nowcoder/SKILL.md

scrape-nowcoder is a skill for Claude Code, Codex from ranxi2001/zero2Agent. It costs 92 tokens per session (3,503 once invoked), scanned A, original, MIT.

A browser-based scraper for 牛客网 (Nowcoder), a Chinese developer community that publishes interview experiences and technical articles. It connects to Chrome, reuses an existing login, and saves selected lists and full articles as Markdown.

In plain words
What is it for?
Use it to collect recommended posts, topic feeds, search results, and interview-experience articles from Nowcoder, with options for page limits and keyword or date filters.
Why use it?
It avoids manually opening pages, scrolling through results, and copying articles from Nowcoder. It also supports filtering results by dates and keywords.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

This is ranxi2001/zero2Agent's own configuration. It tells Claude Code and Codex how to work on zero2Agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zero2Agent configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node .claude/skills/scrape-nowcoder/scrape.mjs --login.

About the project

zero2Agent is a tutorial repository that teaches software developers how to build AI agents, covering core concepts, model APIs, tools, memory, frameworks, implementation, and complete projects. It is intended for programmers learning agent engineering and for candidates preparing for agent-related technical interviews.

ranxi2001/zero2Agent · 1,026 stars · on GitHub · onefly.top

Reuse

Borrowing it

Nothing to install: this file belongs to ranxi2001/zero2Agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ranxi2001/zero2Agent/main/.agents/skills/scrape-nowcoder/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ranxi2001/zero2Agent

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 scrape-nowcoder

README.md
[![agentmods](https://agentmods.dev/badge/skills/ranxi2001/zero2agent/scrape-nowcoder/github.svg)](https://agentmods.dev/skills/ranxi2001/zero2agent/scrape-nowcoder)
Your own site
<a href="https://agentmods.dev/skills/ranxi2001/zero2agent/scrape-nowcoder"><img src="https://agentmods.dev/badge/skills/ranxi2001/zero2agent/scrape-nowcoder/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 scrape-nowcoder

Your own site · 80×15
<a href="https://agentmods.dev/skills/ranxi2001/zero2agent/scrape-nowcoder"><img src="https://agentmods.dev/badge/skills/ranxi2001/zero2agent/scrape-nowcoder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,503 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.00092 $0.03503
Opus 5.5 $0.00037 $0.01401
Sonnet 5.5 $0.00018 $0.00701
Haiku 4.5 $0.00009 $0.00350

Measured 2mo ago against content hash 1fb9caa3c164, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scrape-nowcoder 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.

.agents/skills/scrape-nowcoder/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

scrape-nowcoder:牛客面经 CDP 抓取

基于 Chrome DevTools Protocol 原生 WebSocket,零依赖。直接连接已运行的 Chrome 调试端口,复用浏览器登录态。

工作方式

  1. 连接 Chrome 调试端口(默认 9222)
  2. 如果端口不可达,自动启动独立 Chrome 实例(~/.chrome-nowcoder)
  3. 支持首页推荐流、标准话题 API、creation/subject 无限滚动话题和面经分类搜索结果
  4. 在已登录的浏览器中操作,抓取完成后 Chrome 保持运行

前置条件

  • Node.js >= 22(需要原生 WebSocket 和 fetch)
  • Google Chrome(Windows 或 macOS)以调试端口运行
  • 已在该 Chrome 中登录牛客网

首次使用

启动带调试端口的 Chrome(会自动创建 ~/.chrome-nowcoder profile):

node .claude/skills/scrape-nowcoder/scrape.mjs --login

在弹出的 Chrome 中登录牛客,profile 会持久化 cookie。cookie 过期或页面跳转登录页时重新执行 --login。

用法

node .claude/skills/scrape-nowcoder/scrape.mjs [选项]

选项

参数 默认值 说明
--login — 首次使用:启动 Chrome 并打开登录页
--home — 抓取首页推荐流,通过连续下拉加载后续内容
--topic <url|id> 818_1 抓取话题流;支持 creation/subject/<uuid> URL、其他完整牛客 URL 或 type 值
--pages <n> 1 最大页数;首页模式下为连续滚动批次
--limit <n> 0 列表去重和关键词筛选后最多抓取前 n 篇详情;0 表示不限
--since <date> (空) 标准话题接口或搜索模式仅保留该日及之后内容;话题接口连续两页全部更早时停止
--until <date> (空) 标准话题接口或搜索模式仅保留该日及之前内容;与 --since 组合限定月份/区间
--keyword <kw> (空) 按关键词筛选标题和列表摘要(如“AI”、“大模型”)
--search <query> (空) 面经分类搜索模式;固定使用 type=all&searchType=顶部导航栏&subType=818 并翻页
--out <dir> .claude/skills/scrape-nowcoder/nowcoder-output 输出目录
--port <port> 9222 Chrome 调试端口
--delay <ms> 2000 请求间隔,避免触发反爬

常用示例

# 默认抓牛客面经话题 type=818_1 的第 1 页
node .claude/skills/scrape-nowcoder/scrape.mjs

# 从面经话题抓 10 页,连续两页全部早于指定日期时自动停止
node .claude/skills/scrape-nowcoder/scrape.mjs --topic "https://www.nowcoder.com/?type=818_1" --pages 10 --since "2026-08-12"

# 抓 creation/subject 无限滚动话题:初始可见页 + 9 次加载
node .claude/skills/scrape-nowcoder/scrape.mjs --topic "https://www.nowcoder.com/creation/subject/14710425d5b74593b2ef7103d293606f" --pages 10

# 只取 subject 首屏前 3 篇做流水线冒烟测试
node .claude/skills/scrape-nowcoder/scrape.mjs --topic "https://www.nowcoder.com/creation/subject/14710425d5b74593b2ef7103d293606f" --pages 1 --limit 3

# 首页推荐流连续滚动 3 个批次,只保留 AI 相关内容
node .claude/skills/scrape-nowcoder/scrape.mjs --home --pages 3 --keyword "AI"

# 面经分类搜索:搜"字节跳动 后端 面经",抓 5 页
node .claude/skills/scrape-nowcoder/scrape.mjs --search "字节跳动 后端 面经" --pages 5

# 搜索"面"并逐篇按详情发布日期筛选已召回的 2026 年 7 月候选
node .claude/skills/scrape-nowcoder/scrape.mjs --search "面" --pages 50 --since "2026-07-01" --until "2026-07-31" --out ".claude/skills/scrape-nowcoder/nowcoder-output-2026-07-search"

# 面经分类搜索:搜 Redis 八股
node .claude/skills/scrape-nowcoder/scrape.mjs --search "Redis 面经 八股" --pages 3

# 指定端口
node .claude/skills/scrape-nowcoder/scrape.mjs --port 9333

Read the full file on GitHub · 200 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. 2mo ago First seen · 200 lines · 92 tokens per session scan A 1fb9caa3c164

Subscribe to this mod's changes

scrape-nowcoder is a skill published in the GitHub repository ranxi2001/zero2Agent (1,026 stars, last pushed yesterday), licensed MIT. It adds 92 tokens to every session and 3,503 once invoked, about $0.0004 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.

Related

scrape-nowcoder compared with skills from other repositories

scrape-nowcoder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scrape-nowcoderranxi2001/zero2AgentSkill1.0kyesterdayMITA92Claude Code, Codex
web-scrapingginlix-ai/LangAlphaSkill2.2kyesterdayApache-2.0A51Claude Code, Codex
web-exfiltration-detectionTencent/AI-Infra-GuardSkill7.4kyesterdayApache-2.0A61Claude Code
hive.browser-automationaden-hive/hiveSkill11k4d agoApache-2.0A142Claude Code, Codex
browserwing-executorMemTensor/MemOSSkill12k2d agoApache-2.0A42Claude Code, Codex
dev-browserMemTensor/MemOSSkill12k2d agoApache-2.0A84Claude Code, Codex
hive.linkedin-automationaden-hive/hiveSkill11k4d agoApache-2.0A99Claude Code, Codex