research-collector

research-collector is a skill for Claude Code from xiaomoBoy/claude-writing-skills. It costs 98 tokens per session (2,804 once invoked), scanned A, original, MIT.

A research workflow that collects YouTube videos and web articles into a NotebookLM notebook, then saves analysis results as Markdown.

In plain words
What is it for?
Use it to collect background material for an article or topic, add sources to NotebookLM, run research questions, and save the findings locally.
Why use it?
It organizes source gathering and analysis in one repeatable process instead of leaving research links and notes scattered.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the claude-writing-skills plugin — 5 skills shipped together

Good fit Use it to collect background material for an article or topic, add sources to NotebookLM, run research questions, and save the findings locally.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaomoboy/claude-writing-skills/research-collector
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 xiaomoBoy/claude-writing-skills --skill research-collector
Clone the repo
git clone --depth 1 https://github.com/xiaomoBoy/claude-writing-skills

Made for: Claude Code.

Or install claude-writing-skills, the plugin that ships this one along with the rest of its 5 skills.

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 research-collector

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/research-collector/github.svg)](https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/research-collector)
Your own site
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/research-collector"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/research-collector/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 research-collector

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomoboy/claude-writing-skills/research-collector"><img src="https://agentmods.dev/badge/skills/xiaomoboy/claude-writing-skills/research-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,804 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.
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.00098 $0.02804
Opus 5 $0.00049 $0.01402
Sonnet 5 $0.00020 $0.00561
Haiku 4.5 $0.00010 $0.00280

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

Security

Grade A, and why

research-collector 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 13d 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.

skills/research-collector/SKILL.md · 277 lines

How it starts

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

Research Collector

这个 skill 只做一件事:

  • 为某个主题批量收集 YouTube 视频 + 网页文章,喂进 NotebookLM,跑分析查询,把结果落地到本地目录(默认 ./research/<topic>/,可配置)

不负责:

  • 写成品文章(交给你自己的写作工具 / skill)
  • 选主标题
  • 下载视频(交给本仓库里的 yt-dlp-direct skill)
  • 发布到多平台(交给本仓库里的 publisher-wechatsync skill)

一句话原则:用户说"帮我收集 X 话题的素材"或"拉一批 YouTube + 文章到 NotebookLM",就走这条固定流水线,不要每次重新设计。

When To Use

适用场景:

  • 用户要为某个话题写推荐/测评/观点文,需要先做背景研究
  • 用户说"帮我找 X 的热门 YouTube 视频和文章"
  • 用户说"收集到 NotebookLM 里分析"
  • 用户说"给我整理一份 X 话题的素材研究"

不适用场景:

  • 用户已经有明确素材清单,只想要总结 → 直接跑 nlm notebook query
  • 用户要做的是实时对话研究,不需要持久化到 notebook → 用 WebSearch + WebFetch
  • 用户只要下载单个视频 → 用 yt-dlp-direct

Preconditions

开始前必须确认:

  1. nlm CLI 已安装且登录:nlm login --check
  2. yt-dlp 在 PATH 中:which yt-dlp
  3. 用户明确说明了主题和角度
  4. 输出目录可写(默认 ./research/<topic>/,可以通过 RESEARCH_OUTPUT_DIR 环境变量或对话里直接指定其他路径)

前置不满足时:

  • nlm login --check 失败 → 让用户跑 nlm login,session 有效期 ~20 分钟
  • yt-dlp 没装 → 停止并告诉用户

Working Rules

  • 先和用户对齐主题、角度、量级,再动手
  • 每轮 ytsearch 默认 15 条,可以根据需要调整
  • NotebookLM deep research 一次只能跑一个任务,不能并发
  • 添加 source 时每条之间 sleep 2 秒,避免限流
  • 所有产出(原始 JSON + 汇总 markdown)落到 ./research/<topic>/ 下(或用户指定的目录)
  • 这个 skill 只负责收集和分析,不要擅自接着写成品文章
  • 不要删 notebook,用户后面可能还要回去跑 query

Core Workflow

Phase 0: 对齐目标

在动手前必须和用户明确:

  1. 主题是什么(要一句话能喂给 ytsearch 的关键词)
  2. 角度(比如"最常用 + 个人创作" vs "最新发布 + 技术细节")
  3. 笔记本命名(默认 <主题> 素材)
  4. 量级(默认:15 油管 + deep research 自动 ~40 网页)

Phase 1: 创建笔记本 + 设 alias

nlm notebook create "<话题> 素材"
# 从输出提取 ID,然后:
nlm alias set <short-name> <notebook-id>

alias 取短名,比如 skills-researchvps-2026,后续所有命令都用 alias。

Phase 2: yt-dlp ytsearch 找热门 YouTube

并行跑 2-3 个不同角度的搜索,每个 15 条:

yt-dlp --simulate --print "%(title)s|%(webpage_url)s|%(view_count)s|%(uploader)s" \
  "ytsearch15:<关键词 A>"
yt-dlp --simulate --print "%(title)s|%(webpage_url)s|%(view_count)s|%(uploader)s" \
  "ytsearch15:<关键词 B>"

输出里的 JS runtime warning 可以忽略。

从结果里按以下规则筛 top 15:

  • 去重(同一视频出现在多个搜索里)
  • 优先官方账号(比如 Anthropic、OpenAI 等)
  • 按 view count 从高到低,但要留 2-3 个垂直向角度的中腰部视频,避免全是爆款通稿
  • 每个角度至少保留 5 条

Read the full file on GitHub · 277 lines

Files

What ships with it

1 file 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. 13d ago First seen · 277 lines · 98 tokens per session scan A eab2f46455cd

Subscribe to this mod's changes

research-collector is a skill published in the GitHub repository xiaomoBoy/claude-writing-skills (32 stars, last pushed 3mo ago), licensed MIT. It adds 98 tokens to every session and 2,804 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

story-import

A tool for turning an existing novel into a structured writing project. It analyzes the book and organizes its characters, settings, plot plans, chapters, and tracking data for later writing.

zenstory-ai/oh-story-claudecode · 98 tokens

story-long-analyze

A long-form fiction analysis workflow for breaking down a novel’s opening chapters, characters, pacing, turning points, relationships, and overall structure.

zenstory-ai/oh-story-claudecode · 173 tokens

story-deslop

A writing editor for Chinese web novels that detects writing patterns often associated with AI-generated text and makes the prose feel more natural.

zenstory-ai/oh-story-claudecode · 62 tokens

story-short-analyze

A Chinese-language guide for analysing short popular web fiction, such as stories published on 番茄, 故事会, or 知乎盐选. It examines the core premise, plot structure, emotional arc, twists, writing techniques, and reader appeal.

zenstory-ai/oh-story-claudecode · 226 tokens

story

A Chinese-language routing tool for fiction writers that directs requests to tools for outlining, writing, analysis, reviews, covers, importing novels, browser control, and project management.

zenstory-ai/oh-story-claudecode · 68 tokens

story-long-write

A Chinese-language coaching workflow for creating long online novels, from the initial idea and outline through characters, plot threads, and chapter drafts. It also supports continuing, revising, or rewriting specified chapters.

zenstory-ai/oh-story-claudecode · 81 tokens