Harvest
What it does
Reads one piece of content, judges its strengths and weaknesses, and files it into your knowledge archive. It is for people who want useful sources saved and linked properly, not left in a pile of bookmarks.
When to use it
- ✓When you find an article or video you want analyzed and saved for later.
- ✓When you want to know which ideas from a source could help your own work.
- ✓When you want a source added to your knowledge archive with its link and cross-references.
Skill link
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Harvest/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Harvest this article and tell me what we could take from it, then save it to my knowledge archive.”
5 new skills a week. 1 minute to read.
How it works
The skill fetches the source text or transcript, sorts it by type, and writes a note with its link and cross-references. The analysis covers strengths and weaknesses first, then ideas to consider, which are recommended rather than applied.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
FAQ
Will it change my files without asking?
Adoption ideas are recommendations only, so nothing in your setup is changed automatically.
What if a page cannot be fetched?
Failures and thin fetches are reported as they are, not saved as empty notes.
Does it avoid duplicates?
Yes. Duplicates are reported rather than filed twice.
Details
Original description by the author
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
Popularity
- GitHub stars
- 20k
- Ranking position
- #10431
- License
- MIT
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
LifeOS
20kHelps your agent set up LifeOS, a personal system that maps your current state to your ideal state through an interview and a dashboard.
AnnualReports
20kHelps your agent find and compare cybersecurity annual reports from major vendors, such as breach and ransomware trends, with a source for every figure.
ApertureOscillation
20kTeaches your agent to test one design question at a narrow scope and a wide scope, then name where the two answers clash before you build.
Aphorisms
20kLets your agent find, match, and track attributed quotes from a curated collection, avoiding ones recently used in your newsletter.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.