skills/43-wentorai-research-plugins/skills/literature/metadata/doi-content-negotiation/SKILL.md
Retrieve structured metadata from any DOI via HTTP content negotiation
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research doi-content-negotiationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Any DOI can return structured metadata in multiple formats through HTTP content negotiation — simply set the Accept header when requesting https://doi.org/{doi}. This is the most universal way to get citation metadata, BibTeX entries, JSON-LD, and RDF from any publisher without needing a specific API. Works for all 300M+ registered DOIs. Free, no authentication.
# Get JSON citation metadata (Citeproc JSON)
curl -LH "Accept: application/vnd.citationstyles.csl+json" \
"https://doi.org/10.1038/nature14539"
# Get BibTeX
curl -LH "Accept: application/x-bibtex" \
"https://doi.org/10.1038/nature14539"
# Get RIS format
curl -LH "Accept: application/x-research-info-systems" \
"https://doi.org/10.1038/nature14539"
# Get formatted citation (APA style)
curl -LH "Accept: text/x-bibliography; style=apa" \
"https://doi.org/10.1038/nature14539"
# Get formatted citation (Chicago style)
curl -LH "Accept: text/x-bibliography; style=chicago-author-date" \
"https://doi.org/10.1038/nature14539"
| Accept Header | Format | Use Case |
|--------------|--------|----------|
| application/vnd.citationstyles.csl+json | Citeproc JSON | Programmatic metadata |
| application/x-bibtex | BibTeX | LaTeX bibliography |
| application/x-research-info-systems | RIS | Reference managers |
| text/x-bibliography; style=apa | Formatted text | Direct citation |
| application/rdf+xml | RDF/XML | Linked data |
| text/turtle | Turtle RDF | Linked data |
| application/vnd.schemaorg.ld+json | Schema.org JSON-LD | Web metadata |
| application/json | DataCite JSON | DataCite DOIs |
| application/vnd.crossref.unixref+xml | Crossref XML | Full Crossref metadata |
Over 9,000 CSL styles available:
# APA 7th edition
style=apa
# Chicago Manual of Style (author-date)
style=chicago-author-date
# IEEE
style=ieee
# MLA
style=modern-language-association
# Harvard
style=harvard-cite-them-right
# Vancouver (medical)
style=vancouver
# Nature
style=nature
{
"DOI": "10.1038/nature14539",
"type": "article-journal",
"title": "Deep learning",
"author": [
{"given": "Yann", "family": "LeCun"},
{"given": "Yoshua", "family": "Bengio"},
{"given": "Geoffrey", "family": "Hinton"}
],
"container-title": "Nature",
"volume": "521",
"issue": "7553",
"page": "436-444",
"issued": {"date-parts": [[2015, 5, 28]]},
"publisher": "Springer Science and Business Media LLC",
"ISSN": ["0028-0836", "1476-4687"],
"URL": "http://dx.doi.org/10.1038/nature14539",
"abstract": "Deep learning allows computational models..."
}
import requests
def get_metadata(doi: str) -> dict:
"""Get structured metadata for a DOI."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={"Accept": "application/vnd.citationstyles.csl+json"},
allow_redirects=True,
)
resp.raise_for_status()
return resp.json()
def get_bibtex(doi: str) -> str:
"""Get BibTeX entry for a DOI."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={"Accept": "application/x-bibtex"},
allow_redirects=True,
)
resp.raise_for_status()
return resp.text
def get_formatted_citation(doi: str,
style: str = "apa") -> str:
"""Get a formatted citation string."""
resp = requests.get(
f"https://doi.org/{doi}",
headers={
"Accept": f"text/x-bibliography; style={style}",
},
allow_redirects=True,
)
resp.raise_for_status()
return resp.text.strip()
def batch_bibtex(dois: list) -> str:
"""Generate BibTeX file for multiple DOIs."""
entries = []
for doi in dois:
try:
bib = get_bibtex(doi)
entries.append(bib)
except requests.HTTPError:
entries.append(f"% Failed to resolve: {doi}")
return "\n\n".join(entries)
# Example: get metadata
meta = get_metadata("10.1038/nature14539")
authors = ", ".join(
f"{a['given']} {a['family']}" for a in meta.get("author", [])
)
print(f"{meta['title']}")
print(f" Authors: {authors}")
print(f" {meta.get('container-title')} ({meta.get('volume')})")
# Example: get BibTeX
bibtex = get_bibtex("10.1038/nature14539")
print(f"\nBibTeX:\n{bibtex}")
# Example: formatted APA citation
apa = get_formatted_citation("10.1038/nature14539", "apa")
print(f"\nAPA: {apa}")
# Example: batch export
bibliography = batch_bibtex([
"10.1038/nature14539",
"10.5555/3295222.3295349",
])
with open("references.bib", "w") as f:
f.write(bibliography)
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.