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 cyber-hamster-dengit 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/cyber-hamster-den)<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.
<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>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.00073 | $0.02450 |
| Opus 5.5 | $0.00029 | $0.00980 |
| Sonnet 5.5 | $0.00015 | $0.00490 |
| Haiku 4.5 | $0.00007 | $0.00245 |
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.
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 — 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
三种输入格式的自动识别与解析规则:
- X (Twitter) 导出 JSON:识别顶层数组结构,提取
id、full_text、作者信息以及media[].original高清直链;自动检测同一批次中作者本人的连续自回复(如在回复中补充 Prompt)并合并正文。 - Discord 频道导出 JSON:识别
messages数组:- 若单条消息内包含多个外部链接,拆分为多个独立条目,共享该条消息中的个人评语(
user_note)。 - 若某条含链接消息之后 5 分钟内紧跟一条无链接、无附件的纯文字消息,自动将该文字消息合并为前一条链接的
user_note。 - 提取
embeds中的 OpenGraph 预览图与attachments附件直链。
- 若单条消息内包含多个外部链接,拆分为多个独立条目,共享该条消息中的个人评语(
- Obsidian Inbox Log / Web Clipper Markdown:
- 若 Frontmatter 含
source/url,按单篇剪藏文章解析,提取正文与外链图片。 - 若为每日 Inbox 日志,按顶级条目边界切分(保留提示词内嵌
---),仅识别包含* Note/* time:/* source:且带有有效外部链接的结构化条目,提取链接、分类后缀、附带正文与![[...]]本地图片引用;跳过无链接的纯文字/纯图片随笔以及未补全格式的非结构化条目。
- 若 Frontmatter 含
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.
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.
- 14d ago First seen · 117 lines · 73 tokens per session scan A 5325a1b2e479
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.
cyber-hamster-den compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cyber-hamster-dencafe3310/public-agent-skills | Skill | 260 | 14d ago | Apache-2.0 | A | 73 | 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 |
| preview-mermaidveelenga/preview-skills | Skill | 9 | 1mo ago | MIT | A | 25 | Claude Code |
| preview-csvveelenga/preview-skills | Skill | 9 | 1mo ago | MIT | A | 20 | Claude Code |
| preview-markdownveelenga/preview-skills | Skill | 9 | 1mo ago | MIT | A | 20 | Claude Code |
| visa-doc-translatex-cmd/skill | Skill | 26 | 4mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |