paper-search-pro
CLAUDE.md229 starsChanged 2 months agoApache-2.0View on GitHub
Published Agent Skill (Apache 2.0). Edit the git repo here; the running copy is separate at ~/.claude/skills/paper-search-pro/ — sync to it (rsync scripts/ references/ assets/ + SKILL.md) for changes to take effect.
In this repositoryOne other file it gives its agents.
- paper-search-proSkill
The file
Files
paper-search-pro — notes for sessions modifying this repo
Published Agent Skill (Apache 2.0). Edit the git repo here; the running copy
is separate at ~/.claude/skills/paper-search-pro/ — sync to it (rsync
scripts/ references/ assets/ + SKILL.md) for changes to take effect.
Invariants — do not break
- R-04 naming: OpenAlex / SJR / 中科院(CAS) journal metrics are partitions / open impact, never "Impact Factor". Only JCR
IF(YYYY)is a real Impact Factor. - R-19 human-path preservation: the human 14-STEP flow — especially STEP 6 (parallel classification SubAgents) and STEP 12 (HTML render) — must stay byte-identical when the agent/headless, source-switch, and journal-rank features are unused. Every new capability is opt-in additive; default = current behavior.
- Journal-rank data is never committed (Clarivate/SCImago/CAS copyright). It is runtime-fetched from public GitHub mirrors into
~/.paper-search-pro/ranks/.scripts/journal_rank.pyis the single canonical rank layer;scripts/sjr_helper.pyis superseded (kept for back-compat, not the wired source). - Zero new hard dependencies for v2.2 (GitHub-raw fetch uses
requests) — keep it that way: no playwright, no heavyweight libs. - One coverage estimator:
scripts/discovery_curve.py(sample coverage over the run'sraw/retrieval files, bootstrap interval, labelledpriorfallback).data_materializationonly renders it — never add a second fit there: an improvised τ=80 fallback once became the only path and showed ~99% on every run. - Only relevance ranking may use OpenAlex's full-text
search=: any other sort (citations, date) matchestitle_and_abstract.search— full-text matches ranked by citations or date were mostly off-topic (0–8 / 0–24 of 50 on topic across 8 topics, 2026-09-30). The recent layer is relevance within a date window (run_leg("recent")), never "newest first".tests/test_recency_legs.pygoes red if either is undone. - No evidence never reads as high coverage: the estimator is exactly 1 when it has no singletons to go on (Q1 = 0, or Q1 = 1 and Q2 = 0), so that result is not used — the rcs ≥ 6 band is tried, then the prior capped at 50%. A 100% once stopped a Standard run with two core papers before its citation hop. The design record (history, Undermind, why sample coverage) is outside the repo:
~/Documents/Claude Code/Skills/Enhancement/Paper Search Pro/coverage-estimator/00_design_record.md.
Test
Offline, reproducible: a uv venv from scripts/requirements.lock plus pytest pytest-socket, then
HOME=<empty dir> PYTHONPATH=. python -m pytest tests -q -p no:cacheprovider --disable-socket --allow-unix-socket — 852 pass (2026-10-01). Live checks are marked live and deselected by default.
Building the HTML report (bundle.html)
The report is TypeScript + Vite in assets/webartifacts_app/paper-report/. node_modules lives only
in the installed copy (~/.claude/skills/paper-search-pro/...) — the repo gitignores it — so build
there: rsync -a <repo>/…/src/ <inst>/…/src/ → cd <inst>/…/paper-report && pnpm exec vite build →
npx html-inline -i dist/index.html -o bundle.html → copy bundle.html back here (it's committed).
Use vite build, NOT pnpm build — the tsc -b gate is pre-existingly broken (React19/TS6 drift:
baseUrl deprecation + unused calendar.tsx/resizable.tsx type errors + an App.tsx union-props
strictness); none affect the runtime, and bundle.html has always been a vite+inline product.
Design record
Full v2.2 research + the HTML design-sync maintenance playbook (delta method, build recipe, and the
misunderstandings to avoid) live outside the repo:
~/Documents/Claude Code/Skills/Enhancement/Paper Search Pro/ → 00_maintenance_playbook.md +
CLAUDE.md; delta plans in ../01_working/NN_deltaN_sync_plan.md; backend work in v2.2-evolution/.
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
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.

