cyber-hamster-den

cyber-hamster-den is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 73 tokens per session (2,450 once invoked), scanned A, original, Apache-2.0.

A local pipeline for collecting exported X posts, Discord messages, and Obsidian inbox entries into one archive. It removes duplicates, downloads media, and creates self-contained folders containing the original text and local files.

In plain words
What is it for?
It helps ingest social posts and notes, detect changed or already processed files, download media, and produce Markdown records with embedded local content.
Why use it?
It replaces scattered exports and repeated downloads with a tracked, resumable archive.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps ingest social posts and notes, detect changed or already processed files, download media, and produce Markdown records with embedded local content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/cyber-hamster-den
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 cyber-hamster-den
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 cyber-hamster-den

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/cyber-hamster-den"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/cyber-hamster-den.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,450 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.00073 $0.02450
Opus 5.5 $0.00029 $0.00980
Sonnet 5.5 $0.00015 $0.00490
Haiku 4.5 $0.00007 $0.00245

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

Security

Grade A, and why

cyber-hamster-den 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 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/hamster_pipeline.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/cyber-hamster-den/SKILL.md · 117 lines

How it starts

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

电子仓鼠窝 (Cyber Hamster Den)

将散落在 X (Twitter) Likes 导出文件、Discord「电子仓鼠」频道导出文件以及 Obsidian Inbox 每日剪藏日志中的收藏条目汇总到统一目录,通过增量指纹数据库避免重复下载,并将每条收藏转化为包含本地多媒体文件与还原原文的自包含 Post 目录。

目录结构约定

默认在独立数据仓库 ~/workspace/hamster-den/ 下维护三层目录(可通过 --den-root 或环境变量 HAMSTER_DEN_ROOT 覆盖):

  • 01-ingest/:原始输入池。直接将导出的 X JSON、Discord JSON 或 Obsidian 📮Inbox 下的 .md 日志文件放入此目录(支持任意子目录或平铺)。
  • 02-db/:状态追踪与去重数据库。
    • processed_files.json:记录 01-ingest/ 中已扫描文件的相对路径、SHA256 哈希与扫描时间。文件未发生变化时自动跳过;文件追加或更新后自动重扫。
    • url_registry.json:以归一化后的 canonical_url(及推文 Status ID)为键,记录已完成的条目、对应的 03-result/ 目录名称及出现过的平台来源。
    • pending_queue.yaml:增量扫描生成的待处理任务队列,支持预览确认与断点续传(状态含 pending、completed、partial、failed)。
    • progress.jsonl:运行期追加写入的单行进度日志(Append-only Journal),避免每条任务重写数 MB 的 pending_queue.yaml,并在重启时自动回放恢复中断进度。
  • 03-result/:最终产出的仓鼠项目目录。每个条目生成一个名为 [YYYY-MM-DD-HH] {分类} {标识} 的独立子目录,内含下载好的视频、原图、metadata.info.json 以及还原原文并内嵌本地媒体的同名 .md 文档。

核心工作流

阶段 0:初始化与历史数据迁移(首次运行或合并旧目录时执行)

首次建立仓鼠窝,或需要将历史已下载目录合并入库时,运行 init-and-migrate(默认使用 ~/workspace/hamster-den):

python3 <path_to_skill>/scripts/hamster_pipeline.py init-and-migrate \
  --den-root ~/workspace/hamster-den \
  --migrate-from "<vault_path>/cafe3310/📮Inbox/📮下载内容"
  • 脚本会将历史下载目录移动至 03-result/,解析每个目录内的 .md 与 metadata.info.json,将所有历史 URL 与推文 ID 登记到 02-db/url_registry.json 中(状态记为 completed)。

阶段 1:增量扫描 01-ingest/ 并生成去重队列

当向 01-ingest/ 放入新的导出文件或日志后,运行 scan:

python3 <path_to_skill>/scripts/hamster_pipeline.py scan \
  --den-root ~/workspace/hamster-den

三种输入格式的自动识别与解析规则:

  1. X (Twitter) 导出 JSON:识别顶层数组结构,提取 id、full_text、作者信息以及 media[].original 高清直链;自动检测同一批次中作者本人的连续自回复(如在回复中补充 Prompt)并合并正文。
  2. Discord 频道导出 JSON:识别 messages 数组:
    • 若单条消息内包含多个外部链接,拆分为多个独立条目,共享该条消息中的个人评语(user_note)。
    • 若某条含链接消息之后 5 分钟内紧跟一条无链接、无附件的纯文字消息,自动将该文字消息合并为前一条链接的 user_note。
    • 提取 embeds 中的 OpenGraph 预览图与 attachments 附件直链。
  3. Obsidian Inbox Log / Web Clipper Markdown:
    • 若 Frontmatter 含 source / url,按单篇剪藏文章解析,提取正文与外链图片。
    • 若为每日 Inbox 日志,按顶级条目边界切分(保留提示词内嵌 ---),仅识别包含 * Note / * time: / * source: 且带有有效外部链接的结构化条目,提取链接、分类后缀、附带正文与 ![[...]] 本地图片引用;跳过无链接的纯文字/纯图片随笔以及未补全格式的非结构化条目。

Read the full file on GitHub · 117 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. 14d ago First seen · 117 lines · 73 tokens per session scan A 5325a1b2e479

Subscribe to this mod's changes

cyber-hamster-den is a skill published in the GitHub repository cafe3310/public-agent-skills (260 stars, last pushed 14d ago), licensed Apache-2.0. It adds 73 tokens to every session and 2,450 once invoked, about $0.0003 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-11-16.

Related

cyber-hamster-den compared with skills from other repositories

cyber-hamster-den next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cyber-hamster-dencafe3310/public-agent-skillsSkill26014d agoApache-2.0A73Claude Code, Codex
yuqueflc1125/skillsSkill39todayMITA72Claude Code, Codex
getnoteflc1125/skillsSkill39todayMITA83Claude Code, Codex
preview-mermaidveelenga/preview-skillsSkill91mo agoMITA25Claude Code
preview-csvveelenga/preview-skillsSkill91mo agoMITA20Claude Code
preview-markdownveelenga/preview-skillsSkill91mo agoMITA20Claude Code
visa-doc-translatex-cmd/skillSkill264mo agoApache-2.0A23Claude Code, Codex