Skip to content
Agentmart
Submit a tool

bibtex-fetch

Fetch BibTeX entries from arXiv / Semantic Scholar.

Skill by jiahao-shao1

IndexedMIT★ 39
Write a review

Chalk Labs

Need help deploying bibtex-fetch?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jiahao-shao1-bibtex-fetch

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Fetch BibTeX entries from arXiv / Semantic Scholar. Triggers: 'fetch bibtex', 'cite this paper', 'arXiv bibtex', '拉 bibtex', '获取引用', '引用这篇论文'. Not for citation format conversion (APA/MLA) or literature review.

Use cases: research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bibtex-fetch

What's inside

Skill name
bibtex-fetch
Description
Fetch BibTeX entries from arXiv / Semantic Scholar. Triggers: 'fetch bibtex', 'cite this paper', 'arXiv bibtex', '拉 bibtex', '获取引用', '引用这篇论文'. Not for citation format conversion (APA/MLA) or literature review.
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • README.md
  • SKILL.md
  • bibtex_fetch.py · scripts/

SKILL.md (first lines)

# BibTeX Fetch

Fetch correct BibTeX entries from arXiv (by ID) or Semantic Scholar (by title search). Zero dependencies — uses only Python stdlib.

## Script

`scripts/bibtex_fetch.py` — single self-contained Python script.

## Commands

### Fetch by arXiv ID

Given one or more arXiv IDs, fetch metadata from the arXiv API and generate BibTeX.

```bash
python3 scripts/bibtex_fetch.py fetch <arxiv_id> [<arxiv_id> ...] [--key <bibkey> ...]
```

**Examples:**

```bash
# Single paper
python3 scripts/bibtex_fetch.py fetch 2312.14135

# Multiple papers
python3 scripts/bibtex_fetch.py fetch 2312.14135 2505.14362 2408.15556

# With custom bibkeys
python3 scripts/bibtex_fetch.py fetch 2312.14135 --key vstar

# Full URL also works
python3 scripts/bibtex_fetch.py fetch https://arxiv.org/abs/2312.14135
```

**Output:** Standard `@article{...}` BibTeX entries, ready to paste into `.bib` files.

### Search by title

Search Semantic Scholar for papers matching a query, then auto-fetch BibTeX for results that have arXiv IDs.

```bash
python3 scripts/bibtex_fetch.py search "<query>"
```

**Examples:**

```bash
python3 scripts/bibtex_fetch.py search "V* Guided Visual Search"
python3 scripts/bibtex_fetch.py search "DeepEyes Thinking with Images"
```

**Output:** Top 5 search results with author, year, and arXiv ID, followed by BibTeX for all results that have arXiv IDs.

## Workflow

When the user asks to cite a paper:

1. If they provide an arXiv ID or URL → use `fetch`
2. If they provide a paper title or description → use `search`
3. If they provide a `.bib` file and ask to check/fix entries → extract arXiv IDs from the file, `fetch` them, compare with existing entries

## Implementation Details

- **arXiv API**: Batches up to 20 IDs per request. 1s delay between batches.
- **Semantic Scholar API**: No auth key needed. 0.5s delay. 429 auto-retry with 5s backoff.
- **Bibkey generation**: `{first_author_last_name}{year}{first_significant_title_word}` (e.g., `wu2023guided`)
- **Author format**: `Last, First` style, max 5 authors then `and others`
- **URL cleaning**: Strips `https://arxiv.org/abs/` prefix and version suffixes (`v1`, `v2`)

## Error Handling

| Error | Behavior |
|-------|----------|
| arXiv ID not found | Prints `% NOT FOUND: <id>` to stderr, continues with next |
| Semantic Scholar 429 | Waits 5s and retries once |
| Network timeout | Prints error to stderr, continues with remaining IDs |
| Non-arXiv paper in search | Shows in results list but no BibTeX generated |

From jiahao-shao1/sjh-skills, MIT.

More from jiahao-shao1/sjh-skills

Signals

Stars
39
Forks
1
Open issues
0
Last commit (this folder)
Apr 25, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jiahao-shao1

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get bibtex-fetch running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying bibtex-fetch?

CallGet help
Cite this page

bibtex-fetch skill. Agent Mart. https://agentmart.dev/skills/jiahao-shao1-bibtex-fetch (last updated 2026-10-24)