source-library
可搜索的知识库,捕获和交叉引用用户共享的所有内容。 当用户共享任何 URL(文章、推文、主题、存储库、视频、论文)时自动触发。 保存包含关键主张、引用、分析、标签和衰减跟踪的结构化摘要。 交叉引用源、映射连接、检测冲突并管理读取队列。 触发条件:共享 URL、“源库”、“我读过什么”、“搜索源”、 “找到关于”、“记得我分享的时候”、“冲突”、“联系”的文章。 请勿用于一般网页浏览、书签管理或在不保存的情况下获取页面。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~don-gbot-source-librarycURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~don-gbot-source-library/file -o don-gbot-source-library.md## 概述(中文)
可搜索的知识库,捕获和交叉引用用户共享的所有内容。
当用户共享任何 URL(文章、推文、主题、存储库、视频、论文)时自动触发。
保存包含关键主张、引用、分析、标签和衰减跟踪的结构化摘要。
交叉引用源、映射连接、检测冲突并管理读取队列。
触发条件:共享 URL、“源库”、“我读过什么”、“搜索源”、
“找到关于”、“记得我分享的时候”、“冲突”、“联系”的文章。
请勿用于一般网页浏览、书签管理或在不保存的情况下获取页面。
## 原文
# Source Library
A persistent, searchable knowledge base built from everything the user shares. Not a bookmark manager — a cross-referenced memory system with connection mapping, conflict detection, and confidence decay.
## Quick Start
1. `node scripts/source-library.js setup` — creates directories
2. Share any URL in chat — the agent auto-processes and saves it
3. Use `node scripts/source-library.js search "query"` to find past sources
## Auto-Trigger Behavior
When the user shares **any URL**, without being asked:
1. **Search first** — use local source search to find related existing sources. Surface specific connections.
2. **Analyze with context** — discuss the new source with existing knowledge layered in.
3. **Save with substance:**
```bash
node scripts/source-library.js save --name "Title" --url "https://..." --author "Name" --type "article" --tags "topic1, topic2" --claims "Claim 1. Claim 2." --analysis "Why this matters" --context "How it came up"
```
4. Every entry must be useful months later without re-reading the original.
## Command Reference
All commands via `node scripts/source-library.js <command>`:
| Command | Description |
|---------|-------------|
| `setup` | Create directories, first-run welcome |
| `save --name "..." --url "..." [--author --type --tags --summary --claims --analysis --context --slug --related --decay --date --force]` | Save a source |
| `list [--type tweet] [--tag crypto] [--decay]` | List sources with optional filters |
| `search "query" [--limit 10]` | Search local source summaries with relevance scoring |
| `stats` | Library statistics (total, by type, by tag, disk usage) |
| `connections [--clusters\|--orphans]` | Map relationships between sources |
| `conflicts` | Detect contradictions via sentiment heuristics |
| `queue add "url" [--note "..."]` | Add URL to reading queue |
| `queue list` | Show queued items |
| `queue next` | Show oldest unprocessed item |
| `queue done "url-or-index"` | Remove from queue |
| `teach "topic" [--limit 20]` | Synthesize knowledge from related sources |
| `import file.json` | Bulk import from JSON (full objects or URL array) |
## Entry Format
Each source lives at `life/source/{slug}/summary.md`:
```markdown
# Title
**Source:** URL
**Author:** Name (@handle)
**Date:** YYYY-MM-DD
**Type:** tweet|thread|article|repo|video|paper
**Tags:** comma-separated
**Decay:** fast|normal|slow
## Key Claims
- Actual arguments, mechanics, data points
- Specific enough to be useful without re-reading original
## Notable Quotes
- Direct quotes worth remembering verbatim
## Analysis
What matters. Connections to other knowledge. Why it's significant.
## Context
Why it was shared. Decisions made based on this.
## Related Sources
- [[other-source-slug]]
```
## Quality Rules
1. **No vibes.** "Interesting macro take" is worthless. Capture specific claims, mechanics, data.
2. **Capture mechanics, not conclusions.** Store the reasoning, not just the takeaway.
3. **Include quotes.** Direct quotes are highest-fidelity knowledge.
4. **Tag generously.** Tags enable future discovery. Include topic, author, domain, entities.
5. **Record decisions.** If a source led to action, capture that in Context.
6. **Cross-reference.** A connected source is knowledge; an isolated source is a bookmark.
## Do NOT Use For
- General web browsing or page fetching without saving
- Bookmark management (no "save for later" without substance)
- Summarizing pages the user didn't ask to save
- Anything outside the user's knowledge base