archive-crawler
できること
このスキルは、古いクラウドドライブやメールのエクスポートなど、個人のファイルアーカイブから、あなた自身の文章やアイデアを検索します。設定ファイルに列挙されたフォルダだけを調べます。
使う場面
- ✓アーカイブの中から、自分が以前書いた文章やアイデアを見つけたいとき。
- ✓バックアップやクラウドのフォルダから、価値のあるメモを掘り起こしたいとき。
- ✓許可した特定のフォルダにある個人の文章を確認したいとき。
スキルのリンク
https://github.com/garrytan/gbrain/blob/master/plugin/skills/archive-crawler/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“設定で許可した文章フォルダを調べて、教育についての私の古いエッセイを見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、設定の許可リストに載ったフォルダだけを読み、価値の高い内容で絞り込みます。拒否リストにあるものは飛ばし、あなたと一緒に確認できるよう結果を表示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
archive-crawler — The Universal Archivist
Convention: see conventions/quality.md for citation rules, exact-phrasing requirements when capturing the user's reactions, and back-link enforcement.
Convention: see _brain-filing-rules.md — this skill is schema-generic: it reads the user's filing rules from the rules JSON instead of hardcoding any specific era / archive layout.
Safety gate (REQUIRED, no exceptions)
archive-crawler refuses to run unless archive-crawler.scan_paths: is
explicitly set in gbrain.yml. This is a deliberate safety fence against
the agent over-scoping a scan and ingesting sensitive content (tax PDFs,
medical records, credentials).
# gbrain.yml — the allow-list is mandatory
archive-crawler:
scan_paths:
- ~/Documents/writing/
- ~/Dropbox/Archive/
- /mnt/backup/old-letters/
# Optional deny-list inside the allow-list:
# deny_paths:
# - ~/Documents/finances/
# - ~/Documents/medical/
If scan_paths is empty or missing, the skill exits with:
archive-crawler: refusing to run. No `archive-crawler.scan_paths:` allow-list
in gbrain.yml. Add explicit paths the agent is permitted to scan, then re-run.
This is a safety fence — the agent will not infer what's safe to read.
This contract is enforced by src/core/storage-config.ts (mirrors the
db_tracked / db_only allow-list pattern from v0.22.11 storage tiering).
What this is
Generic engine for exploring any tree of personal content within an
explicit allow-list. Works on local mounts, Dropbox API targets,
Backblaze B2, Gmail takeouts (.mbox), and similar archives. Filters
for "gold" (the user's own writing, ideas, relationships) and surfaces
it interactively for review. Skips noise (system files, configs, binary
blobs).
Concepts
Source
A source is any tree of files to explore. Sources have:
- type:
local|dropbox|backblaze|gmail-takeout|mbox|pst - root: filesystem path, Dropbox path, B2 prefix, mbox path
- manifest: a brain page tracking progress at
projects/<archive-slug>/STATUS.md
Manifest
Every archive exploration gets a manifest brain page that tracks:
- Tree inventory — folders / files / sizes / types
- Triage status — each item:
⬜ unseen/👀 reviewed/✅ ingested/⏭️ skip/🔥 high-signal - User reactions — exact quotes when they react (per conventions/quality.md exact-phrasing rule)
- Priority queue — what to explore next, ranked
- Session log — timestamped record of what was shown per session
Gold filter
Before showing anything to the user, apply the gold filter:
| Keep (show) | Skip (note existence, don't show) |
|---|---|
| Personal writing (journals, letters, reflections, essays) | System files, configs, package.json, node_modules |
| Conversations (IM logs, email threads with substance) | Binary blobs (images / video) |
| Ideas, theses, frameworks | Receipts, invoices, tax docs |
| Relationship material (letters to / from people who matter) | Spam, newsletters, mailing-list bulk |
| Creative work (poetry, stories, code with soul) | Corrupted / null files |
| Origin stories (first versions of things that became important) | |
| Emotional content (anger, love, grief, discovery) |
Protocol
Phase 1: Inventory
When pointed at a new source:
- Confirm scan_paths is set (safety gate). Exit if not.
- Map the tree — list folders + files + sizes + date ranges.
- Classify folders — group by likely content type (writing, email, code, photos, docs, system).
- Create manifest — write
projects/<archive-slug>/STATUS.mdwith the full inventory. - Propose priority queue — rank folders by likely gold density.
- Present to user — show the map and proposed order. Let them override.
Phase 2: Crawl
Work through folders in priority order:
- Read before showing — open each candidate file, apply the gold filter, skip noise.
- Show one at a time — present gold items individually for review.
- Capture exact reaction — track the user's response in the manifest using their exact words (per conventions/quality.md).
- Ingest if worth keeping — create a brain page immediately.
- Update manifest — mark item status after each interaction.
- Never re-show — check the manifest before presenting
よくある質問
コンピュータ全体をスキャンしますか?
いいえ。設定ファイルに許可するフォルダを書かない限り、実行を拒否します。
機微なフォルダを除外できますか?
はい。許可されたフォルダの中に拒否リストを追加できます。たとえば金融や医療のファイルなどです。
見つけたものはすべて保存されますか?
いいえ。価値の高い内容で絞り込み、何を残すかはあなたが決めます。
詳細
作者による元の説明
Universal archivist for personal file archives (Dropbox/B2/Gmail-takeout/local-mount/hard-drive-dump). Filters for high-value content (the user's own writing, ideas, relationships) and surfaces it interactively. REFUSES TO RUN without an explicit gbrain.yml `archive-crawler.scan_paths:` allow-list.
repo: garrytan/gbrain
人気
- GitHubのスター
- 31k
- ランキング
- #9285
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
gbrain
31kエージェントが、共有の社内ナレッジブレインで人、プロジェクト、決定事項についての事実を検索し、永続的なメモを保存できるようにします。
brain-ingest-gate
31k重複を避け、名前付きのエンティティを先に解決するため、新しい内容をナレッジブレインに追加する前に、既存のブレインと照合するようエージェントを支援します。
brain-link-discipline
31kエージェントが報告する各ブレインのページについて、同じメッセージの中で動くリンクを必ず含め、すぐに開けるようにします。
brain-ops
31kナレッジブレインの基本的な手順をエージェントに与えます。まず既存の文脈を確認し、出典つきで明示的なメモを保存し、関連するページをリンクします。