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 cafe3310/public-agent-skills --skill online-content-collectorgit clone --depth 1 https://github.com/cafe3310/public-agent-skillsWrote 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/cafe3310/public-agent-skills/online-content-collector)<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.
<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>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.00032 | $0.01464 |
| Opus 5.5 | $0.00013 | $0.00586 |
| Sonnet 5.5 | $0.00006 | $0.00293 |
| Haiku 4.5 | $0.00003 | $0.00146 |
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.
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.
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)
- 配置读取: Agent 读取
AGENTS.md,确定目标路径。 - 执行脚本: 调用
scripts/collect_links.py,传入--vault-path和--list-dir。 - 元数据提取与更新: 脚本扫描包含
#Marker-待下载的文件,提取time和source,生成 YAML 格式的任务列表[yyyy-mm-dd-hh 下载列表整理.md],并将原始文件标签更新为#Marker-下载中-YYYYMMDD。
第二阶段:用户确认 (User Confirmation)
- 停止并检查: Agent 输出 YAML 列表文件路径,等待用户确认。
第三阶段:执行下载与剪藏 (Execution & Archival)
- 执行脚本: 调用
scripts/process_downloads.py,传入--list-file和--archive-dir。 - 任务处理与分发:
- YouTube / X (Twitter): 使用
yt-dlp下载。请求最高画质,必须下载并保留全量 JSON 元数据(--write-info-json)。 - 未知站点: 如果无法识别域名或未配置下载方式,则直接标记为“下载失败(未识别站点)”,不进行尝试。
- YouTube / X (Twitter): 使用
- 隔离目录创建: 为每个下载任务创建独立目录,命名规范:
[YYYY-MM-DD-HH] {分类} {描述/ID}。 - 内容本地化:
- 主文档: 在目录下创建一个同名的
.md文件。 - 资产存放: 所有的
.mp4,.json,.jpg等资产全部存放在该任务目录下。 - 引用关联: Markdown 文件中使用本地相对路径链接同目录下的视频。
- 主文档: 在目录下创建一个同名的
第四阶段:状态汇报与闭环 (Reporting & Closing)
- 列表回写: 脚本在 YAML 列表中更新状态为“下载完成”或“下载失败”。
- 标签同步: Agent 根据脚本输出,将原始文件中的链接标签更新为
#Marker-已下载-YYYYMMDD。
第五阶段:看版预览与可视化 (Visualization & Viewer - 可选)
- 看版部署: 当用户请求以网页形式可视化这些收藏信息时,Agent 从该技能的
templates/viewer/中拷贝index.html、style.css、app.js、server.js以及compile_single_page.py五个文件至“下载内容目录”下。若有需要,也可将scripts/generate_data.py拷入。 - 启动 Node 服务: 引导用户在该目录下运行
node server.js,启动 8000 端口的极简工业风本地服务器。 - 自动生成视频缩略图: 启动服务时,Node 程序会自动分析该目录下所有纯视频的子目录,使用本机的
ffprobe获取时长、使用ffmpeg精准截取 1/3 进度处的帧(限定最大宽度 640px 并进行 -strict 兼容转码),生成极轻量级的thumbnail.jpg充当网页卡片的封面图,在右上角带上“视频”标识。 - 一键刷新同步: 当有新的网络收藏被下载完毕后,用户无需重启服务,只需在浏览器中刷新网页,后台便会自动重新执行扫描以实现无感动态数据更新。
- 一键打包单页面 (Portable Single-Page HTML): 若用户需要导出一个完全独立的单 HTML 文件(无需外部相对路径依赖,可离线查看),可引导用户在下载内容目录下运行
python3 compile_single_page.py。该脚本会对所有图片进行缩减压缩(长边最大 400px 且默认限制 45% WebP 质量),转换为 Base64 嵌入至单个页面内,同时对视频文件路径进行隔离(在单页面模式下视频点击直接引导至介绍页下载),生成仅数兆大小的index_single.html,极利于分发便携分享。
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.
- 2026-04-28-20-55-online-collector-requirements.md 2.0 KB
- assets/example_vault/agents.md 107 B
- assets/example_vault/Archives/Clips/[2026-05-02-15] 演示 dQw4w9WgXcQ/[2026-05-02-15] 演示 dQw4w9WgXcQ.md 278 B
- assets/example_vault/Archives/Clips/[2026-05-02-15] 演示 dQw4w9WgXcQ/metadata.json.example 0 B
- assets/example_vault/Archives/Clips/[2026-05-02-15] 演示 dQw4w9WgXcQ/video.mp4.example 0 B
- assets/example_vault/Archives/Clips/[2026-05-02-18] 演示 2036268335927796152/[2026-05-02-18] 演示 2036268335927796152.md 264 B
- assets/example_vault/Archives/Clips/[2026-05-02-18] 演示 2036268335927796152/image_1.jpg.example 0 B
- assets/example_vault/Archives/Clips/[2026-05-02-18] 演示 2036268335927796152/metadata.json.example 0 B
- assets/example_vault/DailyNotes/2026-05-01.md 281 B
- assets/example_vault/DailyNotes/2026-05-02.md 584 B
- assets/example_vault/DailyNotes/failure_test.md 190 B
- assets/example_vault/Workflows/DownloadLists/2026-05-02-01 下载列表整理.md 473 B
- assets/example_vault/Workflows/DownloadLists/2026-05-02-18 下载列表整理.md 836 B
- requirements.md 1.9 KB
- scripts/collect_links.py 4.7 KB runs code
- scripts/generate_data.py 5.7 KB runs code
- scripts/process_downloads.py 6.8 KB runs code
- scripts/sync_tags.py 4.3 KB runs code
- templates/viewer/app.js 28 KB runs code
- templates/viewer/compile_single_page.py 14 KB runs code
- templates/viewer/index.html 6.1 KB
- templates/viewer/server.js 8.7 KB runs code
- templates/viewer/style.css 20 KB
- workflows/01_collection_loop.md 2.1 KB
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.
- 25d ago Changed · +9 lines fad39bcfcd44
- 3mo ago First seen · 66 lines · 32 tokens per session scan A 8b06bc121aae
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.
online-content-collector compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| online-content-collectorcafe3310/public-agent-skills | Skill | 260 | 14d ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| expertsflc1125/skills | Skill | 39 | today | MIT | A | 62 | Claude Code, Codex |
| asyncflc1125/skills | Skill | 39 | today | MIT | A | 52 | Claude Code, Codex |
| github-release-pr-writerflc1125/skills | Skill | 39 | today | MIT | A | 80 | Claude Code, Codex |
| yuqueflc1125/skills | Skill | 39 | today | MIT | A | 72 | Claude Code, Codex |
| getnoteflc1125/skills | Skill | 39 | today | MIT | A | 83 | Claude Code, Codex |
| opentelemetry-go-reviewerflc1125/skills | Skill | 39 | today | MIT | A | 34 | Claude Code, Codex |