Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.33 KB

File metadata and controls

52 lines (38 loc) · 1.33 KB
name doi-citation
description Converts DOI links into BibTeX citations via DOI.org content negotiation. Useful as a compact demonstrator for scientific AI skills and literature workflow automation.

DOI Citation Skill

Use this skill when the user gives a DOI or DOI URL and wants a BibTeX citation.

What to do

  1. Extract the DOI from the user input.
  2. Request BibTeX from DOI.org using content negotiation: Accept: application/x-bibtex at https://doi.org/{doi}
  3. Return the BibTeX exactly as received, unless the user asks for cleanup.
  4. If DOI.org does not return BibTeX, explain that no citation could be resolved.

Minimal Python snippet

import urllib.request

doi = "10.1108/02640470610689151"
req = urllib.request.Request(
    "https://doi.org/" + doi,
    headers={"Accept": "application/x-bibtex"}
)

with urllib.request.urlopen(req) as r:
    print(r.read().decode("utf-8"))

Output format

For a normal request, return:

BibTeX:
...

Optionally add a short note if the returned entry is incomplete, unusual, or not an article, e.g. dataset/software/report.

Scientific integrity

  • Do not invent missing bibliographic fields.
  • Do not claim independent verification of the metadata.
  • State that the citation was resolved via DOI.org.
  • Preserve the DOI returned by the resolver.