Paper Bib logo

Paper Bib

Community
s-choung
paper-bib

Generate verified BibTeX entries from DOI, title, or paper-ref output

Overview

Publishers-choung
RepositoryResearch-Skills
Skill namepaper-bib
Stars
36
Forks
1
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by s-choung on GitHub. Read the source before you install it.

Installation

Install the Paper Bib AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/s-choung/Research-Skills/tree/master/skills/paper-bib
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/s-choung/Research-Skills.git /tmp/Research-Skills
mkdir -p .claude/skills
cp -r /tmp/Research-Skills/skills/paper-bib .claude/skills/paper-bib
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Paper Bib in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Paper Bib on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Paper Bib is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

paper-bib

Generate properly formatted BibTeX entries from DOI, paper title, or /paper-ref output. Verify metadata via Crossref API and optionally append to an existing .bib file.

Input formats

The user may provide one or more of the following:

  1. DOI — e.g. 10.1038/s41929-023-01045-5
  2. Paper title — e.g. "Unravelling the role of metal–support interactions..."
  3. paper-ref-hunter output — a markdown table with columns like Title, DOI, Year, etc.
  4. Mixed list — multiple DOIs/titles, one per line or comma-separated

Workflow

Step 1. Extract DOIs

  • If input is a DOI string (matches 10.\d{4,}/\S+), use directly.
  • If input is a title, search Crossref: https://api.crossref.org/works?query.title=<URL-encoded-title>&rows=3
    • Pick the top result whose title fuzzy-matches (>80% overlap).
    • If no match, warn and ask user to provide DOI manually.
  • If input is a /paper-ref table, extract DOI column values.

Step 2. Fetch metadata from Crossref

For each DOI, fetch:

https://api.crossref.org/works/{DOI}

Extract from the message object:

  • type → determines BibTeX entry type (see mapping below)
  • title[0] → title
  • author[] → list of {given, family} pairs
  • container-title[0] → journal name
  • volume, issue, page → standard fields
  • published-print.date-parts[0] or published-online.date-parts[0] → year
  • DOI → doi field
  • publisher → publisher (for books/proceedings)
  • URL → url field

Step 3. Determine entry type

Crossref typeBibTeX type
journal-article@article
proceedings-article@inproceedings
book-chapter@incollection
book@book
posted-content (preprint)@misc
report@techreport
other@misc

Step 4. Format BibTeX entry

Citation key

Format: {FirstAuthorLastName}{Year}{FirstTitleWord}

  • FirstAuthorLastName: ASCII-only, lowercase. Remove diacritics. E.g. müller → muller.
  • Year: 4-digit year.
  • FirstTitleWord: first significant word of title (skip articles: a, an, the, on, in, of, for).
  • Example: choung2023unravelling
Author format
author = {LastName, FirstName and LastName, FirstName and ...},
  • Use family and given from Crossref.
  • If given is missing, use initials or just family name.
  • For consortium/group authors, use {Organization Name} with braces.
Template
bibtex
@article{key,
  author    = {LastName1, FirstName1 and LastName2, FirstName2},
  title     = {{Title with Braces for Capitalization}},
  journal   = {Journal Name},
  volume    = {V},
  number    = {N},
  pages     = {start--end},
  year      = {YYYY},
  doi       = {10.xxxx/yyyy},
  url       = {https://doi.org/10.xxxx/yyyy},
}

Notes:

  • Title wrapped in double braces {{...}} to preserve capitalization.
  • Pages use en-dash --.
  • Trailing comma after last field (BibTeX tolerates this).
  • Two-space indentation for fields.

Step 5. Handle edge cases

ArXiv preprints
  • If DOI is missing but arXiv ID is available, use:
    bibtex
    @misc{key,
      author       = {...},
      title        = {{...}},
      year         = {YYYY},
      eprint       = {XXXX.XXXXX},
      archiveprefix = {arXiv},
      primaryclass = {cond-mat.mtrl-sci},
    }
  • Try Crossref first; if 404, try https://export.arxiv.org/api/query?id_list=XXXX.XXXXX
Missing fields
  • If volume, number, or pages are missing, omit those fields (do NOT insert placeholders).
  • If year is missing from both published-print and published-online, check created.date-parts.
  • Always warn the user about missing fields: ⚠ Missing: volume, pages
Preprints / posted-content
  • Use @misc with note = {Preprint} and howpublished = {\url{...}} if no journal.
Duplicate detection
  • Before appending to a .bib file, read the file and check if any existing entry has the same DOI.
  • If duplicate found, warn and skip (do not overwrite).

Step 6. Output

Default (no .bib file specified)

Print the BibTeX entry to the conversation. Format as a code block.

Append to .bib file

If user specifies a .bib file path (or one is found in the current project):

  1. Read the existing file.
  2. Check for duplicate DOIs.
  3. Append new entries at the end, separated by a blank line.
  4. Report what was added.

Auto-detect: look for *.bib files in the project root or archive/06_references/.

Batch mode

When multiple DOIs/titles are provided:

  1. Process each sequentially.
  2. Collect all entries.
  3. Print or append all at once.
  4. Report summary: N entries generated, M skipped (duplicates), K warnings (missing fields).

Error handling

  • Crossref 404: DOI not found. Ask user to verify.
  • Crossref rate limit: Wait and retry once. If still failing, report.
  • Network error: Report and suggest user check connectivity.
  • Malformed DOI: Regex-validate before calling API. Strip leading https://doi.org/ if present.

Integration with paper-ref

When receiving output from /paper-ref, parse the markdown table:

  • Extract DOI column values.
  • Process each DOI through the standard workflow.
  • Return BibTeX entries in the same order as the table rows.

Examples

User: /paper-bib 10.1038/s41929-023-01045-5

Output:

bibtex
@article{choung2023unravelling,
  author    = {Choung, Seokhyun and Park, Jeong-Myeong and ...},
  title     = {{Unravelling the role of metal--support interactions ...}},
  journal   = {Nature Catalysis},
  volume    = {6},
  pages     = {1082--1093},
  year      = {2023},
  doi       = {10.1038/s41929-023-01045-5},
  url       = {https://doi.org/10.1038/s41929-023-01045-5},
}

User: /paper-bib "machine learning interatomic potentials" --file refs.bib

→ Search title on Crossref → fetch top match → format → append to refs.bib.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Paper Bib AI skill do?

Generate verified BibTeX entries from DOI, title, or paper-ref output

Why use Paper Bib on TypingMind?

Because you install it once and use it with any model. Paper Bib is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Paper Bib in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/s-choung/Research-Skills/tree/master/skills/paper-bib. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Paper Bib?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Paper Bib?

As many as you like. As long as a model supports skills, you can use Paper Bib with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Paper Bib AI skill free?

Yes. It is published on GitHub by s-choung under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇