agentleFS
pengqianhanpengqianhan/open-paper-skills/skills/paper-search/SKILL.md

paper-search

Skill2 starsChanged 5 months agoMITView on GitHub

Search and read research papers across alphaXiv, OpenAlex, bioRxiv, PubMed, Hugging Face Papers, Papers with Code, and arXiv, honouring the human's per-source on/off switches and full-text read order. Use when finding papers, related work, prior art, or code for a method; when reading a paper's full text or record from its id; or when the human asks to switch a source on or off or reorder where papers are read from.

  • Reads credentials

14 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use extract-paper-images, start-my-day and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Clay-HHKSkill

    extract-paper-images

    从论文中提取图片,优先从arXiv源码包获取真正的论文图

    Also in 4 projects that use this

  • Clay-HHKSkill

    start-my-day

    论文阅读工作流启动 - 生成今日论文推荐笔记

    Also in 3 projects that use this

  • +1 more from Clay-HHK

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run from anywhere inside the repository.

    line 22
  2. Very specific:

    Every user brings their own optional keys: OPENALEX_API_KEY (OpenAlex and bioRxiv), NCBI_API_KEY (PubMed), and HF_TOKEN (Hugging Face).

    line 88
  3. Very specific:

    Read the file in parts and cite the source and url the report names.

    line 119
  4. Very specific:

    When the harness has a logged-in alphaXiv connector (Claude Code's, for instance), use it to put questions to a paper's PDF.

    line 127

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Paper search

scripts/paper_search.py in this skill's directory ($PS below) searches every literature source the human has switched on, in parallel, and returns one JSON shape; fetch reads one paper through the human's read order. The switches and the read order live in the repository's memory/paper-sources.json; the human flips the switches from the Papers button in os-ui's agent windows.

A source that is off is off on every route. Reach literature through $PS, and leave a switched-off source alone through other routes as well: MCP connectors, other skills, and web fetches. When the evidence needs a source that is off, say so and let the human decide.

Search

Run from anywhere inside the repository; the script finds the switch file by walking up from the working directory.

uv run $PS sources                                   # which sources are on
uv run $PS search "sparse autoencoder feature splitting"
uv run $PS search "KV cache compression" --source alphaxiv --source huggingface --published-after 2025-01-01
uv run $PS search "ImageNet top-1" --mode keyword --limit 5

Without --source, every source that is on is searched. Pick the sources that fit the field: machine learning reads best through alphaxiv, huggingface, and pwc; journal and cross-disciplinary work through openalex; biology through biorxiv and pubmed; an exact title, author, or arXiv category through arxiv with a fielded query such as ti:"context language models".

SourceCoversExtra fields
alphaxivarXiv full text: CS, math, physics, statsvotes, full-text snippets
openalexall disciplines, journals and conferencescitations
biorxivbiology preprints, via OpenAlex's bioRxiv indexcitations
pubmedbiomedical and life-science journalsdoi, venue
huggingfacearXiv ML papers on Hugging Face Papersvotes (upvotes), code (GitHub)
pwcPapers with Code catalog, through its MCP servercitations, code_repos, official_code; no abstract
arxivall of arXiv, through its own API; ti: au: abs: cat: queries pass throughdoi, venue (journal reference)

Controls, applied to every source that supports them:

  • --mode semantic (default) or keyword: alphaXiv embedding vs full-text keyword search, PwC hybrid vs keyword, arXiv all-words vs exact phrase. Use keyword for exact method names, acronyms, benchmarks, and title phrases. Other sources ignore it.
  • --published-after / --published-before YYYY-MM-DD: inclusive window. Supply one only when the question asks for a period.
  • --limit N: results per source (default 10; PwC caps at 25).

Read the result

The script prints {query, searched, disabled, errors, results}. Each result has source, id, title, url, and, when its source provides them, abstract, publication_date, authors, and the extra fields above. id is an arXiv id, a DOI, an OpenAlex W… id, a PMID, or a PwC catalog id.

  • Results interleave the sources rank by rank. A paper several sources found appears once, under the first source, with the others in also_in; it keeps that source's votes and takes missing fields such as code from the rest.
  • errors names each source that failed. Report a failed source as unsearched rather than as evidence that no such literature exists; the same holds for an empty result. Exit 0 means at least one source answered, 1 means every searched source failed, 2 means invalid use, including asking for a source that is off.
  • Cite only papers the results or a follow-up read actually returned.

Known source behaviour:

  • PwC allows 10 hybrid searches per minute per IP; bursts need --mode keyword. PWC_MCP_URL points at another server, such as a local pwc-mcp.
  • Hugging Face has no date filter, so a window is applied to a wider pool afterwards and can return fewer results than --limit.
  • A PubMed window matches print or electronic dates, while publication_date shows the electronic one, so a hit can predate the window.
  • arXiv's terms allow one request every three seconds; the script waits out the gap, so back-to-back arXiv calls are slow rather than refused.

Keys

Every user brings their own optional keys: OPENALEX_API_KEY (OpenAlex and bioRxiv), NCBI_API_KEY (PubMed), and HF_TOKEN (Hugging Face). The script reads them from the environment, else from the repository's gitignored .env (template: .env.example); uv run $PS keys shows which are set. alphaXiv and PwC need none.

A rate-limited source (HTTP 429) comes back with the key that lifts the limit. Relay that next step to the human: they paste the key under Keys in os-ui's Papers panel, which runs keys --set NAME with the value on stdin, or edit .env themselves. Keep key values out of commits, prompts, and logs.

Read a paper

fetch takes an arXiv id or URL, a DOI, an OpenAlex W… id, or a PubMed id and routes it by shape:

uv run $PS fetch 2609.37725                    # full text through the read order
uv run $PS fetch 2609.37725 --via arxiv        # one source only
uv run $PS fetch 2609.37725 --report           # alphaXiv's ~10 KB overview, for skimming
uv run $PS fetch 10.1038/nature14539           # a DOI or PMID: its record, no full text

An arXiv paper is read from each source in the read order (default huggingface, alphaxiv, arxiv), skipping switched-off sources, until one returns a complete text: at least 5,000 characters with a heading such as Introduction or Method. A cut-short text, such as the lone figure caption Hugging Face serves for some fresh submissions, falls through to the next source. The text goes to a file (--out, default under the system temp directory); stdout is a JSON report with tried (each source's outcome), source, url, file, chars, and metadata from arXiv, else Hugging Face. Read the file in parts and cite the source and url the report names.

Exit 1 means no source returned a complete text: report the tried outcomes and the pdf link, and let the human decide; --via or --report through a switched-off source exits 2. A DOI, OpenAlex id, or PMID returns its record from OpenAlex, bioRxiv, or PubMed under that source's switch; follow its url or doi for the text.

When the harness has a logged-in alphaXiv connector (Claude Code's, for instance), use it to put questions to a paper's PDF. It belongs to the alphaxiv source, so it follows that switch.

Switch a source

bioRxiv and PubMed start switched off and every other source starts on; a source the switch file leaves out keeps that default. Change a switch only on the human's word, since the switches are the human's choice:

uv run $PS sources --disable pubmed
uv run $PS sources --enable pubmed --json

The read order is the human's choice too: sources --read-order alphaxiv,huggingface,arxiv sets it, and leaving a source out of it keeps fetch from reading through it while search still uses it.

Both rewrite memory/paper-sources.json, a tracked file; commit it with the change that motivated it.

Adapted from alphaXiv OpenResearch (MIT): its orx discover source switches and shared result shape, and its orx paper id routing and alphaXiv reads, are reimplemented here, and Hugging Face Papers and the Papers with Code MCP server are added as sources. The arXiv source reimplements the query syntax and rate limit of science-skills' literature_search_arxiv (Apache-2.0).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.