online-content-collector

online-content-collector is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 32 tokens per session (1,464 once invoked), scanned A, original, Apache-2.0.

A tool for collecting tagged links from an Obsidian vault, a folder of linked Markdown notes, and saving local copies of the linked material. It can archive text, images, videos, and metadata in separate folders.

In plain words
What is it for?
It helps find notes marked for downloading, create a download list, save recognised YouTube and X links, store media and metadata together, and report items from unsupported sites as failed.
Why use it?
Useful online material can disappear, change, or remain scattered across bookmarks. Local archives make the collected pages and their related files available inside the vault.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit It helps find notes marked for downloading, create a download list, save recognised YouTube and X links, store media and metadata together, and report items from unsupported sites as failed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/online-content-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 cafe3310/public-agent-skills --skill online-content-collector
Clone the repo
git clone --depth 1 https://github.com/cafe3310/public-agent-skills

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 online-content-collector

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/online-content-collector/github.svg)](https://agentmods.dev/skills/cafe3310/public-agent-skills/online-content-collector)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/online-content-collector"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/online-content-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 online-content-collector

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/online-content-collector"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/online-content-collector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 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.00032 $0.01464
Opus 5.5 $0.00013 $0.00586
Sonnet 5.5 $0.00006 $0.00293
Haiku 4.5 $0.00003 $0.00146

Measured 25d ago against content hash fad39bcfcd44, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

online-content-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 25d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/collect_links.py, scripts/generate_data.py, scripts/process_downloads.py, …), 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.

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_archived/online-content-collector/SKILL.md · 75 lines

How it starts

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

技能:线上素材收集器 (Online Content Collector)

概述

此技能旨在实现从“发现链接”到“本地化存档”的完全自动化。它扫描 Obsidian 仓库中带有特定标签的链接,将其汇总并下载为包含文本、图片、视频及附件的完整本地 Markdown 存档。

核心配置解析

此技能依赖用户 Vault 根目录下的 AGENTS.md。Agent 在执行脚本前,必须首先读取此文件,并解析出以下路径:

  • 下载列表目录位于: 用于传递给 --list-dir。
  • 下载内容目录位于: 用于传递给 --archive-dir。

核心工作流

第一阶段:扫描与汇总 (Discovery & Aggregation)

  1. 配置读取: Agent 读取 AGENTS.md,确定目标路径。
  2. 执行脚本: 调用 scripts/collect_links.py,传入 --vault-path 和 --list-dir。
  3. 元数据提取与更新: 脚本扫描包含 #Marker-待下载 的文件,提取 time 和 source,生成 YAML 格式的任务列表 [yyyy-mm-dd-hh 下载列表整理.md],并将原始文件标签更新为 #Marker-下载中-YYYYMMDD。

第二阶段:用户确认 (User Confirmation)

  1. 停止并检查: Agent 输出 YAML 列表文件路径,等待用户确认。

第三阶段:执行下载与剪藏 (Execution & Archival)

  1. 执行脚本: 调用 scripts/process_downloads.py,传入 --list-file 和 --archive-dir。
  2. 任务处理与分发:
    • YouTube / X (Twitter): 使用 yt-dlp 下载。请求最高画质,必须下载并保留全量 JSON 元数据(--write-info-json)。
    • 未知站点: 如果无法识别域名或未配置下载方式,则直接标记为“下载失败(未识别站点)”,不进行尝试。
  3. 隔离目录创建: 为每个下载任务创建独立目录,命名规范:[YYYY-MM-DD-HH] {分类} {描述/ID}。
  4. 内容本地化:
    • 主文档: 在目录下创建一个同名的 .md 文件。
    • 资产存放: 所有的 .mp4, .json, .jpg 等资产全部存放在该任务目录下。
    • 引用关联: Markdown 文件中使用本地相对路径链接同目录下的视频。

第四阶段:状态汇报与闭环 (Reporting & Closing)

  1. 列表回写: 脚本在 YAML 列表中更新状态为“下载完成”或“下载失败”。
  2. 标签同步: Agent 根据脚本输出,将原始文件中的链接标签更新为 #Marker-已下载-YYYYMMDD。

第五阶段:看版预览与可视化 (Visualization & Viewer - 可选)

  1. 看版部署: 当用户请求以网页形式可视化这些收藏信息时,Agent 从该技能的 templates/viewer/ 中拷贝 index.html、style.css、app.js、server.js 以及 compile_single_page.py 五个文件至“下载内容目录”下。若有需要,也可将 scripts/generate_data.py 拷入。
  2. 启动 Node 服务: 引导用户在该目录下运行 node server.js,启动 8000 端口的极简工业风本地服务器。
  3. 自动生成视频缩略图: 启动服务时,Node 程序会自动分析该目录下所有纯视频的子目录,使用本机的 ffprobe 获取时长、使用 ffmpeg 精准截取 1/3 进度处的帧(限定最大宽度 640px 并进行 -strict 兼容转码),生成极轻量级的 thumbnail.jpg 充当网页卡片的封面图,在右上角带上“视频”标识。
  4. 一键刷新同步: 当有新的网络收藏被下载完毕后,用户无需重启服务,只需在浏览器中刷新网页,后台便会自动重新执行扫描以实现无感动态数据更新。
  5. 一键打包单页面 (Portable Single-Page HTML): 若用户需要导出一个完全独立的单 HTML 文件(无需外部相对路径依赖,可离线查看),可引导用户在下载内容目录下运行 python3 compile_single_page.py。该脚本会对所有图片进行缩减压缩(长边最大 400px 且默认限制 45% WebP 质量),转换为 Base64 嵌入至单个页面内,同时对视频文件路径进行隔离(在单页面模式下视频点击直接引导至介绍页下载),生成仅数兆大小的 index_single.html,极利于分发便携分享。

Read the full file on GitHub · 75 lines

Files

What ships with it

24 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. 25d ago Changed · +9 lines fad39bcfcd44
  2. 3mo ago First seen · 66 lines · 32 tokens per session scan A 8b06bc121aae

Subscribe to this mod's changes

online-content-collector is a skill published in the GitHub repository cafe3310/public-agent-skills (260 stars, last pushed 14d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,464 once invoked, about $0.0001 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

online-content-collector compared with skills from other repositories

online-content-collector next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
online-content-collectorcafe3310/public-agent-skillsSkill26014d agoApache-2.0A32Claude Code, Codex
expertsflc1125/skillsSkill39todayMITA62Claude Code, Codex
asyncflc1125/skillsSkill39todayMITA52Claude Code, Codex
github-release-pr-writerflc1125/skillsSkill39todayMITA80Claude Code, Codex
yuqueflc1125/skillsSkill39todayMITA72Claude Code, Codex
getnoteflc1125/skillsSkill39todayMITA83Claude Code, Codex
opentelemetry-go-reviewerflc1125/skillsSkill39todayMITA34Claude Code, Codex