Latex bib doi toggle

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Latex bib doi toggle is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Toggles DOI/URL display in a biblatex bibliography; default on, off only when a venue strips them. Use for DOI/URL toggling.

How to use this skill

Skill file

bib-doi-toggle — Toggle clickable DOI/URL refs

Toggle whether DOI and URL fields print in the compiled bibliography of a biblatex paper.

When to use

Scope: biblatex only

This skill assumes biblatex (with biber).

If the paper uses natbib + a .bst file, bail out with a friendly message — the toggle approach there is style-specific and out of scope.

Detect by grepping the main .tex for \usepackage[...]{biblatex}.

If absent (and \bibliographystyle{...} / \bibliography{...} present instead → natbib), report and stop.

Workflow

1. Find the paper

与其他 scholar 系技能检索顺序相同:

  1. User-provided path
  2. paper/current/main.tex
  3. paper/main.tex
  4. main.tex

2. Detect biblatex

3. Apply

To turn on (review/writing build):

To turn off (submission build):

Edit the options in place in the existing \usepackage[...]{biblatex} line — don't add a duplicate package call.

4. Report

Tell the user what changed and that they need to recompile (make / latexmk) to see the new bibliography.

5. Contextual nudge (only when toggling ON)

After turning the display on, scan the .bib file for entries missing a doi field (and missing url/eprint for entries that don't have a DOI, like preprints).

If any are missing:

Don't nudge on the off-toggle — there's nothing actionable to surface.

Don't nudge generically (e.g., "also run check-refs") — keep this skill atomic.

Notes

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.