Skip to main content
skill CX Codex

bib-search-citation — Claude Code skill: search and cite from .bib

Pulls matching entries out of a local BibTeX or BibLaTeX library, Zotero exports included, and turns them into LaTeX or Typst citation snippets.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bahayonghang/academic-writing-skills --skill bib-search-citation -a claude-code
Open on GitHub

What bib-search-citation does

The skill reads one .bib file on disk. You hand it a compact filter string through --query, a JSON search spec through --spec-json, or a saved spec through --spec-file for searches you run again and again. Two scripts sit behind it: search_bib.py parses, filters, scores and emits citations, while preview_bib_search.py only renders a short readable summary from the JSON it already produced.

Filters cover year ranges, author substrings, entry types, presence of specific fields and text found in fields such as keywords, abstract or annotation. Results can be sorted by relevance, year or title, and citation output comes as LaTeX, Typst or both. Raw BibTeX stays out of the way until you ask for it, which matters for exact exports or checking an entry by hand.

The claim_support block is the part to read carefully. Matching words between your sentence and an abstract do not prove the paper backs your point, and the skill says so every time it shows that block. Validating citations already sitting in a .tex or .typ project is a different module's job. Budget for uv on the machine, since the scripts run through it.

What it helps with

  • locate topical papers in references.bib within a year range
  • produce \cite{} snippets for a shortlist of entries
  • narrow a Zotero export by annotation or keyword
  • confirm which entries carry a DOI or arXiv ID
  • pull the original BibTeX for one entry to inspect

Example prompts for the agent

  • Search references.bib for mamba forecasting work from 2024 onward, give me 5 entries with LaTeX and Typst citations
  • Filter the Zotero export for entries whose annotation mentions available code and show me the preview
  • Show the raw BibTeX of the best match from references.bib

How to install bib-search-citation

1Skills CLI (Vercel)

npx skills add bahayonghang/academic-writing-skills --skill bib-search-citation -a claude-code

2Manually: put the files in place

~/.claude/skills/bib-search-citation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bib-search-citation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about bib-search-citation

How do I install bib-search-citation in Claude Code?

Run npx skills add bahayonghang/academic-writing-skills --skill bib-search-citation -a claude-code. The skill file then lands at ~/.claude/skills/bib-search-citation/SKILL.md.

What does bib-search-citation do?

It searches and filters records in a local .bib file, returning stable JSON, a compact preview and citation snippets for LaTeX or Typst.

Does bib-search-citation check whether a paper supports my claim?

No. Its claim_support block reports word overlap only, and the skill warns that such overlap does not establish support. Judging the argument stays with you.

Similar skills

Everything for Science and research →

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor