matsuikentaro1

Codex Refs — Development skill for Claude Code

Development community

Claude Code skill: search academic references via PubMed with bundled deterministic tool — PMIDs are never fabricated.

How to install Codex Refs

This entry records only its repository, not the path inside it, so there is no exact command to give. Open matsuikentaro1/codex-refs and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codex Refs does

Claude Code skill: search academic references via PubMed with bundled deterministic tool — PMIDs are never fabricated.

Alternatives in Development

  • Attribution — Bundled Skill Attribution 213 ★
  • Pubmed MCP Server — Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP 150 ★
  • Paper Search Pro — Academic literature discovery as a Skill — Claude Code · Codex · any agent that loads SKILL.md 145 ★

README

codex-refs

Search academic references using [OpenAI Codex CLI](https://github.com/openai/codex) as the search driver, with a bundled deterministic PubMed tool — PMIDs are never fabricated.

This is a [Claude Code](https://docs.anthropic.com/en/docs/claude-code) skill designed to build a verified reference CSV (`refs.csv`) for academic manuscripts.

What changed in v3

v3 borrows ideas from [imozuru](https://github.com/MaryCache/imozuru) and from systematic-review citation searching (snowballing), while keeping the rule that every PMID comes from a live PubMed fetch.

v2 v3
Stopping rule "3–4 rounds max" Each claim is decomposed into conditions (population, design, outcome…); stop when every condition has a verified supporting sentence
Search routes Keyword search only (Mode A/B) Adds Mode C: citation chaining, which follows backward references, forward citations, similar articles, same-author papers, and the reference lists of open-access full text or PDFs
Citation sources — NIH iCite + PubMed elink + Europe PMC + OpenAlex, merged (fewer gaps for recent papers)
Selection rationale Free-text note written by the LLM --quote records a sentence copied verbatim from the abstract and checks it against the fetched abstract. Paraphrases are rejected. --verify-csv re-checks the whole CSV
Convergence check — Mode B runs two independent routes (MeSH vs free text), and their overlap shows when results stop changing (capture–recapture idea). Mode C reports the share of results already known via --known
Audit trail — claims.md and search_log.md record the queries, the seed papers, the counts, and why each search stopped

What changed in v2

v1 had Codex write PubMed E-utilities code from scratch on every run, which caused persistent issues (PowerShell syntax failures, Unicode mangling, rate limit flailing, and — worst of all — PMID hallucination). v2 bundles a tested `pubmed_search.py