bip-ingest
Cold-start the ingest session — triage one batch of outside reading (Semantic Scholar and Google Scholar alerts, or a newsletter saved as .eml in…
by matsen★ 35 GitHub stars
Install bip-ingest in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
/bip-ingest
The ingest session turns a batch of outside reading into a short list worth acting on.
Most items are noise; start from that prior.
It finds each item and the session it bears on; that session frames it, because only it knows its open threads and, for a paper, whether the numbers are comparable.
Other sessions reach it by name, so ask the user to /rename ingest if it is not already named that.
Run it in $NEXUS_PATH; for command usage see /bip-lit.
It keeps no state between rounds. On cold start, say you are ready for a batch and wait.
Reading an .eml
A batch can arrive as .eml files in ~/Downloads, which keep the links that a paste loses: the files the user names, or else the newest one.
Copy each into a new empty folder in your scratchpad, then run python3 -I <this skill's base directory>/eml.py <copy>.
It prints the headers, the text, and numbered links with their anchor text (inline in the text for a plain-only email). It drops most unsubscribe links; treat every other link as carrying the user's key too.
Newsletter links are tracking redirects that carry the user's subscriber id: never save or forward one.
Resolve only a link you keep, with curl -s -o /dev/null -w '%{redirect_url}' '<href>', since resolving counts as a click; then drop the resolved URL's query string.
When the round is done, delete the .eml files you read from ~/Downloads.
A round of literature alerts
Find the owners, one line per owned EPIC (owner, EPIC, title):
gh search issues "EPIC in:title" --state open --owner matsengrp --owner matsen --limit 200 \ --json repository,number,title,body --jq '.[] | select(.title|test("^EPIC")) | (.body|capture("(?m)^Owner: *(?<o>\\S+)")?.o) as $o | select($o) | "\($o)\t\(.repository.nameWithOwner)#\(.number)\t\(.title)"'Read a body only when the title is too thin to judge a paper against. An owner not in
ListAgentsis not live.Resolve each item to an S2 paperId, DOI and abstract. Use
bip s2 lookup DOI:…orbip s2 lookup ARXIV:…when the email carries an id; otherwise find the paper withbip asta search "<title>" --limit 3(default JSON;--humanhides the paperId), thenbip s2 lookup <paperId>. Take the abstract with| jq -r .abstract. An item that won't resolve keeps its original link.Skip papers already in the library, after
git pull --ff-onlyandbip rebuild(/bip-lit; again before quoting a key to an owner):bip s2 lookup <id> --exists.Cut the noise. An item survives only if you can name, in a few words, the EPIC goal it bears on. Judge from the abstract, not the email's TLDR, which can describe a side point.
Ask the owners. Each live owner with survivors gets one numbered message; an owner with none gets nothing. A paper that bears on two EPICs goes to both owners, each told who else has it. Each entry: title, S2 link (
https://www.semanticscholar.org/paper/<paperId>), DOI link (https://doi.org/<doi>, orhttps://arxiv.org/abs/<id>when there is no DOI), the abstract, and your few-word guess. Ask for one line per entry:N: drop,N: keep,N: keep → request on <PR/issue>, orN: gem. Tell the owner that it frames a keeper in nexuspapers/<key>.mdonce the paper is imported (papers/README.md), that it drafts any request itself, and that posting on another person's PR or issue waits for the user. A reply never blocks the round.Send each gem to hhmi as a notice: the links, the owner's reply quoted, and the EPIC.
Report to the user as one numbered list: gems; keepers, with who they went to; survivors whose owner isn't live, with their EPIC; the Paperpile list; then a one-line count of what was cut, with the titles underneath. Each Paperpile line carries both the DOI link and the S2 link, or says "no DOI": the user prefers S2, but it can take several clicks and a captcha, so the DOI is the quick route. Tag each keeper and gem "Save in S2": saving it to the user's S2 Library folder trains that folder's Research Feed, and S2 has no API to do it for them.
The round ends when the owners have replied or the user says to stop waiting.
Then the user runs /bip-cycle for the next batch.
A round of a newsletter
- Cut the noise. An item survives only if you can name, in a few words, the session it bears on and why:
- it goes to the session that
$NEXUS_PATH/ingest-routes.mdlists for its topic, in the form that line asks for, or to the one the user names. Report a listed session that is not inListAgents; don't send to it; - a paper goes through the literature round's steps 1–7;
- an item no live session covers is cut. Judge from the item's text, not its headline.
- it goes to the session that
- Send each session one numbered message with its survivors. A reply never blocks the round.
- Report to the user as one numbered list: what went to which session, then a one-line count of what w
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- eml.py
FAQ
What does the bip-ingest skill do?
Cold-start the ingest session — triage one batch of outside reading (Semantic Scholar and Google Scholar alerts, or a newsletter saved as .eml in ~/Downloads), cut the noise, send the few survivors to the sessions they bear on, and hand the user a Paperpile list. One batch per round; the user runs /bip-cycle between rounds.
How do I install the bip-ingest skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the bip-ingest skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…