Harvest
它能做什么
阅读一份内容,评估它的优缺点,并将其归档到你的知识档案中。它适用于希望有用的来源被妥善保存并建立链接,而不是堆积在书签里的人。
适用场景
- ✓当你找到一篇想要分析并留待以后保存的文章或视频的时候。
- ✓当你想知道某个来源中哪些想法可能对你自己的工作有帮助的时候。
- ✓当你想把一个来源连同其链接和交叉引用加入知识档案的时候。
技能链接
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Harvest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请收集这篇文章的要点,告诉我我们可以借鉴什么,然后保存到我的知识档案中。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会获取来源的文字或文字稿,按类型分类,并撰写一份带有链接和交叉引用的笔记。分析会先讲优缺点,然后列出值得考虑的想法,这些想法是建议而非直接应用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Harvest
Contents: Ideal State · Intent Routing · Tool contract · Data & Config · Gotchas · Examples
Two halves of one motion. Mine: read one piece of content and analyze it properly — what it is, where it is strong and weak — and, as one section of that report, what LifeOS should adopt from it (adoption report-only), with any further sections (such as the DA's own commentary) set by the install's preferences. Ingest: land the source in Cortex as a proper note — one CLI detects the source type, fetches the body or transcript, sends it through the Workflows classifier for TELOS-graded routing, then writes a schema-correct note with typed cross-links and a sidecar audit trail.
Saving signal by hand skips the cross-links, guesses the wrong folder and forgets the source URL, so capture is one command that routes through the same classifier and writer every time.
Ideal State
- Every harvested source lands in Cortex as one schema-correct note with its source URL, typed cross-links and an audit trail, written only by the canonical pipeline.
- A mined source's output carries analysis of the source ahead of its LifeOS adoption candidates, plus the sections the install's
PREFERENCES.mdasks for, and those candidates are recommended, never applied. - Failures, duplicates and thin fetches are reported as what they are; nothing is filed as a stub or garbage body that only looks like a capture.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Mine (general analysis + LifeOS-upgrade pass, then ingest) | harvest <input>, /ha, "mine this for the system", "anything useful in this for us" |
Intents/Mine.md |
| HarvestUrl (ingest an article, blog, LessWrong, Substack, news) | "ingest <URL>", "save this <URL> to knowledge" | Intents/HarvestUrl.md |
| HarvestYoutube (ingest any youtu.be / youtube.com link) | "ingest <youtube URL>", "save this video to knowledge" | Intents/HarvestYoutube.md |
| HarvestText (ingest raw paste, no URL) | "ingest the following:", "save this text to knowledge" | Intents/HarvestText.md |
The bare word "harvest" routes to Mine (mine → then ingest). "Ingest"/"save to knowledge" routes straight to the matching ingestion intent. If the input is ambiguous (URL is a YouTube link), Tools/harvest.ts auto-detects host and routes itself.
References
| File | Read when |
|---|---|
Setup.md |
first-time setup: build the harvest service, set the address and token, install the format tools |
Tool contract
- One CLI does the work:
bun ~/.claude/skills/Harvest/Tools/harvest.ts <input> [--type auto|article|youtube|x|text|pdf|image|audio] [--url <url>] [--dry-run] [--body-out <file>](the type list isharvest.ts --help's;--urlnames the canonical source for a text signal;--body-outwrites the fetched title and full body to a file before any POST, so a caller analyzes the same text the note is built from) - The harvest classifier worker (cloud; built per
Setup.md§ 3. Build the service; URL inConfig.md/HARVEST_API_BASEenv) — accepts a normalized signal at/ingest-and-classify, persists it idempotently in its D1 database, and returns{id, classification, confidence, reasoning, routed_actions}. LIFEOS/TOOLS/HarvestExecutor.ts(local) — polls Workflows'/items, dispatchesrouted_actionsthrough typed handlers (create_knowledge_idea_entry,create_knowledge_source_entry,create_learning_queue_entry), and writes the actual KNOWLEDGE note withharvest_item_idlinkage.- The skill never writes to
MEMORY/KNOWLEDGE/directly. It always routes through Workflows then the executor. - Idempotency: Workflows enforces
UNIQUE(source, external_id)— re-harvesting the same URL returnsoutput.status: "duplicate". The executor sidecar atMEMORY/STATE/harvest-executor-state.jsonmakes the local write idempotent too. On aduplicate, look up the existing item with thesourceandexternal_idthe summary block printed:curl -H "Authorization: Bearer $TOKEN" "$HARVEST_API/items?source=<source>&external_id=<id>". YouTube captures usesource=web(the video id is the external id); articles, X posts, files and pasted text usesource=manual. - Output:
MEMORY/KNOWLEDGE/{Ideas,People,Companies,Research}/<slug>.mdwithsource_url:,source_harvest_id:, ≥2 typedrelated:entries, and 1-3 body[[wikilinks]].
The summary block harvest.ts prints to stdout contains:
常见问题
它会未经询问就更改我的文件吗?
采用想法只是建议,因此你的设置不会被自动更改。
如果页面无法获取怎么办?
失败或内容过少的获取会如实报告,而不会保存为空白笔记。
它会避免重复吗?
会。重复的内容会被报告出来,而不会归档两次。
详情
作者的原始描述
Mines one piece of content for LifeOS and/or ingests it into Cortex. USE WHEN harvest, harvest this, /harvest, /ha, mine this for the system, anything useful in this for us, what can LifeOS take from this, should we adopt anything from this, ingest to knowledge, save to knowledge, drop into knowledge, route to knowledge, add to the knowledge archive, archive this signal, capture this to knowledge, classify and route to knowledge. NOT FOR Cortex note ops, Upgrade / lu scans, Cortex recall, X PullBookmarks sweeps.
repo: danielmiessler/LifeOS
热度
- GitHub 星标
- 20k
- 排名
- #10431
- 许可证
- MIT
- 更新时间
- 2026/10/28
评论
- …